From f5b7c429b4d9fe8e83bf2e598e72084c83f77a0f Mon Sep 17 00:00:00 2001 From: Marcel Holtmann Date: Tue, 11 Mar 2008 19:28:17 +0000 Subject: Add skeleton for plugin infrastructure --- hcid/main.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'hcid/main.c') 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"); -- cgit