diff options
| author | Amlal El Mahrouss <amlal@nekernel.org> | 2026-03-22 16:39:18 +0100 |
|---|---|---|
| committer | Amlal El Mahrouss <amlal@nekernel.org> | 2026-03-22 16:39:18 +0100 |
| commit | 77740bb4e451500957e7f27348d25456903dc60a (patch) | |
| tree | def84fd09d73f8eb1bc17f0d3888dcd675c80d5c /frameworks/libX11.fwrk | |
| parent | 29b482a719cc76df5a516ea24c076812cbbcfd4f (diff) | |
[FEAT] libX11: Working on the X11ConnMgr to manage clients connection for a X11 server.x11-conn-mgr
Signed-off-by: Amlal El Mahrouss <amlal@nekernel.org>
Diffstat (limited to 'frameworks/libX11.fwrk')
| -rw-r--r-- | frameworks/libX11.fwrk/headers/Config.h (renamed from frameworks/libX11.fwrk/headers/Foundation.h) | 2 | ||||
| -rw-r--r-- | frameworks/libX11.fwrk/src/X11ConnMgr.cpp | 21 | ||||
| -rw-r--r-- | frameworks/libX11.fwrk/src/X11Connection.cpp | 7 |
3 files changed, 22 insertions, 8 deletions
diff --git a/frameworks/libX11.fwrk/headers/Foundation.h b/frameworks/libX11.fwrk/headers/Config.h index ab06dcd..7056070 100644 --- a/frameworks/libX11.fwrk/headers/Foundation.h +++ b/frameworks/libX11.fwrk/headers/Config.h @@ -6,6 +6,6 @@ #ifndef X11_FOUNDATION_H #define X11_FOUNDATION_H -#include <ne_system/System/X11.h> +#include <X11/Xlib.h> #endif diff --git a/frameworks/libX11.fwrk/src/X11ConnMgr.cpp b/frameworks/libX11.fwrk/src/X11ConnMgr.cpp new file mode 100644 index 0000000..4d3d61a --- /dev/null +++ b/frameworks/libX11.fwrk/src/X11ConnMgr.cpp @@ -0,0 +1,21 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026, Amlal El Mahrouss (amlal@nekernel.org) +// Licensed under the Apache License, Version 2.0 (see LICENSE file) +// Official repository: https://github.com/ne-foss-org/ne_system + +#include <libSystem/SystemKit/System.h> +#include <libX11.fwrk/headers/Config.h> +#include <CoreFoundation.fwrk/headers/String.h> + +#define X11_ARRAY_CHECK(PTR) PTR != nullptr +#define X11_ARRAY_INDEX(ARR, PTR, LEN) ARR[((SInt64)PTR) % LEN] + +struct X11Connection final { + SInt32 fSocket; + SInt32 fType; + SInt32 fFlags; + SInt32 fPad; +}; + +typedef X11Connection* X11ConnectionPtr; +typedef X11ConnectionPtr* X11ConnectionArray; diff --git a/frameworks/libX11.fwrk/src/X11Connection.cpp b/frameworks/libX11.fwrk/src/X11Connection.cpp deleted file mode 100644 index ad4f054..0000000 --- a/frameworks/libX11.fwrk/src/X11Connection.cpp +++ /dev/null @@ -1,7 +0,0 @@ -// SPDX-License-Identifier: Apache-2.0 -// Copyright 2026, Amlal El Mahrouss (amlal@nekernel.org) -// Licensed under the Apache License, Version 2.0 (see LICENSE file) -// Official repository: https://github.com/ne-foss-org/ne_system - -#include <libSystem/SystemKit/System.h> - |
