diff options
| author | Amlal El Mahrouss <amlal.elmahrouss@icloud.com> | 2025-03-03 06:05:26 +0100 |
|---|---|---|
| committer | Amlal El Mahrouss <amlal.elmahrouss@icloud.com> | 2025-03-03 06:05:26 +0100 |
| commit | bdfc8770e68da75c20e4127a9dd10f8a7c36810d (patch) | |
| tree | 9c451f9109b9992ef595bd77b63d187ffcb6d86a /dev/Usr/LibWM | |
| parent | 6249f2078e0c024dc2cd52436ba11baf6f70bc2a (diff) | |
ADD: Format source code and define __wm_msg struct (public version)
Signed-off-by: Amlal El Mahrouss <amlal.elmahrouss@icloud.com>
Diffstat (limited to 'dev/Usr/LibWM')
| -rw-r--r-- | dev/Usr/LibWM/Symbols.h | 14 |
1 files changed, 12 insertions, 2 deletions
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 <LibCF/Core.h> -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 |
