diff options
| author | Amlal El Mahrouss <amlal@nekernel.org> | 2026-03-23 01:11:36 +0100 |
|---|---|---|
| committer | Amlal El Mahrouss <amlal@nekernel.org> | 2026-03-23 01:11:36 +0100 |
| commit | 6a8d1d5fb1a685d9eba93d100af673053ab68860 (patch) | |
| tree | 9208011acc6f7453e52e2e9eb59970b0f9a10641 /frameworks/libX11.fwrk/headers | |
| parent | 5c15e4939723513bab37bfca01ad879b6e353808 (diff) | |
[FEAT] Improved installation flow and X11 library.
Signed-off-by: Amlal El Mahrouss <amlal@nekernel.org>
Diffstat (limited to 'frameworks/libX11.fwrk/headers')
| -rw-r--r-- | frameworks/libX11.fwrk/headers/Config.h | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/frameworks/libX11.fwrk/headers/Config.h b/frameworks/libX11.fwrk/headers/Config.h index f311fdb..7466eaf 100644 --- a/frameworks/libX11.fwrk/headers/Config.h +++ b/frameworks/libX11.fwrk/headers/Config.h @@ -6,6 +6,24 @@ #ifndef X11_FOUNDATION_H #define X11_FOUNDATION_H +#include <libSystem/SystemKit/System.h> +#define _X11_ARRAY_CHECK(PTR) PTR != nullptr +#define _X11_ARRAY_INDEX(ARR, PTR, LEN) ARR[((SInt64) PTR) % LEN] + +namespace X11 { + +/// @brief Plain Old Data type for a X11 connection. +struct X11Connection final { + SInt32 fSocket; + SInt32 fType; + SInt32 fFlags; + SInt32 fPad; +}; + +typedef X11Connection* X11ConnectionPtr; +typedef X11ConnectionPtr* X11ConnectionArray; + +} // namespace X11 #endif |
