From d83a420f0517d7fc47aeb288a6a0cf4891784fcc Mon Sep 17 00:00:00 2001 From: Christoph Berg Date: Mon, 22 Jun 2026 12:03:44 +0200 Subject: New upstream version 3.0.2+dfsg --- map65/libm65/stdout_shared_layout.h | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 map65/libm65/stdout_shared_layout.h (limited to 'map65/libm65/stdout_shared_layout.h') diff --git a/map65/libm65/stdout_shared_layout.h b/map65/libm65/stdout_shared_layout.h new file mode 100644 index 00000000..c45d8852 --- /dev/null +++ b/map65/libm65/stdout_shared_layout.h @@ -0,0 +1,20 @@ +// stdout_shared_layout.h +#pragma once +#include + +#pragma pack(push, 1) +struct StdoutSharedHeader +{ + std::uint32_t version; // For compatibility + std::uint32_t writeIndex; // Next write position in buffer + std::uint32_t dataSize; // Bytes of new data just written + std::uint32_t seq; // Incremented each write (helps detect missed events) +}; + +struct StdoutSharedRegion +{ + StdoutSharedHeader header; + // Text buffer, size chosen at creation (e.g. 8 KB / 32 KB). + std::uint8_t buffer[1]; +}; +#pragma pack(pop) \ No newline at end of file -- cgit v1.2.3