From 5243ac4fd278b0176ece84cbcec537a92a9c7290 Mon Sep 17 00:00:00 2001 From: Marcel Holtmann Date: Sun, 8 Jun 2008 22:57:11 +0000 Subject: Update probe/remove callback and implement serial API --- hcid/device.h | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'hcid/device.h') diff --git a/hcid/device.h b/hcid/device.h index 38ad8030..420985fd 100644 --- a/hcid/device.h +++ b/hcid/device.h @@ -24,7 +24,14 @@ #define DEVICE_INTERFACE "org.bluez.Device" +struct btd_device { + char *path; + bdaddr_t src; + bdaddr_t dst; +}; + struct device { + struct btd_device dev; gchar *address; gchar *path; struct adapter *adapter; @@ -47,8 +54,8 @@ void device_probe_drivers(struct device *device); struct btd_device_driver { const char *name; const char **uuids; - int (*probe) (const char *path); - void (*remove) (const char *path); + int (*probe) (struct btd_device *device); + void (*remove) (struct btd_device *device); }; int btd_register_device_driver(struct btd_device_driver *driver); -- cgit