mirror of
https://github.com/wiiu-env/wut.git
synced 2024-12-13 17:51:53 +01:00
47 lines
704 B
C
47 lines
704 B
C
#pragma once
|
|
#include <wut.h>
|
|
|
|
/**
|
|
* \defgroup coreinit_baseheap Base Heap
|
|
* \ingroup coreinit
|
|
* @{
|
|
*/
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
typedef void *MEMHeapHandle;
|
|
|
|
typedef enum MEMBaseHeapType
|
|
{
|
|
MEM_BASE_HEAP_MEM1 = 0,
|
|
MEM_BASE_HEAP_MEM2 = 1,
|
|
MEM_BASE_HEAP_FG = 8,
|
|
} MEMBaseHeapType;
|
|
|
|
/**
|
|
* Get which memory area a heap belongs to.
|
|
*/
|
|
MEMBaseHeapType
|
|
MEMGetArena(MEMHeapHandle handle);
|
|
|
|
/**
|
|
* Get base heap for memory area.
|
|
*/
|
|
MEMHeapHandle
|
|
MEMGetBaseHeapHandle(MEMBaseHeapType type);
|
|
|
|
/**
|
|
* Set base heap for memory area.
|
|
*/
|
|
MEMHeapHandle
|
|
MEMSetBaseHeapHandle(MEMBaseHeapType type,
|
|
MEMHeapHandle handle);
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
/** @} */
|