diff options
author | Thierry Bultel <thierry.bultel@iot.bzh> | 2018-07-03 18:52:33 +0200 |
---|---|---|
committer | Thierry Bultel <thierry.bultel@iot.bzh> | 2018-07-11 13:33:30 +0200 |
commit | 11d2ae972c434453f09a7ffe66a8c202efbce2a5 (patch) | |
tree | 9d02251b24e6a895405dd353587f0c468c84cc43 /ahl-binding/role.hpp | |
parent | e2e78437b472dc40e605cdcd895804105a680a1f (diff) |
Added role for radio, and mute/unmute actionsflounder_5.99.4flounder_5.99.3flounder_5.99.2flounder/5.99.4flounder/5.99.3flounder/5.99.25.99.45.99.35.99.2
This defines a new 'radio' role that uses the radio_stream
Also implements the new mute/unmute actions, that are
forwarded to the softmixer.
Now registers to a client (multimedia player, radio service ...)
disconnection, to properly free the leased role.
Change-Id: Ic15fb63cd90ba28f3978c67d917a77ed6b030e08
Signed-off-by: Thierry Bultel <thierry.bultel@iot.bzh>
Diffstat (limited to 'ahl-binding/role.hpp')
-rw-r--r-- | ahl-binding/role.hpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/ahl-binding/role.hpp b/ahl-binding/role.hpp index 6831195..5e64e11 100644 --- a/ahl-binding/role.hpp +++ b/ahl-binding/role.hpp @@ -37,11 +37,13 @@ private: int apply_policy(afb_request* req); + void do_mute(afb_request*, bool); + public: explicit role_t() = default; explicit role_t(const role_t&) = default; explicit role_t(role_t&&) = default; - + ~role_t() = default; role_t& operator=(const role_t&) = default; @@ -75,4 +77,6 @@ public: void close(afb_request* r, json_object* o); void volume(afb_request* r, json_object* o); void interrupt(afb_request* r, json_object* o); + void mute(afb_request* r, json_object* o); + void unmute(afb_request* r, json_object* o); }; |