verify headset compatibility on reconnect

This commit is contained in:
caszuu
2026-02-27 16:03:18 +01:00
committed by xytovl
parent 5b6e172b41
commit adf4b1fc84
3 changed files with 98 additions and 7 deletions
+5 -1
View File
@@ -66,6 +66,7 @@ class wivrn_session : public xrt_system_devices
{
friend wivrn_comp_target_factory;
std::unique_ptr<wivrn_connection> connection;
from_headset::headset_info_packet headset_info;
pacing_app_factory app_pacers;
u_system & xrt_system;
@@ -140,7 +141,7 @@ public:
bool connected();
const from_headset::headset_info_packet & get_info() const
{
return connection->info();
return headset_info;
};
locked<from_headset::settings_changed> get_settings()
@@ -221,6 +222,9 @@ private:
void poll_session_loss();
// checks if a headset is usable with this session
std::pair<bool, bool> validate_headset_info(const from_headset::headset_info_packet & info);
// xrt_system implementation
xrt_result_t get_roles(xrt_system_roles * out_roles);
xrt_result_t feature_inc(xrt_device_feature_type type);