Export current client tab on dbus
This commit is contained in:
@@ -34,20 +34,11 @@
|
||||
|
||||
using namespace std::chrono_literals;
|
||||
|
||||
static void handle_event_from_main_loop(to_monado::stop)
|
||||
{
|
||||
// Ignore stop request when no headset is connected
|
||||
}
|
||||
|
||||
static void handle_event_from_main_loop(to_monado::disconnect)
|
||||
{
|
||||
// Ignore disconnect request when no headset is connected
|
||||
}
|
||||
|
||||
static void handle_event_from_main_loop(to_monado::set_bitrate)
|
||||
{
|
||||
// Ignore bitrate request when no headset is connected
|
||||
}
|
||||
// Ignored until connection is established
|
||||
static void handle_event_from_main_loop(to_monado::stop) {}
|
||||
static void handle_event_from_main_loop(to_monado::disconnect) {}
|
||||
static void handle_event_from_main_loop(to_monado::set_bitrate) {}
|
||||
static void handle_event_from_main_loop(wivrn::to_headset::stream_tab_change) {}
|
||||
|
||||
static std::string clean_key(std::string key)
|
||||
{
|
||||
|
||||
@@ -835,6 +835,7 @@ void wivrn_session::operator()(from_headset::refresh_rate_changed && event)
|
||||
|
||||
void wivrn_session::operator()(from_headset::stream_tab_changed && event)
|
||||
{
|
||||
send_to_main(std::move(event));
|
||||
}
|
||||
|
||||
void wivrn_session::operator()(from_headset::get_application_list && request)
|
||||
@@ -979,6 +980,11 @@ void wivrn_session::operator()(to_monado::set_bitrate && data)
|
||||
comp_target->set_bitrate(data.bitrate_bps);
|
||||
}
|
||||
|
||||
void wivrn_session::operator()(to_headset::stream_tab_change && data)
|
||||
{
|
||||
send_control(std::move(data));
|
||||
}
|
||||
|
||||
struct refresh_rate_adjuster
|
||||
{
|
||||
std::chrono::seconds period{10};
|
||||
|
||||
@@ -190,6 +190,7 @@ public:
|
||||
void operator()(to_monado::stop &&);
|
||||
void operator()(to_monado::disconnect &&);
|
||||
void operator()(to_monado::set_bitrate &&);
|
||||
void operator()(to_headset::stream_tab_change &&);
|
||||
|
||||
bool has_stream()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user