aboutsummaryrefslogtreecommitdiffstats
path: root/4a-hal/4a-hal-controllers/4a-hal-controllers-cb.c
diff options
context:
space:
mode:
authorJonathan Aillet <jonathan.aillet@iot.bzh>2018-10-31 15:55:32 +0100
committerJonathan Aillet <jonathan.aillet@iot.bzh>2018-11-02 16:12:26 +0100
commit226aa0fb14a036f44e9931ea7b7c45aa569be2d9 (patch)
treea0e04a90c4b62de8d75e50016705f3215f030850 /4a-hal/4a-hal-controllers/4a-hal-controllers-cb.c
parent71a57c4c7bf7ee3383cb50ab2add8b7956edc247 (diff)
Use new ctl functions to set/get ctl external data
Use new controller functions to set/get controller configuration structure external data field. Change-Id: I0e1ce259fccbbd8b4054efbed07cef5c5b9243b5 Signed-off-by: Jonathan Aillet <jonathan.aillet@iot.bzh>
Diffstat (limited to '4a-hal/4a-hal-controllers/4a-hal-controllers-cb.c')
-rw-r--r--4a-hal/4a-hal-controllers/4a-hal-controllers-cb.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/4a-hal/4a-hal-controllers/4a-hal-controllers-cb.c b/4a-hal/4a-hal-controllers/4a-hal-controllers-cb.c
index 9f074df..41404fa 100644
--- a/4a-hal/4a-hal-controllers/4a-hal-controllers-cb.c
+++ b/4a-hal/4a-hal-controllers/4a-hal-controllers-cb.c
@@ -54,7 +54,7 @@ void HalCtlsDispatchApiEvent(AFB_ApiT apiHandle, const char *evtLabel, json_obje
return;
}
- currentHalData = (struct SpecificHalData *) ctrlConfig->external;
+ currentHalData = (struct SpecificHalData *) getExternalData(ctrlConfig);
if(! currentHalData) {
AFB_ApiWarning(apiHandle, "Can't get current hal controller data");
return;
@@ -128,7 +128,7 @@ int HalCtlsHalMixerConfig(AFB_ApiT apiHandle, CtlSectionT *section, json_object
if(! ctrlConfig)
return -2;
- currentHalData = (struct SpecificHalData *) ctrlConfig->external;
+ currentHalData = (struct SpecificHalData *) getExternalData(ctrlConfig);
if(! currentHalData)
return -3;
@@ -345,7 +345,7 @@ int HalCtlsHalMapConfig(AFB_ApiT apiHandle, CtlSectionT *section, json_object *A
if(! ctrlConfig)
return -1;
- currentHalData = (struct SpecificHalData *) ctrlConfig->external;
+ currentHalData = (struct SpecificHalData *) getExternalData(ctrlConfig);
if(! currentHalData)
return -2;
@@ -415,7 +415,7 @@ void HalCtlsActionOnCall(AFB_ReqT request)
return;
}
- currentCtlHalData = (struct SpecificHalData *) ctrlConfig->external;
+ currentCtlHalData = (struct SpecificHalData *) getExternalData(ctrlConfig);
if(! currentCtlHalData) {
AFB_ReqFail(request, "hal_controller_data", "Can't get current hal controller data");
return;
@@ -531,7 +531,7 @@ void HalCtlsInfo(AFB_ReqT request)
return;
}
- currentCtlHalData = (struct SpecificHalData *) ctrlConfig->external;
+ currentCtlHalData = (struct SpecificHalData *) getExternalData(ctrlConfig);
if(! currentCtlHalData) {
AFB_ReqFail(request, "hal_controller_data", "Can't get current hal controller data");
return;