diff options
author | Jonathan Aillet <jonathan.aillet@iot.bzh> | 2018-06-09 17:56:08 +0200 |
---|---|---|
committer | Jonathan Aillet <jonathan.aillet@iot.bzh> | 2018-10-08 15:52:51 +0200 |
commit | cfd7792c40232af1cb14ea4d0efd93bc8ca0d983 (patch) | |
tree | a1cd133a0dd2d65bb4f85320a5f58c1aea62b6ee /4a-hal/4a-hal-utilities/4a-hal-utilities-data.h | |
parent | 957ccad167159cecf6fa7e33c75ec9692ce6af29 (diff) |
Change paramters in functions handling hal data
Change paramters in functions handling hal data structure.
Now, the only thing you need to add/search for/remove something in hal
data structure list is the address of the first element of the list
instead of the address of the whole hal manager data structure.
Change-Id: Iafa7428735c3aa418a6ef6564f9acde8f44e7dfe
Signed-off-by: Jonathan Aillet <jonathan.aillet@iot.bzh>
Diffstat (limited to '4a-hal/4a-hal-utilities/4a-hal-utilities-data.h')
-rw-r--r-- | 4a-hal/4a-hal-utilities/4a-hal-utilities-data.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/4a-hal/4a-hal-utilities/4a-hal-utilities-data.h b/4a-hal/4a-hal-utilities/4a-hal-utilities-data.h index e6b99f4..16befde 100644 --- a/4a-hal/4a-hal-utilities/4a-hal-utilities-data.h +++ b/4a-hal/4a-hal-utilities/4a-hal-utilities-data.h @@ -91,11 +91,11 @@ struct HalMgrData { }; // Exported verbs for 'struct SpecificHalData' handling -struct SpecificHalData *HalUtlAddHalApiToHalList(struct HalMgrData *HalMgrGlobalData); -uint8_t HalUtlRemoveSelectedHalFromList(struct HalMgrData *HalMgrGlobalData, struct SpecificHalData *ApiToRemove); -uint64_t HalUtlRemoveAllHalFromList(struct HalMgrData *HalMgrGlobalData); -uint64_t HalUtlGetNumberOfHalInList(struct HalMgrData *HalMgrGlobalData); -struct SpecificHalData *HalUtlSearchHalDataByApiName(struct HalMgrData *HalMgrGlobalData, char *apiName); +struct SpecificHalData *HalUtlAddHalApiToHalList(struct SpecificHalData **firstHalData); +uint8_t HalUtlRemoveSelectedHalFromList(struct SpecificHalData **firstHalData, struct SpecificHalData *ApiToRemove); +uint64_t HalUtlRemoveAllHalFromList(struct SpecificHalData **firstHalData); +uint64_t HalUtlGetNumberOfHalInList(struct SpecificHalData **firstHalData); +struct SpecificHalData *HalUtlSearchHalDataByApiName(struct SpecificHalData **firstHalData, char *apiName); // Exported verbs for 'struct HalMgrData' handling uint8_t HalUtlInitializeHalMgrData(AFB_ApiT apiHandle, struct HalMgrData *HalMgrGlobalData, char *apiName, char *info); |