summaryrefslogtreecommitdiffstats
path: root/network/manager.c
diff options
context:
space:
mode:
authorLuiz Augusto von Dentz <luiz.dentz@openbossa.org>2007-03-22 20:26:04 +0000
committerLuiz Augusto von Dentz <luiz.dentz@openbossa.org>2007-03-22 20:26:04 +0000
commit29809147d7deb7a7326790ded39fc2488f725f44 (patch)
tree9c8578cffe5f851657d5c7ec9582c9e8036b5028 /network/manager.c
parente46f647bc95dcedf962ba2741670e45c65e8f34c (diff)
Add bnep_init and bnep_cleanup to manager.
Diffstat (limited to 'network/manager.c')
-rw-r--r--network/manager.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/network/manager.c b/network/manager.c
index c9a8d4e4..dde8c908 100644
--- a/network/manager.c
+++ b/network/manager.c
@@ -42,6 +42,7 @@
#include "manager.h"
#include "server.h"
#include "connection.h"
+#include "common.h"
struct manager {
bdaddr_t src; /* Local adapter BT address */
@@ -301,6 +302,7 @@ static void manager_free(struct manager *mgr)
g_slist_free(mgr->connections);
g_free (mgr);
+ bnep_kill_all_connections();
}
static void manager_unregister(DBusConnection *conn, void *data)
@@ -414,6 +416,11 @@ int network_init(void)
return -1;
}
+ if (bnep_init()) {
+ error("Can't init bnep module");
+ return -1;
+ }
+
return network_dbus_init();
}
@@ -422,6 +429,7 @@ void network_exit(void)
if (bridge_remove("pan0") < 0)
error("Can't remove bridge");
+ bnep_cleanup();
bridge_cleanup();
network_dbus_exit();