diff options
author | Jonathan Aillet <jonathan.aillet@iot.bzh> | 2018-06-11 02:08:37 +0200 |
---|---|---|
committer | Jonathan Aillet <jonathan.aillet@iot.bzh> | 2018-10-08 15:52:51 +0200 |
commit | 9ba38deb72eff0479c0f99c92d121df9861ebbca (patch) | |
tree | b51be588f827c7d462e4f3e3c0b2bdfd615e733f /4a-hal/4a-hal-manager/4a-hal-manager.c | |
parent | 07c3ecba73584c0e106de5434d6a2689a74215bf (diff) |
Use structure defined in controller to load verbs
Use structure defined in controller to load verbs into an api using
'HalUtlLoadVerbs' function.
Change-Id: I57aabf9ce2c580fc98b7ea8438cd01083e032ac2
Signed-off-by: Jonathan Aillet <jonathan.aillet@iot.bzh>
Diffstat (limited to '4a-hal/4a-hal-manager/4a-hal-manager.c')
-rw-r--r-- | 4a-hal/4a-hal-manager/4a-hal-manager.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/4a-hal/4a-hal-manager/4a-hal-manager.c b/4a-hal/4a-hal-manager/4a-hal-manager.c index f3ebe14..61e2474 100644 --- a/4a-hal/4a-hal-manager/4a-hal-manager.c +++ b/4a-hal/4a-hal-manager/4a-hal-manager.c @@ -21,6 +21,8 @@ #include <stdbool.h> #include <string.h> +#include <afb-definitions.h> + #include "../4a-hal-utilities/4a-hal-utilities-data.h" #include "../4a-hal-utilities/4a-hal-utilities-verbs-loader.h" #include "../4a-hal-controllers/4a-hal-controllers-api-loader.h" @@ -39,7 +41,7 @@ static struct HalMgrData localHalMgrGlobalData; ******************************************************************************/ // Hal manager exported verbs -struct HalUtlApiVerb HalManagerApiStaticVerbs[] = +AFB_ApiVerbs HalManagerApiStaticVerbs[] = { /* VERB'S NAME FUNCTION TO CALL SHORT DESCRIPTION */ { .verb = "ping", .callback = HalMgrPing, .info = "Ping test for DynApi"}, |