wut/include/coreinit/baseheap.h

47 lines
704 B
C
Raw Normal View History

2016-01-07 14:20:05 +01:00
#pragma once
#include <wut.h>
2016-01-07 17:02:54 +01:00
/**
* \defgroup coreinit_baseheap Base Heap
* \ingroup coreinit
* @{
*/
2016-01-07 15:09:43 +01:00
#ifdef __cplusplus
extern "C" {
#endif
2016-01-07 14:20:05 +01:00
typedef void *MEMHeapHandle;
2016-01-08 16:28:52 +01:00
typedef enum MEMBaseHeapType
2016-01-07 14:20:05 +01:00
{
MEM_BASE_HEAP_MEM1 = 0,
MEM_BASE_HEAP_MEM2 = 1,
MEM_BASE_HEAP_FG = 8,
2016-01-08 16:28:52 +01:00
} MEMBaseHeapType;
2016-01-07 14:20:05 +01:00
/**
* Get which memory area a heap belongs to.
*/
2016-01-07 14:20:05 +01:00
MEMBaseHeapType
MEMGetArena(MEMHeapHandle handle);
/**
* Get base heap for memory area.
*/
2016-01-07 14:20:05 +01:00
MEMHeapHandle
MEMGetBaseHeapHandle(MEMBaseHeapType type);
/**
* Set base heap for memory area.
*/
2016-01-07 14:20:05 +01:00
MEMHeapHandle
MEMSetBaseHeapHandle(MEMBaseHeapType type,
MEMHeapHandle handle);
2016-01-07 15:09:43 +01:00
#ifdef __cplusplus
}
#endif
2016-01-07 17:02:54 +01:00
/** @} */