From 40a55bf64139a51123dd93a4a268088848b0dd17 Mon Sep 17 00:00:00 2001 From: Jonathan Aillet Date: Mon, 17 Dec 2018 19:42:32 +0100 Subject: 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 --- 4a-hal/4a-hal-controllers/4a-hal-controllers-cb.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to '4a-hal/4a-hal-controllers/4a-hal-controllers-cb.h') 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 -- cgit 1.2.3-korg