From 5f12929a80c6cc03bff075be7e1b8dc74cd0f2c4 Mon Sep 17 00:00:00 2001 From: Amlal El Mahrouss Date: Fri, 27 Mar 2026 09:06:08 +0100 Subject: [FEAT] frameworks: Update frameworks code, adding new `libSocket` framework. Signed-off-by: Amlal El Mahrouss --- frameworks/libSocket.fwrk/dist/.keep | 0 frameworks/libSocket.fwrk/headers/Config.h | 18 ++++++++++++++++++ frameworks/libSocket.fwrk/libSocket.fwrk.json | 20 ++++++++++++++++++++ frameworks/libSocket.fwrk/src/.keep | 0 frameworks/libSocket.fwrk/xml/app.xml | 4 ++++ frameworks/libThread.fwrk/headers/Config.h | 2 +- frameworks/libThread.fwrk/src/ThreadMgr.cpp | 2 +- frameworks/libX11.fwrk/headers/Config.h | 2 +- frameworks/libX11.fwrk/src/X11ConnMgr.cpp | 2 +- 9 files changed, 46 insertions(+), 4 deletions(-) create mode 100644 frameworks/libSocket.fwrk/dist/.keep create mode 100644 frameworks/libSocket.fwrk/headers/Config.h create mode 100644 frameworks/libSocket.fwrk/libSocket.fwrk.json create mode 100644 frameworks/libSocket.fwrk/src/.keep create mode 100644 frameworks/libSocket.fwrk/xml/app.xml (limited to 'frameworks') diff --git a/frameworks/libSocket.fwrk/dist/.keep b/frameworks/libSocket.fwrk/dist/.keep new file mode 100644 index 0000000..e69de29 diff --git a/frameworks/libSocket.fwrk/headers/Config.h b/frameworks/libSocket.fwrk/headers/Config.h new file mode 100644 index 0000000..ca38da0 --- /dev/null +++ b/frameworks/libSocket.fwrk/headers/Config.h @@ -0,0 +1,18 @@ +// 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 + +#ifndef SOCKET_FOUNDATION_H +#define SOCKET_FOUNDATION_H + +#include + +#define LIBSOCKET_VERSION 0x100000 + +#define _SOCKET_ARRAY_CHECK(PTR) PTR != nullptr +#define _SOCKET_ARRAY_INDEX(ARR, PTR, LEN) ARR[((SInt64) PTR) % LEN] + +#define _SOCKET_INVALID ((SizeT)-1) + +#endif diff --git a/frameworks/libSocket.fwrk/libSocket.fwrk.json b/frameworks/libSocket.fwrk/libSocket.fwrk.json new file mode 100644 index 0000000..a1b13bb --- /dev/null +++ b/frameworks/libSocket.fwrk/libSocket.fwrk.json @@ -0,0 +1,20 @@ +{ + "compiler_path": "x86_64-w64-mingw32-g++", + "compiler_std": "c++20", + "headers_path": ["../", "./", "../../src/kernel", "../../src/kernel/src"], + "sources_path": ["src/*.cpp"], + "output_name": "./dist/libSocket.fwrk.dylib", + "compiler_flags": [ + "-ffreestanding", + "-shared", + "-fno-rtti", + "-fno-exceptions", + "-Wl,--subsystem=17" + ], + "cpp_macros": [ + "kSocketVersion=0x0100", + "kSocketVersionHighest=0x0100", + "kSocketVersionLowest=0x0100" + ] + } + diff --git a/frameworks/libSocket.fwrk/src/.keep b/frameworks/libSocket.fwrk/src/.keep new file mode 100644 index 0000000..e69de29 diff --git a/frameworks/libSocket.fwrk/xml/app.xml b/frameworks/libSocket.fwrk/xml/app.xml new file mode 100644 index 0000000..bd1dbee --- /dev/null +++ b/frameworks/libSocket.fwrk/xml/app.xml @@ -0,0 +1,4 @@ + + + + \ No newline at end of file diff --git a/frameworks/libThread.fwrk/headers/Config.h b/frameworks/libThread.fwrk/headers/Config.h index f69f0f5..f8f5dab 100644 --- a/frameworks/libThread.fwrk/headers/Config.h +++ b/frameworks/libThread.fwrk/headers/Config.h @@ -1,7 +1,7 @@ // 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 +// Official repository: https://github.com/ne-foss-org/ne-system #ifndef LIBTHREAD_FOUNDATION_H #define LIBTHREAD_FOUNDATION_H diff --git a/frameworks/libThread.fwrk/src/ThreadMgr.cpp b/frameworks/libThread.fwrk/src/ThreadMgr.cpp index 6a7843f..7d663d3 100644 --- a/frameworks/libThread.fwrk/src/ThreadMgr.cpp +++ b/frameworks/libThread.fwrk/src/ThreadMgr.cpp @@ -1,7 +1,7 @@ // 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 +// Official repository: https://github.com/ne-foss-org/ne-system #include #include diff --git a/frameworks/libX11.fwrk/headers/Config.h b/frameworks/libX11.fwrk/headers/Config.h index 1207451..30bb449 100644 --- a/frameworks/libX11.fwrk/headers/Config.h +++ b/frameworks/libX11.fwrk/headers/Config.h @@ -1,7 +1,7 @@ // 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 +// Official repository: https://github.com/ne-foss-org/ne-system #ifndef X11_FOUNDATION_H #define X11_FOUNDATION_H diff --git a/frameworks/libX11.fwrk/src/X11ConnMgr.cpp b/frameworks/libX11.fwrk/src/X11ConnMgr.cpp index 61752f1..ca55c8b 100644 --- a/frameworks/libX11.fwrk/src/X11ConnMgr.cpp +++ b/frameworks/libX11.fwrk/src/X11ConnMgr.cpp @@ -1,7 +1,7 @@ // 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 +// Official repository: https://github.com/ne-foss-org/ne-system #include -- cgit v1.2.3