summaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
Diffstat (limited to 'plugins')
-rw-r--r--plugins/lib/bluealsa/hal-bluealsa.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/plugins/lib/bluealsa/hal-bluealsa.c b/plugins/lib/bluealsa/hal-bluealsa.c
index 415b160..58c4b54 100644
--- a/plugins/lib/bluealsa/hal-bluealsa.c
+++ b/plugins/lib/bluealsa/hal-bluealsa.c
@@ -68,15 +68,16 @@ CTLP_INIT(plugin, callbacks)
{
json_object *actionsToAdd = NULL;
CtlConfigT *ctrlConfig;
- struct SpecificHalData *currentHalData;
+ struct HalData *currentHalData;
if (!(ctrlConfig = (CtlConfigT *) afb_api_get_userdata(plugin->api))) {
- AFB_API_ERROR(plugin->api, "Can't get current hal controller config");
+ AFB_API_ERROR(plugin->api, "Can't get current internal hal controller config");
goto fail;
}
- if (!(currentHalData = (struct SpecificHalData *) ctrlConfig->external)) {
- AFB_API_ERROR(plugin->api, "Can't get current hal controller data");
+ currentHalData = (struct HalData *) getExternalData(ctrlConfig);
+ if (!currentHalData) {
+ AFB_API_ERROR(plugin->api, "Can't get current internal hal controller data");
goto fail;
}