diff options
author | Egor Ananyin <ananinegor@gmail.com> | 2020-06-12 09:06:23 +0300 |
---|---|---|
committer | Egor Ananyin <ananinegor@gmail.com> | 2020-06-12 09:06:23 +0300 |
commit | 10c763389f50e38572c71b7c482005ec5f1655e7 (patch) | |
tree | fc20d0fcc5df7a977647c4d0cbe6cd4899f52431 /arm7/lib/include/OS_alloc.h | |
parent | c0793478b0fdfcf314f5ff58e46c3ac88bf46525 (diff) | |
parent | e2d7f9f796889087a3da50f7eeb2383731ca3262 (diff) |
Merge remote-tracking branch 'upstream/master'
Diffstat (limited to 'arm7/lib/include/OS_alloc.h')
-rw-r--r-- | arm7/lib/include/OS_alloc.h | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/arm7/lib/include/OS_alloc.h b/arm7/lib/include/OS_alloc.h new file mode 100644 index 00000000..bf18da0f --- /dev/null +++ b/arm7/lib/include/OS_alloc.h @@ -0,0 +1,17 @@ +#ifndef POKEDIAMOND_ARM7_OS_ALLOC_H +#define POKEDIAMOND_ARM7_OS_ALLOC_H + +#include "nitro/OS_alloc_shared.h" +#include "OS_arena.h" + +Cell *DLAddFront(Cell* list, Cell* cell); +Cell *DLExtract(Cell* list, Cell* cell); +Cell *DLInsert(Cell *original, Cell *inserted); +void* OS_AllocFromHeap(OSArenaId id, OSHeapHandle heap, u32 size); +void OS_FreeToHeap(OSArenaId id, OSHeapHandle heap, void* ptr); +OSHeapHandle OS_SetCurrentHeap(OSArenaId id, OSHeapHandle heap); +void *OS_InitAlloc(OSArenaId id, void *arenaStart, void *arenaEnd, s32 maxHeaps); +OSHeapHandle OS_CreateHeap(OSArenaId id, void *start, void *end); +s32 OS_CheckHeap(OSArenaId id, OSHeapHandle heap); + +#endif //POKEDIAMOND_ARM7_OS_ALLOC_H |