summaryrefslogtreecommitdiffstats
path: root/binding-bluetooth
diff options
context:
space:
mode:
authorJosé Bollo <jose.bollo@iot.bzh>2017-09-12 14:59:07 +0200
committerJosé Bollo <jose.bollo@iot.bzh>2017-09-12 14:59:07 +0200
commita51cfc5b18807e8fbff9305b4bc7aeb32d2d25cd (patch)
treef2c9da48e40f4bbe05194b1016eff1066bab4885 /binding-bluetooth
parentee0b6c81188c1b3a10b877e6244c186e65d9b8a1 (diff)
The binder now enforces creation of event inside init and forbid their creation in preinit. This evolution solves the issue as all initialisation is made in init. Change-Id: Ib5a41382ace47cbc387f0bce71bf7f198fea47ea Signed-off-by: José Bollo <jose.bollo@iot.bzh>
Diffstat (limited to 'binding-bluetooth')
-rw-r--r--binding-bluetooth/bluetooth-api.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/binding-bluetooth/bluetooth-api.c b/binding-bluetooth/bluetooth-api.c
index 3da59d9..56248b3 100644
--- a/binding-bluetooth/bluetooth-api.c
+++ b/binding-bluetooth/bluetooth-api.c
@@ -880,7 +880,7 @@ static int init()
event_add("device_removed");
event_add("device_updated");
- return 0;
+ return BluetoothManagerInit();
}
/*
@@ -891,8 +891,7 @@ const struct afb_binding_v2 afbBindingV2 =
.specification = "Application Framework Binder - Bluetooth Manager plugin",
.api = "Bluetooth-Manager",
.verbs = binding_verbs,
- .preinit = init,
- .init = BluetoothManagerInit,
+ .init = init,
};
/***************************** The End Of File ******************************/