summaryrefslogtreecommitdiff
path: root/include/listalloc.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/listalloc.h')
-rw-r--r--include/listalloc.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/include/listalloc.h b/include/listalloc.h
new file mode 100644
index 000000000..e4ca07f07
--- /dev/null
+++ b/include/listalloc.h
@@ -0,0 +1,16 @@
+#ifndef LISTALLOC_H
+#define LISTALLOC_H
+
+#include "ultra64.h"
+
+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