Use same packet definitions for both sockets

This commit is contained in:
Patrick Nicolas
2023-12-16 14:16:47 +01:00
committed by Guillaume Meunier
parent 1792607ada
commit 94e60d4e8b
8 changed files with 9 additions and 22 deletions
+2 -4
View File
@@ -183,8 +183,7 @@ struct feedback
uint8_t received_data_packets;
};
using control_packets = std::variant<headset_info_packet, feedback, audio_data>;
using stream_packets = std::variant<handshake, tracking, inputs, timesync_response>;
using packets = std::variant<headset_info_packet, feedback, audio_data, handshake, tracking, inputs, timesync_response>;
} // namespace from_headset
namespace to_headset
@@ -288,8 +287,7 @@ struct timesync_query
std::chrono::nanoseconds query;
};
using control_packets = std::variant<handshake, audio_stream_description, video_stream_description, audio_data>;
using stream_packets = std::variant<video_stream_data_shard, haptics, timesync_query>;
using packets = std::variant<handshake, audio_stream_description, video_stream_description, audio_data, video_stream_data_shard, haptics, timesync_query>;
} // namespace to_headset