diff options
author | Jonathan Aillet <jonathan.aillet@iot.bzh> | 2018-05-26 22:59:00 +0200 |
---|---|---|
committer | Jonathan Aillet <jonathan.aillet@iot.bzh> | 2018-10-08 15:51:00 +0200 |
commit | bd32e8289b5ac087d40194ec2d3338610d1b6e4b (patch) | |
tree | 2b99e5031db3df6992c6a9e619ad140bf9ea5ac3 /4a-hal | |
parent | 44dab57c4ade082e697688506b9e0cee277c5558 (diff) |
Rename function used to load verbs into a dynamic api
Rename function used to load verbs into a dynamic api from
'HalUtlLoadStaticVerbs' to 'HalUtlLoadVerbs' because it is
used to load not only static verbs.
Change-Id: Idc033ccf0a8e7556e0809e8fa3554d09d0e81d39
Signed-off-by: Jonathan Aillet <jonathan.aillet@iot.bzh>
Diffstat (limited to '4a-hal')
4 files changed, 4 insertions, 4 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 119e6b6..a20297b 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 @@ -121,7 +121,7 @@ static int HalCtlsLoadOneApi(void *cbdata, afb_dynapi *apiHandle) afb_dynapi_set_userdata(apiHandle, ctrlConfig); // Add static controls verbs - if(HalUtlLoadStaticVerbs(apiHandle, CtlHalDynApiStaticVerbs)) { + if(HalUtlLoadVerbs(apiHandle, CtlHalDynApiStaticVerbs)) { AFB_DYNAPI_ERROR(apiHandle, "%s : load Section : fail to register static V2 verbs", __func__); return 1; } diff --git a/4a-hal/4a-hal-manager/4a-hal-manager.c b/4a-hal/4a-hal-manager/4a-hal-manager.c index 257aa38..593a261 100644 --- a/4a-hal/4a-hal-manager/4a-hal-manager.c +++ b/4a-hal/4a-hal-manager/4a-hal-manager.c @@ -87,7 +87,7 @@ static int HalMgrLoadApi(void *cbdata, afb_dynapi *apiHandle) afb_dynapi_set_userdata(apiHandle, HalMgrGlobalData); // Add static controls verbs - if(HalUtlLoadStaticVerbs(apiHandle, HalManagerApiStaticVerbs)) { + if(HalUtlLoadVerbs(apiHandle, HalManagerApiStaticVerbs)) { AFB_DYNAPI_ERROR(apiHandle, "%s : load section : fail to register static V2 verbs", __func__); return 1; } diff --git a/4a-hal/4a-hal-utilities/4a-hal-utilities-verbs-loader.c b/4a-hal/4a-hal-utilities/4a-hal-utilities-verbs-loader.c index 97c8df7..e5ed5fd 100644 --- a/4a-hal/4a-hal-utilities/4a-hal-utilities-verbs-loader.c +++ b/4a-hal/4a-hal-utilities/4a-hal-utilities-verbs-loader.c @@ -28,7 +28,7 @@ * TODO JAI : Use API-V3 instead of API-PRE-V3 * ******************************************************************************/ -int HalUtlLoadStaticVerbs(afb_dynapi *apiHandle, struct HalUtlApiVerb *verbs) +int HalUtlLoadVerbs(afb_dynapi *apiHandle, struct HalUtlApiVerb *verbs) { int idx, errCount = 0; diff --git a/4a-hal/4a-hal-utilities/4a-hal-utilities-verbs-loader.h b/4a-hal/4a-hal-utilities/4a-hal-utilities-verbs-loader.h index 7accd80..9ed9f1d 100644 --- a/4a-hal/4a-hal-utilities/4a-hal-utilities-verbs-loader.h +++ b/4a-hal/4a-hal-utilities/4a-hal-utilities-verbs-loader.h @@ -33,6 +33,6 @@ struct HalUtlApiVerb { }; // Verb that allows to add verb to a dynamic api -int HalUtlLoadStaticVerbs(afb_dynapi *apiHandle, struct HalUtlApiVerb *verbs); +int HalUtlLoadVerbs(afb_dynapi *apiHandle, struct HalUtlApiVerb *verbs); #endif /* _HAL_UTILITIES_VERBS_LOADER_INCLUDE_ */
\ No newline at end of file |