diff options
author | Marcel Holtmann <marcel@holtmann.org> | 2008-05-28 13:11:05 +0000 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2008-05-28 13:11:05 +0000 |
commit | 24cce397c3479e95f3e525da9285234fbafd2984 (patch) | |
tree | 135f016d9783863e5a3c227dba3d678771003e25 /hcid/device.h | |
parent | 7c426c4c7e234e28a4dffcb7d88feb0eeefcd5ce (diff) |
Add first skeletion of device driver integration
Diffstat (limited to 'hcid/device.h')
-rw-r--r-- | hcid/device.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/hcid/device.h b/hcid/device.h index 4bfa9feb..5ef524df 100644 --- a/hcid/device.h +++ b/hcid/device.h @@ -39,3 +39,15 @@ void device_remove(struct device *device, DBusConnection *conn); gint device_address_cmp(struct device *device, const gchar *address); int device_browse(struct device *device, DBusConnection *conn, DBusMessage *msg); + +#define BTD_UUIDS(args...) ((const char *[]) { args, NULL } ) + +struct btd_device_driver { + const char *name; + const char **uuids; + int (*probe) (const char *path); + void (*remove) (const char *path); +}; + +int btd_register_device_driver(struct btd_device_driver *driver); +void btd_unregister_device_driver(struct btd_device_driver *driver); |