diff options
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.c | 4 |
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)); |