From bdfc8770e68da75c20e4127a9dd10f8a7c36810d Mon Sep 17 00:00:00 2001 From: Amlal El Mahrouss Date: Mon, 3 Mar 2025 06:05:26 +0100 Subject: ADD: Format source code and define __wm_msg struct (public version) Signed-off-by: Amlal El Mahrouss --- dev/Usr/LibWM/Symbols.h | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) (limited to 'dev/Usr/LibWM') diff --git a/dev/Usr/LibWM/Symbols.h b/dev/Usr/LibWM/Symbols.h index 4003fd5d..2ded6e7e 100644 --- a/dev/Usr/LibWM/Symbols.h +++ b/dev/Usr/LibWM/Symbols.h @@ -8,11 +8,21 @@ #include -struct __wm_msg; +#define kWMPacketLen 512 + +struct __wm_msg_public; IMPORT_C SInt32 __wm_alert(const char* title, const char* msg, const char* opt_link); IMPORT_C SInt32 __wm_prompt(const char* title, const char* msg, const char** input, const SizeT input_len); IMPORT_C SInt32 __wm_exec(const char* path); -IMPORT_C SInt32 __wm_dispatch_msg(const void* msg, const SizeT len); \ No newline at end of file +IMPORT_C SInt32 __wm_dispatch_msg(const struct __wm_msg_public* msg, const SizeT len); + +/// @brief Public Message Header for the Window Manager. +struct __wm_msg_public +{ + SInt32 magic; + SInt32 version; + const Char packet[kWMPacketLen]; +}; \ No newline at end of file -- cgit v1.2.3