summaryrefslogtreecommitdiffstats
path: root/hcid/device.h
diff options
context:
space:
mode:
Diffstat (limited to 'hcid/device.h')
-rw-r--r--hcid/device.h12
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);