diff options
| author | Amlal El Mahrouss <amlal@el-mahrouss-logic.com> | 2024-03-17 21:38:54 +0100 |
|---|---|---|
| committer | Amlal El Mahrouss <amlal@el-mahrouss-logic.com> | 2024-03-17 21:39:15 +0100 |
| commit | a4bfc396a78ddd553de519ab927d8479d0c3c45d (patch) | |
| tree | 6ff41607784ee4db226843c1aec6b06d4be5a779 /Private/ObjectKit | |
| parent | a8366afaf39321ae2bbae70740f5ca65bee06769 (diff) | |
unrelated: See below.
Public: Kits: Implemented System API and the concept of object handles.
Signed-off-by: Amlal El Mahrouss <amlal@el-mahrouss-logic.com>
Diffstat (limited to 'Private/ObjectKit')
| -rw-r--r-- | Private/ObjectKit/Object.hxx | 18 |
1 files changed, 8 insertions, 10 deletions
diff --git a/Private/ObjectKit/Object.hxx b/Private/ObjectKit/Object.hxx index af228163..9840a52e 100644 --- a/Private/ObjectKit/Object.hxx +++ b/Private/ObjectKit/Object.hxx @@ -12,17 +12,15 @@ #define kObjectGlobalNamespaceSystem "HCORE_ROOT\\" #define kObjectGlobalNamespaceUser "HCORE_USER_ROOT\\" -namespace HCore { /// \brief Object handle. typedef struct Object final { - WideChar ObjectName[255]; - Int32 ObjectType; - WideChar ObjectNamespace[255]; - - Void(*Release)(struct Object* Self); - Void(*Invoke)(struct Object* Self, Int32 Sel, ...); - Void(*QueryInterface)(VoidPtr* Dst, SizeT SzDst, XRN::GUIDSequence GuidOf); -} Ojbect, *ObjectPtr; -} // namespace HCore + HCore::WideChar ObjectName[255]; + HCore::Int32 ObjectType; + HCore::WideChar ObjectNamespace[255]; + + HCore::Void(*Release)(struct Object* Self); + HCore::IntPtr(*Invoke)(struct Object* Self, HCore::Int32 Sel, ...); + HCore::Void(*QueryInterface)(HCore::VoidPtr* Dst, HCore::SizeT SzDst, HCore::XRN::GUIDSequence GuidOf); +} Object, *ObjectPtr; #define object_cast reinterpret_cast |
