summaryrefslogtreecommitdiff
path: root/arm9/lib/include/NNS_FND_heapcommon.h
diff options
context:
space:
mode:
authorGogume1er <gogume1er@gmail.com>2021-06-05 12:06:24 +0200
committerGogume1er <gogume1er@gmail.com>2021-06-05 12:06:24 +0200
commite242303ff5f56ef258bef9ea7608b6db28889096 (patch)
treeb3e2d485e4428aac6294e03b26365d36c91d4528 /arm9/lib/include/NNS_FND_heapcommon.h
parent2288e6d101397143b08ff64a38baaeedd7f2c3dd (diff)
parent33a7ec1fd719b9321357aa59460cbdb9f7779053 (diff)
Merge branch 'master' into unkk_020851B8
# Conflicts: # arm9/asm/unk_020851B8.s
Diffstat (limited to 'arm9/lib/include/NNS_FND_heapcommon.h')
-rw-r--r--arm9/lib/include/NNS_FND_heapcommon.h26
1 files changed, 26 insertions, 0 deletions
diff --git a/arm9/lib/include/NNS_FND_heapcommon.h b/arm9/lib/include/NNS_FND_heapcommon.h
new file mode 100644
index 00000000..eb6f1bdb
--- /dev/null
+++ b/arm9/lib/include/NNS_FND_heapcommon.h
@@ -0,0 +1,26 @@
+#ifndef GUARD_NNS_FND_HEAPCOMMON_H
+#define GUARD_NNS_FND_HEAPCOMMON_H
+
+#include "NNS_FND_list.h"
+
+#define NNS_FND_HEAP_DEFAULT_ALIGNMENT 4
+
+typedef struct NNSiFndHeapHead NNSiFndHeapHead;
+
+struct NNSiFndHeapHead
+{
+ u32 signature;
+
+ NNSFndLink link;
+ NNSFndList childList;
+
+ void* heapStart; // Heap start address
+ void* heapEnd; // Heap end (+1) address
+
+ u32 attribute; // Attribute
+ // [8:Option flag]
+};
+
+typedef NNSiFndHeapHead* NNSFndHeapHandle; // Type to represent heap handle
+
+#endif //GUARD_NNS_FND_HEAPCOMMON_H