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.c | |
parent | 7c426c4c7e234e28a4dffcb7d88feb0eeefcd5ce (diff) |
Add first skeletion of device driver integration
Diffstat (limited to 'hcid/device.c')
-rw-r--r-- | hcid/device.c | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/hcid/device.c b/hcid/device.c index 850ce1af..f8550b4a 100644 --- a/hcid/device.c +++ b/hcid/device.c @@ -1163,3 +1163,23 @@ int device_browse(struct device *device, DBusConnection *conn, str2ba(device->address, &dst); return bt_discover_services(&src, &dst, browse_cb, req, NULL); } + +static GSList *drivers = NULL; + +int btd_register_device_driver(struct btd_device_driver *driver) +{ + const char **uuid; + + drivers = g_slist_append(drivers, driver); + + for (uuid = driver->uuids; *uuid; uuid++) { + debug("name %s uuid %s", driver->name, *uuid); + } + + return 0; +} + +void btd_unregister_device_driver(struct btd_device_driver *driver) +{ + drivers = g_slist_remove(drivers, driver); +} |