add server messages (with toasts!)

This commit is contained in:
caszuu
2026-02-27 16:03:18 +01:00
committed by xytovl
parent 7d11674b2a
commit c44940d004
6 changed files with 84 additions and 5 deletions
+13
View File
@@ -608,6 +608,18 @@ struct handshake
int stream_port;
};
struct server_message
{
enum class kind : uint8_t
{
stream_toast,
stream_toast_urgent,
};
kind kind;
std::string msg;
};
struct foveation_parameter
{
// The number of source pixels for each ratio,
@@ -766,6 +778,7 @@ using packets = std::variant<
pin_check_2,
pin_check_4,
handshake,
server_message,
audio_stream_description,
video_stream_description,
audio_data,