diff options
author | Akira Akashi <rubenru09@aol.com> | 2021-06-03 02:48:35 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-06-03 02:48:35 +0100 |
commit | 33a7ec1fd719b9321357aa59460cbdb9f7779053 (patch) | |
tree | 993c0c156f6a3c310cccd2a3e0ac802b59ab149e /arm9/lib/include/NNS_FND_heapcommon.h | |
parent | 7e32d3758e7e36d7a67a1442cdb9386f9aa18a6e (diff) | |
parent | 6e3af5fa580d0f6aca3bb310d979323bf2a09a84 (diff) |
Merge pull request #400 from PikalaxALT/doc_heap_etc
SDK-informed refactoring
Diffstat (limited to 'arm9/lib/include/NNS_FND_heapcommon.h')
-rw-r--r-- | arm9/lib/include/NNS_FND_heapcommon.h | 26 |
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
|