mirror of
https://github.com/zeldaret/ss
synced 2026-06-13 13:56:38 -04:00
20 lines
403 B
C
20 lines
403 B
C
#ifndef RVL_SDK_OS_ALLOC_H
|
|
#define RVL_SDK_OS_ALLOC_H
|
|
#include <common.h>
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
extern volatile s32 __OSCurrHeap;
|
|
|
|
void *OSAllocFromHeap(s32 handle, s32 size);
|
|
void OSFreeToHeap(s32 handle, void *p);
|
|
s32 OSSetCurrentHeap(s32 handle);
|
|
void *OSInitAlloc(void *start, void *end, s32 numHeaps);
|
|
s32 OSCreateHeap(void *start, void *end);
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
#endif
|