verify headset compatibility on reconnect
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user