diff options
| author | Amlal El Mahrouss <amlal@nekernel.org> | 2026-03-27 09:06:08 +0100 |
|---|---|---|
| committer | Amlal El Mahrouss <amlal@nekernel.org> | 2026-03-27 09:11:32 +0100 |
| commit | 5f12929a80c6cc03bff075be7e1b8dc74cd0f2c4 (patch) | |
| tree | 012d939cde8a7e0b9cfa5e2214c14eedb57c5f01 /include/ne-system/System | |
| parent | c32f2d094de351d04b158758e0cb7f45b14b00b6 (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/System')
| -rw-r--r-- | include/ne-system/System/Detail/Config.h | 20 | ||||
| -rw-r--r-- | include/ne-system/System/NeSystem.h | 33 | ||||
| -rw-r--r-- | include/ne-system/System/WindowSystems/Wayland.h | 13 | ||||
| -rw-r--r-- | include/ne-system/System/WindowSystems/X11.h | 28 |
4 files changed, 94 insertions, 0 deletions
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_ + |
