summaryrefslogtreecommitdiffstats
path: root/hcid/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'hcid/main.c')
-rw-r--r--hcid/main.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/hcid/main.c b/hcid/main.c
index 3e9e4483..e1cfd1d1 100644
--- a/hcid/main.c
+++ b/hcid/main.c
@@ -53,6 +53,7 @@
#include "hcid.h"
#include "sdpd.h"
#include "server.h"
+#include "plugin.h"
#include "adapter.h"
#include "dbus-common.h"
#include "dbus-service.h"
@@ -847,6 +848,8 @@ int main(int argc, char *argv[])
enable_debug();
}
+ plugin_init();
+
/* Create and bind HCI socket */
if ((hcid.sock = socket(AF_BLUETOOTH, SOCK_RAW, BTPROTO_HCI)) < 0) {
error("Can't open HCI socket: %s (%d)",
@@ -940,6 +943,8 @@ int main(int argc, char *argv[])
cleanup_sdp_session();
+ plugin_cleanup();
+
g_main_loop_unref(event_loop);
info("Exit");