1
0

finish representer protocol

This commit is contained in:
2026-01-10 17:10:14 +08:00
parent 1abafeb0ca
commit 2a52c8ed7d
7 changed files with 75 additions and 27 deletions

View File

@@ -1,4 +1,5 @@
#pragma once
#include <basalt/char_types.hpp>
#include <basalt/pipe_operator.hpp>
#include <cstdint>
@@ -23,13 +24,20 @@ namespace basalt::presenter::cmd_client {
RGB_U8 = 0x04 ///< RGB represented by three u8
};
#pragma pack(push, 1)
struct HandshakePayload {
bool headless;
PixelKind pixel_kind;
std::uint32_t width;
std::uint32_t height;
shared::char_types::BSString engine_name;
std::uint32_t engine_device;
shared::char_types::BSString delivery_name;
std::uint32_t delivery_device;
shared::char_types::BSString object_loader_name;
shared::char_types::BSString object_loader_file;
shared::char_types::BSString anime_loader_name;
shared::char_types::BSString anime_loader_file;
};
#pragma pack(pop)
// Status
enum class CmdClientStatus {