summaryrefslogtreecommitdiffhomepage
path: root/include/ne-system
diff options
context:
space:
mode:
authorAmlal El Mahrouss <amlal@nekernel.org>2026-03-27 09:06:08 +0100
committerAmlal El Mahrouss <amlal@nekernel.org>2026-03-27 09:11:32 +0100
commit5f12929a80c6cc03bff075be7e1b8dc74cd0f2c4 (patch)
tree012d939cde8a7e0b9cfa5e2214c14eedb57c5f01 /include/ne-system
parentc32f2d094de351d04b158758e0cb7f45b14b00b6 (diff)
[FEAT] frameworks: Update frameworks code, adding new `libSocket` framework.
Signed-off-by: Amlal El Mahrouss <amlal@nekernel.org>
Diffstat (limited to 'include/ne-system')
-rw-r--r--include/ne-system/.sdk_map4
-rw-r--r--include/ne-system/Drivers/DDK.h11
-rw-r--r--include/ne-system/Drivers/Detail/Config.h19
-rw-r--r--include/ne-system/System/Detail/Config.h20
-rw-r--r--include/ne-system/System/NeSystem.h33
-rw-r--r--include/ne-system/System/WindowSystems/Wayland.h13
-rw-r--r--include/ne-system/System/WindowSystems/X11.h28
7 files changed, 128 insertions, 0 deletions
diff --git a/include/ne-system/.sdk_map b/include/ne-system/.sdk_map
new file mode 100644
index 0000000..da79ef9
--- /dev/null
+++ b/include/ne-system/.sdk_map
@@ -0,0 +1,4 @@
+[DDK]
+Drivers
+[User]
+System \ No newline at end of file
diff --git a/include/ne-system/Drivers/DDK.h b/include/ne-system/Drivers/DDK.h
new file mode 100644
index 0000000..6503969
--- /dev/null
+++ b/include/ne-system/Drivers/DDK.h
@@ -0,0 +1,11 @@
+// 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/src
+
+#ifndef _NE_DDK_DDK_H_
+#define _NE_DDK_DDK_H_
+
+#include <ne-system/Drivers/Detail/Config.h>
+
+#endif // _NE_DDK_DDK_H_
diff --git a/include/ne-system/Drivers/Detail/Config.h b/include/ne-system/Drivers/Detail/Config.h
new file mode 100644
index 0000000..cb788d6
--- /dev/null
+++ b/include/ne-system/Drivers/Detail/Config.h
@@ -0,0 +1,19 @@
+// 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/src
+
+#ifndef _NE_DDK_CONFIG_H_
+#define _NE_DDK_CONFIG_H_
+
+#define _ARCH __ne_arch
+
+#define _SUBSYSTEM_NET 0x1000
+#define _SUBSYSTEM_DDK 0x1000
+#define _SUBSYSTEM_SYS 0x1000
+
+#define _NEKERNEL 202603L
+
+#include <libDDK/DriverKit/DriverKit.h>
+
+#endif
diff --git a/include/ne-system/System/Detail/Config.h b/include/ne-system/System/Detail/Config.h
new file mode 100644
index 0000000..474a107
--- /dev/null
+++ b/include/ne-system/System/Detail/Config.h
@@ -0,0 +1,20 @@
+// 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/src
+
+#pragma once
+
+#define _ARCH __ne_arch
+
+#define _SUBSYSTEM_NET 0x1000
+#define _SUBSYSTEM_DDK 0x1000
+#define _SUBSYSTEM_SYS 0x1000
+
+#define _NEKERNEL 202603L
+
+#include <CoreFoundation.fwrk/headers/Foundation.h>
+#include <DiskImage.fwrk/headers/DiskImage.h>
+#include <LaunchHelpers.fwrk/headers/Foundation.h>
+
+
diff --git a/include/ne-system/System/NeSystem.h b/include/ne-system/System/NeSystem.h
new file mode 100644
index 0000000..8bc5063
--- /dev/null
+++ b/include/ne-system/System/NeSystem.h
@@ -0,0 +1,33 @@
+// 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 _SYSTEM_NE_SYSTEM_H_
+#define _SYSTEM_NE_SYSTEM_H_
+
+#define _NE_SYSTEM 202603L
+
+#include <ne-system/System/Detail/Config.h>
+
+/// @brief POSIX wrapper API
+#include <libPOSIXWrapper/POSIXKit/unistd.h>
+
+/// @brief IPC API
+#include <libMsg/MsgKit/Server.h>
+
+/// @brief System calls API
+#include <libSystem/SystemKit/System.h>
+
+/// @brief Sound mixer API
+#include <libSoundSystem/SoundSystemKit/VirtualMixer.h>
+
+#ifdef _NE_NEED_X11
+#include <System/WindowSystems/X11.h>
+#endif
+
+#ifdef _NE_NEED_WAYLAND
+#include <System/WindowSystems/Wayland.h>
+#endif
+
+#endif // _SYSTEM_NE_SYSTEM_H_
diff --git a/include/ne-system/System/WindowSystems/Wayland.h b/include/ne-system/System/WindowSystems/Wayland.h
new file mode 100644
index 0000000..85fe66a
--- /dev/null
+++ b/include/ne-system/System/WindowSystems/Wayland.h
@@ -0,0 +1,13 @@
+// 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/src
+
+#ifndef _SYSTEM_NE_WAYLAND_H_
+#define _SYSTEM_NE_WAYLAND_H_
+
+#define _NE_WAYLAND_SYSTEM 202603L
+
+#include <ne-system/System/WindowSystems/X11.h>
+
+#endif // _SYSTEM_NE_WAYLAND_H_ \ No newline at end of file
diff --git a/include/ne-system/System/WindowSystems/X11.h b/include/ne-system/System/WindowSystems/X11.h
new file mode 100644
index 0000000..e8bf997
--- /dev/null
+++ b/include/ne-system/System/WindowSystems/X11.h
@@ -0,0 +1,28 @@
+// 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/src
+
+#ifndef _SYSTEM_NE_X11_H_
+#define _SYSTEM_NE_X11_H_
+
+#define _NE_X11_SYSTEM 202603L
+
+struct XFCURSOR; // Cursor struct
+struct XFDISPLAY; // Display struct
+struct XFCONN; // Connection struct
+
+typedef struct XFCURSOR* XcursorImage;
+typedef struct XFCURSOR** XcursorCursors;
+
+/// @brief NeSystem Header.
+#include <ne-system/System/NeSystem.h>
+
+/// @brief Defs of the X11 protocol.
+#include <ne-system/System/X11/Imports.h>
+
+/// @brief XDG' extensions of the X11 protocol.
+#include <ne-system/System/X11/Ext/Imports.h>
+
+#endif // _SYSTEM_NE_X11_H_
+