summaryrefslogtreecommitdiffstats
path: root/alsa-binding/Alsa-ApiHat.c
diff options
context:
space:
mode:
authorJonathan Aillet <jonathan.aillet@iot.bzh>2019-09-19 17:21:04 +0200
committerJonathan Aillet <jonathan.aillet@iot.bzh>2019-10-01 10:57:28 +0200
commitce13200ec80d667418b796afbb7d55a5f66d1c76 (patch)
tree183d63a3c856be6ac53e41538d5b2c200a7d4615 /alsa-binding/Alsa-ApiHat.c
parentf51db7cc6a8aed530ca24adda4be279b5b4d6a84 (diff)
Add possibility to unsubscribe from events
Add possibility to unsubscribe from events using 'unsubscribe' verb with the same json payload used for subscribe. BUG-AGL: SPEC-2833 Change-Id: Ie01f36b2bf0a446cc80b09d79417a301ce9ecfff Signed-off-by: Jonathan Aillet <jonathan.aillet@iot.bzh>
Diffstat (limited to 'alsa-binding/Alsa-ApiHat.c')
-rw-r--r--alsa-binding/Alsa-ApiHat.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/alsa-binding/Alsa-ApiHat.c b/alsa-binding/Alsa-ApiHat.c
index 470467b..5575a9a 100644
--- a/alsa-binding/Alsa-ApiHat.c
+++ b/alsa-binding/Alsa-ApiHat.c
@@ -44,7 +44,8 @@ static const afb_verb_t api_verbs[] = {
{ .verb = "infoget", .callback = alsaGetInfo, .info="Return sound cards list"},
{ .verb = "ctlget", .callback = alsaGetCtls, .info="Get one or many control values"},
{ .verb = "ctlset", .callback = alsaSetCtls, .info="Set one control or more"},
- { .verb = "subscribe", .callback = alsaEvtSubcribe, .info="subscribe to alsa events"},
+ { .verb = "subscribe", .callback = alsaEvtSubscribe, .info="subscribe to alsa events"},
+ { .verb = "unsubscribe", .callback = alsaEvtUnsubscribe, .info="unsubscribe to alsa events"},
{ .verb = "cardidget", .callback = alsaGetCardId, .info="get sound card id"},
{ .verb = "halregister", .callback = alsaRegisterHal, .info="register a new HAL in alsacore"},
{ .verb = "hallist", .callback = alsaActiveHal, .info="Get list of currently active HAL"},