From baf2afd8cd672dcb9c13d956dfdd73b61dfee558 Mon Sep 17 00:00:00 2001 From: Amlal El Mahrouss Date: Tue, 19 Mar 2024 10:05:31 +0100 Subject: unstable, secret: See below. System.Core: - Add RunTime init function. - Add ReadMe.md Kernel: - Improve TLS code, use Encoder class instead of casting directly. - Refactor process team to include processscheduler.hpp instead. ObjectKit: - Rename Object.hxx to ObjectKit.hxx Builtins/AHCI: - Rename API.hxx to Interface.hxx Signed-off-by: Amlal El Mahrouss --- Private/ObjectKit/Object.hxx | 36 ------------------------------------ Private/ObjectKit/ObjectKit.hxx | 37 +++++++++++++++++++++++++++++++++++++ 2 files changed, 37 insertions(+), 36 deletions(-) delete mode 100644 Private/ObjectKit/Object.hxx create mode 100644 Private/ObjectKit/ObjectKit.hxx (limited to 'Private/ObjectKit') diff --git a/Private/ObjectKit/Object.hxx b/Private/ObjectKit/Object.hxx deleted file mode 100644 index dbb7944d..00000000 --- a/Private/ObjectKit/Object.hxx +++ /dev/null @@ -1,36 +0,0 @@ -/* ------------------------------------------- - - Copyright Mahrouss Logic - -------------------------------------------- */ - -#pragma once - -#include -#include - -#define kObjectGlobalNamespaceSystem "HCORE_ROOT\\" -#define kObjectGlobalNamespaceUser "HCORE_USER_ROOT\\" - -enum { - kObjectTypeProcess, - kObjectTypeFile, - kObjectTypeDevice, - kObjectTypeNetwork, - kObjectTypeInvalid, - kObjectTypeCount, -}; - -/// \brief Object handle. -/// \author Amlal El Mahrouss -typedef struct Object final { - HCore::Char ObjectName[255]; - HCore::Int32 ObjectType; - HCore::Char ObjectNamespace[255]; - - HCore::Void(*Release)(struct Object* Self); - HCore::IntPtr(*Invoke)(struct Object* Self, HCore::Int32 Sel, ...); - HCore::Void(*Query)(struct Object* Self, HCore::VoidPtr* Dst, HCore::SizeT SzDst, HCore::XRN::GUIDSequence GuidOf); -} Object, *ObjectPtr; - -#define object_cast reinterpret_cast diff --git a/Private/ObjectKit/ObjectKit.hxx b/Private/ObjectKit/ObjectKit.hxx new file mode 100644 index 00000000..329b2c78 --- /dev/null +++ b/Private/ObjectKit/ObjectKit.hxx @@ -0,0 +1,37 @@ +/* ------------------------------------------- + + Copyright Mahrouss Logic + +------------------------------------------- */ + +#pragma once + +#include +#include + +#define kObjectGlobalNamespaceSystem "HCORE_ROOT\\" +#define kObjectGlobalNamespaceUser "HCORE_USER_ROOT\\" + +enum { + kObjectTypeProcess, + kObjectTypeFile, + kObjectTypeDevice, + kObjectTypeNetwork, + kObjectTypeInvalid, + KObjectTypeUserDefined = 0xCF, + kObjectTypeCount = 5, +}; + +/// \brief Object handle. +/// \author Amlal El Mahrouss +typedef struct Object final { + HCore::Char ObjectName[255]; + HCore::Int32 ObjectType; + HCore::Char ObjectNamespace[255]; + + HCore::Void(*Release)(struct Object* Self); + HCore::IntPtr(*Invoke)(struct Object* Self, HCore::Int32 Sel, ...); + HCore::Void(*Query)(struct Object* Self, HCore::VoidPtr* Dst, HCore::SizeT SzDst, HCore::XRN::GUIDSequence GuidOf); +} Object, *ObjectPtr; + +#define object_cast reinterpret_cast -- cgit v1.2.3