summaryrefslogtreecommitdiffhomepage
path: root/Public/Kits/System.Core/HcHeapAPI.h
diff options
context:
space:
mode:
authorAmlal El Mahrouss <amlal@el-mahrouss-logic.com>2024-03-10 15:41:08 +0100
committerAmlal El Mahrouss <amlal@el-mahrouss-logic.com>2024-03-10 15:41:08 +0100
commit5468ca71a59c9e24c1d392554e8f97f0c1705394 (patch)
tree1e8af47da852d4ad02a2ea48a967694c7bfc19c3 /Public/Kits/System.Core/HcHeapAPI.h
parent94d7585ae766d777f41d07b1a98051d12a6a0256 (diff)
Kernel: Reworked StorageKit to add AHCI support.
Signed-off-by: Amlal El Mahrouss <amlal@el-mahrouss-logic.com>
Diffstat (limited to 'Public/Kits/System.Core/HcHeapAPI.h')
-rw-r--r--Public/Kits/System.Core/HcHeapAPI.h23
1 files changed, 23 insertions, 0 deletions
diff --git a/Public/Kits/System.Core/HcHeapAPI.h b/Public/Kits/System.Core/HcHeapAPI.h
new file mode 100644
index 00000000..20078ce7
--- /dev/null
+++ b/Public/Kits/System.Core/HcHeapAPI.h
@@ -0,0 +1,23 @@
+/** ===========================================
+ (C) Mahrouss Logic
+ ===========================================*/
+
+#pragma once
+
+#ifdef __cplusplus
+#define EXTERN_C extern "C"
+#else
+#define EXTERN_C extern
+#endif // ifdef __cplusplus
+
+typedef struct HcObject {
+ void(*Release)(void);
+ void(*Invoke)(void);
+ void(*QueryInterface)(void);
+} *HcObjectPtr;
+
+EXTERN_C HcObjectPtr HcGetProcessHeap(void);
+EXTERN_C void* HcAllocateProcessHeap(HcObjectPtr refObj, long long int sz, int flags);
+EXTERN_C void HcFreeProcessHeap(HcObjectPtr refObj, void* ptr);
+EXTERN_C long long int HcProcessHeapSize(HcObjectPtr refObj, void* ptr);
+EXTERN_C long long int HcProcessHeapExists(HcObjectPtr refObj, void* ptr); \ No newline at end of file