diff options
author | Marcel Holtmann <marcel@holtmann.org> | 2007-08-17 20:28:47 +0000 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2007-08-17 20:28:47 +0000 |
commit | 86892be8d38960096f9b9c5613ba28fc9003d288 (patch) | |
tree | fdf1987d0e4f261112ea3fb4561c3cb4fd50e943 /hcid/dbus-common.c | |
parent | c2f12da34adf0e5d2a04b7b3dbeb3753cb77f5d7 (diff) |
Add initial steps for generic device handling
Diffstat (limited to 'hcid/dbus-common.c')
-rw-r--r-- | hcid/dbus-common.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/hcid/dbus-common.c b/hcid/dbus-common.c index 4caef1ef..4cbc42aa 100644 --- a/hcid/dbus-common.c +++ b/hcid/dbus-common.c @@ -54,6 +54,7 @@ #include "dbus-error.h" #include "manager.h" #include "adapter.h" +#include "device.h" #include "dbus-hci.h" #include "dbus-service.h" #include "dbus-database.h" @@ -294,6 +295,8 @@ void hcid_dbus_exit(void) release_default_auth_agent(); release_services(conn); + device_cleanup(); + /* Unregister all paths in Adapter path hierarchy */ if (!dbus_connection_list_registered(conn, BASE_PATH, &children)) goto done; @@ -337,6 +340,9 @@ int hcid_dbus_init(void) if (!security_init(conn, BASE_PATH)) return -1; + if (device_init(conn) == FALSE) + return -1; + set_dbus_connection(conn); return 0; |