Send app icons one by one

This commit is contained in:
Guillaume Meunier
2025-08-08 20:41:46 +02:00
parent 669b06e982
commit 1b78180d73
8 changed files with 91 additions and 47 deletions
+9 -3
View File
@@ -41,7 +41,7 @@ namespace wivrn
// Default port for server to listen, both TCP and UDP
static const int default_port = 9757;
static constexpr int protocol_revision = 2;
static constexpr int protocol_revision = 1;
enum class device_id : uint8_t
{
@@ -675,11 +675,16 @@ struct application_list
{
std::string id;
std::string name;
std::vector<std::byte> image; // In PNG
};
std::vector<application> applications;
};
struct application_icon
{
std::string id;
std::vector<std::byte> image; // In PNG
};
using packets = std::variant<
crypto_handshake,
pin_check_2,
@@ -693,6 +698,7 @@ using packets = std::variant<
timesync_query,
tracking_control,
refresh_rate_change,
application_list>;
application_list,
application_icon>;
} // namespace to_headset
} // namespace wivrn