summaryrefslogtreecommitdiffhomepage
path: root/src/libMsg/MsgKit/Server.h
diff options
context:
space:
mode:
authorAmlal El Mahrouss <amlal@nekernel.org>2026-03-16 05:07:39 +0100
committerAmlal El Mahrouss <amlal@nekernel.org>2026-03-16 05:14:22 +0100
commit35fb9574c5efc426491f7ce55689e0f911890e98 (patch)
tree6761ca8cbdf4a7f92db0c8098b08fc6b5f629374 /src/libMsg/MsgKit/Server.h
parent9213bc66f2a3b05314e1a7386794bb39a02ac81b (diff)
[CHORE] Improve and fix libDDK and implement libMsg.
Signed-off-by: Amlal El Mahrouss <amlal@nekernel.org>
Diffstat (limited to 'src/libMsg/MsgKit/Server.h')
-rw-r--r--src/libMsg/MsgKit/Server.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/libMsg/MsgKit/Server.h b/src/libMsg/MsgKit/Server.h
index 3ab8eb73..faac0b0b 100644
--- a/src/libMsg/MsgKit/Server.h
+++ b/src/libMsg/MsgKit/Server.h
@@ -6,6 +6,7 @@
#ifndef MSGKIT_SERVER_H
#define MSGKIT_SERVER_H
+#include "libSystem/SystemKit/Macros.h"
#ifdef __cplusplus
#include <CoreFoundation.fwrk/headers/String.h>
#else
@@ -25,9 +26,12 @@ struct LIBMSG_EXPR final {
CF::CFString* l_value{nullptr};
#else
// if we use C, we won't know about CF, so let's make those private.
- VoidPtr l_private_data[2]{nullptr};
+ VoidPtr l_key{nullptr};
+ VoidPtr l_value{nullptr};
#endif
+ SizeT l_index{};
+
LIBMSG_EXPR* l_head{nullptr};
LIBMSG_EXPR* l_tail{nullptr};
LIBMSG_EXPR* l_child{nullptr};
@@ -38,6 +42,6 @@ typedef Void (*libmsg_func_type)(struct LIBMSG_EXPR* self, VoidPtr arg, SizeT ar
IMPORT_C Void libmsg_init_library(libmsg_func_type* funcs, SizeT cnt);
IMPORT_C UInt32 libmsg_close_library(Void);
-IMPORT_C UInt32 libmsg_eval_expr(struct LIBMSG_EXPR* head);
+IMPORT_C UInt32 libmsg_eval_expr(struct LIBMSG_EXPR* head, VoidPtr arg, SizeT arg_size);
#endif