diff options
Diffstat (limited to 'hcid/device.c')
-rw-r--r-- | hcid/device.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/hcid/device.c b/hcid/device.c index f8550b4a..ec0429af 100644 --- a/hcid/device.c +++ b/hcid/device.c @@ -56,6 +56,7 @@ #include "device.h" #include "dbus-common.h" #include "dbus-hci.h" +#include "dbus-service.h" #include "error.h" #include "glib-helper.h" #include "agent.h" @@ -1176,10 +1177,14 @@ int btd_register_device_driver(struct btd_device_driver *driver) debug("name %s uuid %s", driver->name, *uuid); } + register_service(driver->name, driver->uuids); + return 0; } void btd_unregister_device_driver(struct btd_device_driver *driver) { + unregister_service(driver->name); + drivers = g_slist_remove(drivers, driver); } |