summaryrefslogtreecommitdiff
path: root/include/listalloc.h
blob: e4ca07f0729c79cd0451f214b0e43e8201765e81 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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