summaryrefslogtreecommitdiff
path: root/include/listalloc.h
diff options
context:
space:
mode:
authorengineer124 <47598039+engineer124@users.noreply.github.com>2023-09-16 08:34:16 +1000
committerGitHub <noreply@github.com>2023-09-15 19:34:16 -0300
commitdf800c74aecfb6b89ee976df8a2f11451f295e37 (patch)
treecf51aeffe924ebcfb11ec0d0511358fd7b06027a /include/listalloc.h
parent4b30f1a6549c99eff5344a815b12f54e69d689e9 (diff)
PreRender.c OK (#1320)
* begin prerender * match func_801716C4 * copy more docs from OoT * begin func_801720FC * improve func_801720FC * match func_801720FC * background 2D * merge master * func_801717F8 attempt * z64prerender.h * import bss * non-equivalent * document func_801716C4 * cleanup comments * import tharo docs * minor improvement on PreRender_DivotFilter * Match PreRender_DivotFilter * Remove fakes * format * Fix comment about RM_VISCVG in PreRender_FetchFbufCoverage * PreRender cleanup * PR Review * review * listalloc.h * bss * capitalization --------- Co-authored-by: angie <angheloalf95@gmail.com> Co-authored-by: Derek Hensley <hensley.derek58@gmail.com>
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