summaryrefslogtreecommitdiffhomepage
path: root/dev/open_msg/MsgKit/Server.h
blob: 867d3b54f622a2d6880b377a9a94b1500e3acaa2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
/* -------------------------------------------

  Copyright (C) 2025, Amlal El Mahrouss, all rights reserved.

------------------------------------------- */

#pragma once

#include <NeKit/KString.h>
#include <NeKit/MutableArray.h>

struct OPENMSG_EXPR;

struct OPENMSG_EXPR {
    Kernel::KString* l_head;
    Kernel::MutableArray<OPENMSG_EXPR> l_args;
};

typedef Kernel::Void(*openmsg_func_t)(OPENMSG_EXPR* arg);

EXTERN_C Kernel::Void openmsg_init_library(openmsg_func_t* funcs, Kernel::SizeT cnt);
EXTERN_C Kernel::UInt32 openmsg_close_library(Kernel::Void);