diff options
author | Jonathan Aillet <jonathan.aillet@iot.bzh> | 2019-08-05 16:55:13 +0200 |
---|---|---|
committer | Jonathan Aillet <jonathan.aillet@iot.bzh> | 2019-08-12 12:23:11 +0200 |
commit | 59da9b4952b9c8852658aa27eb23992769d6b05c (patch) | |
tree | 6b2de6c401f59ede9c7c8bd212e83595b4443919 /src/4a-internals-hal/4a-internals-hal-api-loader.c | |
parent | 8c08ae193531b6f9c86f58764af598016b696260 (diff) |
Create 'all_streams' verb at binding startup
Create 'all_streams' verb at binding startup, that way,
it will always be created.
Generate a request fail when a call is done when no streams are created.
BUG-AGL: SPEC-2733
Change-Id: I1b7ec3b8ed0fcd617e4a016e455beb447d233c82
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 | 2 |
1 files changed, 2 insertions, 0 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 71779d7..8899f2c 100644 --- a/src/4a-internals-hal/4a-internals-hal-api-loader.c +++ b/src/4a-internals-hal/4a-internals-hal-api-loader.c @@ -28,6 +28,7 @@ #include <ctl-config.h> #include "4a-hal-utilities-hal-api-handler.h" +#include "4a-hal-utilities-hal-streams-handler.h" #include "4a-internals-hal-api-loader.h" #include "4a-internals-hal-alsacore-link.h" @@ -62,6 +63,7 @@ static afb_verb_t InternalHalApiStaticVerbs[] = { .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" }, + { .verb = HAL_ALL_STREAMS_VERB, .callback = HalUtlActionOnAllStream, .info = "Send a stream action on all streams" }, { .verb = NULL } // Marker for end of the array }; |