aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
Diffstat (limited to 'plugins')
-rw-r--r--plugins/lib/bluetooth/hal-bt.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/plugins/lib/bluetooth/hal-bt.c b/plugins/lib/bluetooth/hal-bt.c
index 98e0b40..36b5ba6 100644
--- a/plugins/lib/bluetooth/hal-bt.c
+++ b/plugins/lib/bluetooth/hal-bt.c
@@ -41,7 +41,10 @@ CTLP_ONLOAD(plugin, callbacks)
memset(&localHalBtPluginData, '\0', sizeof(localHalBtPluginData));
- AFB_RequireApi(plugin->api, BT_MANAGER_API, 1);
+ if(AFB_RequireApi(plugin->api, BT_MANAGER_API, 1)) {
+ AFB_ApiError(plugin->api, "Didn't succeed to require %s api", BT_MANAGER_API);
+ return -1;
+ }
/* TDB JAI :
- Register 'init' plugin function (HAL_BT_PLUGIN_NAME#init) as onload action here (to avoid adding it in json)