diff options
author | Jonathan Aillet <jonathan.aillet@iot.bzh> | 2019-08-09 10:58:19 +0200 |
---|---|---|
committer | Jonathan Aillet <jonathan.aillet@iot.bzh> | 2019-08-12 14:10:31 +0200 |
commit | 9d44f8855470418b4ee27d7ad337641e1ccaf9f3 (patch) | |
tree | 4c9ed79bbe2d8d18c83418f28f85ad8e7807a0bf /src/4a-internals-hal/4a-internals-hal-api-loader.c | |
parent | 9fcc923851d974fdbc15685434eeb95c93f37de4 (diff) |
Move ping function in 4a-hal-utilities
Move ping function in 4a-utilities and register it as verb
into 4a-hal-manager and into each created 4a-hal-*.
Updates 4a-hal json configuration files to match these modifications.
BUG-AGL: SPEC-2733
Change-Id: If93a31296206923860262b225a8c7e0e8a6fd521
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.c | 4 |
1 files changed, 3 insertions, 1 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 8899f2c..ca53e01 100644 --- a/src/4a-internals-hal/4a-internals-hal-api-loader.c +++ b/src/4a-internals-hal/4a-internals-hal-api-loader.c @@ -29,6 +29,7 @@ #include "4a-hal-utilities-hal-api-handler.h" #include "4a-hal-utilities-hal-streams-handler.h" +#include "4a-hal-utilities-ping.h" #include "4a-internals-hal-api-loader.h" #include "4a-internals-hal-alsacore-link.h" @@ -59,7 +60,8 @@ static CtlSectionT ctrlSectionsDefault[] = // Every HAL export the same API & Interface Mapping from SndCard to AudioLogic is done through alsaHalSndCardT static afb_verb_t InternalHalApiStaticVerbs[] = { - /* VERB'S NAME FUNCTION TO CALL SHORT DESCRIPTION */ + /* VERB'S NAME FUNCTION TO CALL SHORT DESCRIPTION */ + { .verb = "ping", .callback = HalUtlPing, .info = "Ping for test"}, { .verb = "info", .callback = InternalHalInfo, .info = "List available streams/controls for this api" }, { .verb = "subscribe", .callback = InternalHalSubscribe, .info = "Subscribe to event(s) for values changes (streams/controls) for this api" }, { .verb = "unsubscribe", .callback = InternalHalUnsubscribe, .info = "Unsubscribe to event(s) for values changes (streams/controls) for this api" }, |