summaryrefslogtreecommitdiffstats
path: root/binding-bluetooth
diff options
context:
space:
mode:
authorMatt Ranostay <matt.ranostay@konsulko.com>2017-07-21 14:33:07 -0700
committerMatt Ranostay <matt.ranostay@konsulko.com>2017-07-21 19:07:13 -0700
commitcdc8c5a82fa158f042a4adc7321da890ea8daf38 (patch)
tree4da5fd01d02a1c25ea7a72cff49705edb85eb12f /binding-bluetooth
parentaa5d077e9428bdf31790750179129c588cfe5734 (diff)
binding: bluetooth: remove race condition workaround
Workaround that was likely in place to avoid the Settings applications UI from loading before all binding functionality was enabled. Bug-AGL: SPEC-569 Change-Id: I7c4bc7614192cb09cace555acf77f27fbda0c42a Signed-off-by: Matt Ranostay <matt.ranostay@konsulko.com>
Diffstat (limited to 'binding-bluetooth')
-rw-r--r--binding-bluetooth/bluetooth-api.c6
-rw-r--r--binding-bluetooth/bluetooth-manager.c1
-rw-r--r--binding-bluetooth/export.map2
3 files changed, 2 insertions, 7 deletions
diff --git a/binding-bluetooth/bluetooth-api.c b/binding-bluetooth/bluetooth-api.c
index b454277..39acb9a 100644
--- a/binding-bluetooth/bluetooth-api.c
+++ b/binding-bluetooth/bluetooth-api.c
@@ -948,17 +948,13 @@ const struct afb_binding *afbBindingV1Register (const struct afb_binding_interfa
API_Callback.binding_request_confirmation = bt_request_confirmation;
BindingAPIRegister(&API_Callback);
- BluetoothManagerInit();
-
return &binding_description;
}
-#if 0
int afbBindingV1ServiceInit(struct afb_service service)
{
- return BluetoothManageInit();
+ return BluetoothManagerInit();
}
-#endif
/***************************** The End Of File ******************************/
diff --git a/binding-bluetooth/bluetooth-manager.c b/binding-bluetooth/bluetooth-manager.c
index 5ce90ce..007986c 100644
--- a/binding-bluetooth/bluetooth-manager.c
+++ b/binding-bluetooth/bluetooth-manager.c
@@ -1739,7 +1739,6 @@ int BluetoothManagerInit() {
pthread_create(&thread_id, NULL, bt_event_loop_thread, NULL);
//pthread_setname_np(thread_id, "BT_Manager");
- sleep(1);
return 0;
}
diff --git a/binding-bluetooth/export.map b/binding-bluetooth/export.map
index 0ef1ac7..52c1b4a 100644
--- a/binding-bluetooth/export.map
+++ b/binding-bluetooth/export.map
@@ -1 +1 @@
-{ global: afbBindingV1Register; local: *; };
+{ global: afbBindingV1*; local: *; };