summaryrefslogtreecommitdiffstats
path: root/hcid/dbus-common.c
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2007-08-17 20:28:47 +0000
committerMarcel Holtmann <marcel@holtmann.org>2007-08-17 20:28:47 +0000
commit86892be8d38960096f9b9c5613ba28fc9003d288 (patch)
treefdf1987d0e4f261112ea3fb4561c3cb4fd50e943 /hcid/dbus-common.c
parentc2f12da34adf0e5d2a04b7b3dbeb3753cb77f5d7 (diff)
Add initial steps for generic device handling
Diffstat (limited to 'hcid/dbus-common.c')
-rw-r--r--hcid/dbus-common.c6
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;