mirror of
https://github.com/wiiu-env/wut.git
synced 2024-12-13 22:41:48 +01:00
69 lines
1.3 KiB
C
69 lines
1.3 KiB
C
#pragma once
|
|
#include <wut.h>
|
|
|
|
/**
|
|
* \defgroup coreinit_frameheap Frame Heap
|
|
* \ingroup coreinit
|
|
* @{
|
|
*/
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
typedef enum MEMFrameHeapFreeMode
|
|
{
|
|
MEM_FRAME_HEAP_FREE_FROM_BOTTOM = 1 << 0,
|
|
MEM_FRAME_HEAP_FREE_FROM_TOP = 1 << 1,
|
|
} MEMFrameHeapFreeMode;
|
|
|
|
typedef struct MEMFrameHeap MEMFrameHeap;
|
|
|
|
struct MEMFrameHeap
|
|
{
|
|
};
|
|
UNKNOWN_SIZE(MEMFrameHeap);
|
|
|
|
MEMFrameHeap *
|
|
MEMCreateFrmHeapEx(MEMFrameHeap *heap,
|
|
uint32_t size,
|
|
uint16_t flags);
|
|
|
|
void *
|
|
MEMDestroyFrmHeap(MEMFrameHeap *heap);
|
|
|
|
void *
|
|
MEMAllocFromFrmHeapEx(MEMFrameHeap *heap,
|
|
uint32_t size,
|
|
int alignment);
|
|
|
|
void
|
|
MEMFreeToFrmHeap(MEMFrameHeap *heap,
|
|
MEMFrameHeapFreeMode mode);
|
|
|
|
BOOL
|
|
MEMRecordStateForFrmHeap(MEMFrameHeap *heap,
|
|
uint32_t tag);
|
|
|
|
BOOL
|
|
MEMFreeByStateToFrmHeap(MEMFrameHeap *heap,
|
|
uint32_t tag);
|
|
|
|
uint32_t
|
|
MEMAdjustFrmHeap(MEMFrameHeap *heap);
|
|
|
|
uint32_t
|
|
MEMResizeForMBlockFrmHeap(MEMFrameHeap *heap,
|
|
uint32_t addr,
|
|
uint32_t size);
|
|
|
|
uint32_t
|
|
MEMGetAllocatableSizeForFrmHeapEx(MEMFrameHeap *heap,
|
|
int alignment);
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
/** @} */
|