From 5ef438457561a85d5d713fb57b6bc5058621d478 Mon Sep 17 00:00:00 2001 From: Marcel Holtmann Date: Sat, 22 Mar 2008 15:21:12 +0000 Subject: Load plugins later in the init process --- hcid/main.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/hcid/main.c b/hcid/main.c index f6167ed1..63bf0a2c 100644 --- a/hcid/main.c +++ b/hcid/main.c @@ -848,8 +848,6 @@ 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)", @@ -902,6 +900,12 @@ int main(int argc, char *argv[]) exit(1); } + /* Loading plugins has to be done after D-Bus has been setup since + * the plugins might wanna expose some paths on the bus. However the + * best order of how to init various subsystems of the Bluetooth + * daemon needs to be re-worked. */ + plugin_init(); + init_security_data(); /* Create event loop */ -- cgit