summaryrefslogtreecommitdiffstats
path: root/hcid/device.h
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2008-06-08 22:57:11 +0000
committerMarcel Holtmann <marcel@holtmann.org>2008-06-08 22:57:11 +0000
commit5243ac4fd278b0176ece84cbcec537a92a9c7290 (patch)
tree912b65f15a18410d84563ef95f0595d5b3504121 /hcid/device.h
parentf22b20c3d40bd7571944af6a4946f756dc39f812 (diff)
Update probe/remove callback and implement serial API
Diffstat (limited to 'hcid/device.h')
-rw-r--r--hcid/device.h11
1 files changed, 9 insertions, 2 deletions
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);