diff options
author | 2018-12-17 19:42:32 +0100 | |
---|---|---|
committer | 2018-12-20 15:46:39 +0100 | |
commit | 40a55bf64139a51123dd93a4a268088848b0dd17 (patch) | |
tree | 4939a90ac02bf911d1599a7d81310fb7a4a77c1b /4a-hal/4a-hal-controllers/4a-hal-controllers-cb.h | |
parent | 24b80b0044e0a9636eecb5c5649e8e404c06090f (diff) |
Add streams events generation for each hal
Each hal will now have subscribe/unsubscribe verbs to allow other
bindings to be notified when a modification (volume, mute, ...)
happened on a stream.
Bug-AGL: SPEC-1313
Change-Id: If68d3b4b4e39385c1fffdd04b9f3e2b7fa5ae108
Signed-off-by: Jonathan Aillet <jonathan.aillet@iot.bzh>
Diffstat (limited to '4a-hal/4a-hal-controllers/4a-hal-controllers-cb.h')
-rw-r--r-- | 4a-hal/4a-hal-controllers/4a-hal-controllers-cb.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/4a-hal/4a-hal-controllers/4a-hal-controllers-cb.h b/4a-hal/4a-hal-controllers/4a-hal-controllers-cb.h index 1f91b62..66cbc8c 100644 --- a/4a-hal/4a-hal-controllers/4a-hal-controllers-cb.h +++ b/4a-hal/4a-hal-controllers/4a-hal-controllers-cb.h @@ -32,6 +32,12 @@ enum ActionOnMixerType { ACTION_ON_MIXER_ALL_STREAM = 4 }; +// Enum for the type of subscription/subscription +enum SubscribeUnsubscribeType { + SUBSCRIPTION = 1, + UNSUBSCRIPTION = 2 +}; + // HAL controller event handler function void HalCtlsDispatchApiEvent(afb_dynapi *apiHandle, const char *evtLabel, json_object *eventJ); @@ -45,5 +51,7 @@ void HalCtlsActionOnPlayback(AFB_ReqT request); void HalCtlsActionOnCapture(AFB_ReqT request); void HalCtlsActionOnAllStream(AFB_ReqT request); void HalCtlsInfo(AFB_ReqT request); +void HalCtlsSubscribe(AFB_ReqT request); +void HalCtlsUnsubscribe(AFB_ReqT request); #endif /* _HALMGR_CB_INCLUDE_ */
\ No newline at end of file |