aboutsummaryrefslogtreecommitdiffstats
path: root/4a-hal/4a-hal-controllers/4a-hal-controllers-api-loader.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-api-loader.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-api-loader.c')
-rw-r--r--4a-hal/4a-hal-controllers/4a-hal-controllers-api-loader.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/4a-hal/4a-hal-controllers/4a-hal-controllers-api-loader.c b/4a-hal/4a-hal-controllers/4a-hal-controllers-api-loader.c
index 292bcd8..9ecf088 100644
--- a/4a-hal/4a-hal-controllers/4a-hal-controllers-api-loader.c
+++ b/4a-hal/4a-hal-controllers/4a-hal-controllers-api-loader.c
@@ -86,7 +86,7 @@ static int HalCtlsInitOneApi(AFB_ApiT apiHandle)
if(! ctrlConfig)
return -2;
- currentCtlHalData = (struct SpecificHalData *) ctrlConfig->external;
+ currentCtlHalData = (struct SpecificHalData *) getExternalData(ctrlConfig);
if(! currentCtlHalData)
return -3;
@@ -181,7 +181,7 @@ int HalCtlsCreateApi(AFB_ApiT apiHandle, char *path, struct HalMgrData *HalMgrGl
currentCtlHalData->apiName = (char *) ctrlConfig->api;
// Stores current hal controller data in controller config
- ctrlConfig->external = (void *) currentCtlHalData;
+ setExternalData(ctrlConfig, (void *) currentCtlHalData);
// Allocation of the structure that will be used to store specific hal controller data
currentCtlHalData->ctlHalSpecificData = calloc(1, sizeof(struct CtlHalSpecificData));