pokeheartgold/lib/include/nitro/os/ARM7/alloc.h

29 lines
835 B
C

/*
* NOTE:
* This file is specific to ARM7
* DO NOT PUT SHARED/ARM9 CODE IN HERE
* Thank You!
*/
/*
* DO NOT INCLUDE THIS FILE DIRECTLY
* Include <nitro/os/alloc.h> instead!
*/
#ifndef NITRO_OS_ARM7_ALLOC_H
#define NITRO_OS_ARM7_ALLOC_H
#include <nitro/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 //NITRO_OS_ARM7_ALLOC_H