diff options
author | Scott Murray <scott.murray@konsulko.com> | 2023-08-24 15:43:08 -0400 |
---|---|---|
committer | Scott Murray <scott.murray@konsulko.com> | 2023-08-24 15:43:28 -0400 |
commit | 82c1c0ab04219f9453f1b3a14a9754068e360583 (patch) | |
tree | c8ad28a5b7deba660dbddc7de86109d998eaf2e8 /src/audiomixer-service.hpp | |
parent | fdd9d0964a0fe7aadfcef33c9e9c1f183ca10820 (diff) |
Rework to switch to using KUKSA.val databroker
Rework to use the "VAL" gRPC API from the KUKSA.val databroker
instead of the older server's WebSocket interface. Some source
files have been renamed to match the class naming to provide
a bit more consistency.
Bug-AGL: SPEC-4762
Signed-off-by: Scott Murray <scott.murray@konsulko.com>
Change-Id: I5ded74cfbd6987cd045b7b142fd9f38971aaef66
Diffstat (limited to 'src/audiomixer-service.hpp')
-rw-r--r-- | src/audiomixer-service.hpp | 44 |
1 files changed, 0 insertions, 44 deletions
diff --git a/src/audiomixer-service.hpp b/src/audiomixer-service.hpp deleted file mode 100644 index cb00584..0000000 --- a/src/audiomixer-service.hpp +++ /dev/null @@ -1,44 +0,0 @@ -// SPDX-License-Identifier: Apache-2.0 - -#ifndef _AUDIOMIXER_SERVICE_HPP -#define _AUDIOMIXER_SERVICE_HPP - -#include "vis-session.hpp" -#include "audiomixer.h" - -class AudiomixerService : public VisSession -{ - struct audiomixer *m_audiomixer; - -public: - AudiomixerService(const VisConfig &config, net::io_context& ioc, ssl::context& ctx); - - ~AudiomixerService(); - - static void audiomixer_control_change_cb(void *data) { - if (data) - ((AudiomixerService*) data)->handle_control_change(); - }; - - static void audiomixer_value_change_cb(void *data, - unsigned int change_mask, - const struct mixer_control *control) { - if (data) - ((AudiomixerService*) data)->handle_value_change(change_mask, control); - } - -protected: - struct audiomixer_events m_audiomixer_events; - - virtual void handle_authorized_response(void) override; - - virtual void handle_get_response(std::string &path, std::string &value, std::string ×tamp) override; - - virtual void handle_notification(std::string &path, std::string &value, std::string ×tamp) override; - - virtual void handle_control_change(void); - - virtual void handle_value_change(unsigned int change_mask, const struct mixer_control *control); -}; - -#endif // _AUDIOMIXER_SERVICE_HPP |