aboutsummaryrefslogtreecommitdiffstats
path: root/src/4a-internals-hal/4a-internals-hal-api-loader.c
diff options
context:
space:
mode:
authorJonathan Aillet <jonathan.aillet@iot.bzh>2019-04-18 16:30:56 +0200
committerJonathan Aillet <jonathan.aillet@iot.bzh>2019-05-24 16:33:30 +0200
commit3d5de3986cc98fea301ffcc88f96a4b6ce7653e9 (patch)
treeaef80fd2b96e73b6a88bbe8620c3d9395ccab21f /src/4a-internals-hal/4a-internals-hal-api-loader.c
parent06054f68c5d5ca216f2756e7de2787a7ea2b9488 (diff)
Improve static verbs loading
Improve static verbs loading by using 'afb_api_set_verbs_v3' application_framework function. BUG-AGL: SPEC-2329 Change-Id: I3fe5397316d4a582635da637ab6a207b606c496e Signed-off-by: Jonathan Aillet <jonathan.aillet@iot.bzh>
Diffstat (limited to 'src/4a-internals-hal/4a-internals-hal-api-loader.c')
-rw-r--r--src/4a-internals-hal/4a-internals-hal-api-loader.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/4a-internals-hal/4a-internals-hal-api-loader.c b/src/4a-internals-hal/4a-internals-hal-api-loader.c
index 75d0e6f..93628eb 100644
--- a/src/4a-internals-hal/4a-internals-hal-api-loader.c
+++ b/src/4a-internals-hal/4a-internals-hal-api-loader.c
@@ -27,7 +27,6 @@
#include <ctl-config.h>
-#include "4a-hal-utilities-verbs-loader.h"
#include "4a-internals-hal-api-loader.h"
#include "4a-internals-hal-alsacore-link.h"
#include "4a-internals-hal-cb.h"
@@ -133,8 +132,8 @@ static int InternalHalLoadOneApi(void *cbdata, afb_api_t apiHandle)
// Save closure as api's data context
afb_api_set_userdata(apiHandle, ctrlConfig);
- // Add static controls verbs
- if(HalUtlLoadVerbs(apiHandle, InternalHalApiStaticVerbs)) {
+ // Add static internal hal verbs
+ if(afb_api_set_verbs_v3(apiHandle, InternalHalApiStaticVerbs)) {
AFB_API_ERROR(apiHandle, "Load Section : fail to register static V2 verbs");
return -2;
}