Files
ss/include/rvl/OS/OSAlloc.h
T
2023-12-24 09:59:13 -05:00

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