summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorPrakxo <87568477+Prakxo@users.noreply.github.com>2024-03-27 17:55:05 +0100
committerGitHub <noreply@github.com>2024-03-27 09:55:05 -0700
commit540648ef26d6dbdd4277bd4bdd8a38e32e8569ad (patch)
treeb708af79f4843a47daccc154aee8ff7057391e45 /include
parent4b081155a9f62ccc0bf46245cd2219cfb9324cd9 (diff)
listalloc OK (#158)
Diffstat (limited to 'include')
-rw-r--r--include/PreRender.h5
-rw-r--r--include/listalloc.h13
2 files changed, 9 insertions, 9 deletions
diff --git a/include/PreRender.h b/include/PreRender.h
index 48d9c39..cc54950 100644
--- a/include/PreRender.h
+++ b/include/PreRender.h
@@ -4,11 +4,6 @@
#include "ultra64.h"
#include "unk.h"
-typedef struct ListAlloc {
- /* 0x0 */ struct ListAlloc* prev;
- /* 0x4 */ struct ListAlloc* next;
-} ListAlloc; // size = 0x8
-
typedef struct PreRender {
/* 0x00 */ u16 unk_00;
/* 0x02 */ u16 unk_02;
diff --git a/include/listalloc.h b/include/listalloc.h
index 9e3e0f4..e4ca07f 100644
--- a/include/listalloc.h
+++ b/include/listalloc.h
@@ -3,9 +3,14 @@
#include "ultra64.h"
-// void func_800D6390_jp();
-// void func_800D63A4_jp();
-// void func_800D6410_jp();
-// void func_800D6490_jp();
+typedef struct ListAlloc {
+ /* 0x0 */ struct ListAlloc* prev;
+ /* 0x4 */ struct ListAlloc* next;
+} ListAlloc; // size = 0x8
+
+ListAlloc* ListAlloc_Init(ListAlloc* this);
+void* ListAlloc_Alloc(ListAlloc* this, size_t size);
+void ListAlloc_Free(ListAlloc* this, void* data);
+void ListAlloc_FreeAll(ListAlloc* this);
#endif