diff options
author | Marcel Holtmann <marcel@holtmann.org> | 2008-03-11 19:28:17 +0000 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2008-03-11 19:28:17 +0000 |
commit | f5b7c429b4d9fe8e83bf2e598e72084c83f77a0f (patch) | |
tree | b03f022973bb8918a38f0ff24f06c71ebe92d168 /hcid/main.c | |
parent | fdb96aa156e3f944806d484b51fe2eab63952839 (diff) |
Add skeleton for plugin infrastructure
Diffstat (limited to 'hcid/main.c')
-rw-r--r-- | hcid/main.c | 5 |
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"); |