mirror of
https://github.com/wiiu-env/wut.git
synced 2025-01-06 14:38:13 +01:00
Add unit heap functions.
This commit is contained in:
parent
0aa7d4b2c4
commit
512fee7d94
41
include/coreinit/unitheap.h
Normal file
41
include/coreinit/unitheap.h
Normal file
@ -0,0 +1,41 @@
|
||||
#pragma once
|
||||
#include <wut.h>
|
||||
|
||||
WUT_LIB_HEADER_START
|
||||
|
||||
typedef struct MEMUnitHeap MEMUnitHeap;
|
||||
|
||||
struct MEMUnitHeap
|
||||
{
|
||||
};
|
||||
UNKNOWN_SIZE(MEMUnitHeap);
|
||||
|
||||
MEMUnitHeap *
|
||||
MEMCreateUnitHeapEx(MEMUnitHeap *heap,
|
||||
uint32_t size,
|
||||
uint32_t blockSize,
|
||||
int32_t alignment,
|
||||
uint16_t flags);
|
||||
|
||||
void *
|
||||
MEMDestroyUnitHeap(MEMUnitHeap *heap);
|
||||
|
||||
void *
|
||||
MEMAllocFromUnitHeap(MEMUnitHeap *heap);
|
||||
|
||||
void
|
||||
MEMFreeToUnitHeap(MEMUnitHeap *heap,
|
||||
void *block);
|
||||
|
||||
void
|
||||
MEMiDumpUnitHeap(MEMUnitHeap *heap);
|
||||
|
||||
uint32_t
|
||||
MEMCountFreeBlockForUnitHeap(MEMUnitHeap *heap);
|
||||
|
||||
uint32_t
|
||||
MEMCalcHeapSizeForUnitHeap(uint32_t blockSize,
|
||||
uint32_t count,
|
||||
int32_t alignment);
|
||||
|
||||
WUT_LIB_HEADER_END
|
@ -218,3 +218,12 @@ EXPORT(OSGetTick);
|
||||
EXPORT(OSGetSystemTick);
|
||||
EXPORT(OSCalendarTimeToTicks);
|
||||
EXPORT(OSTicksToCalendarTime);
|
||||
|
||||
// coreinit/unitheap.h
|
||||
EXPORT(MEMCreateUnitHeapEx);
|
||||
EXPORT(MEMDestroyUnitHeap);
|
||||
EXPORT(MEMAllocFromUnitHeap);
|
||||
EXPORT(MEMFreeToUnitHeap);
|
||||
EXPORT(MEMiDumpUnitHeap);
|
||||
EXPORT(MEMCountFreeBlockForUnitHeap);
|
||||
EXPORT(MEMCalcHeapSizeForUnitHeap);
|
||||
|
Loading…
Reference in New Issue
Block a user