coreinit: Add MEMVisitAllocatedForExpHeap

This commit is contained in:
James Benton 2018-05-30 19:05:54 +01:00
parent 61a84c50b6
commit 1489adeb37
2 changed files with 9 additions and 0 deletions

View File

@ -129,6 +129,7 @@ MEMGetGroupIDForExpHeap
MEMGetSizeForMBlockExpHeap
MEMGetGroupIDForMBlockExpHeap
MEMGetAllocDirForMBlockExpHeap
MEMVisitAllocatedForExpHeap
// coreinit/fastcondition.h
OSFastCond_Init

View File

@ -16,6 +16,9 @@ typedef struct MEMExpHeap MEMExpHeap;
typedef struct MEMExpHeapBlock MEMExpHeapBlock;
typedef struct MEMExpHeapBlockList MEMExpHeapBlockList;
typedef void (*MEMExpHeapBlockVisitor)(void *block, MEMHeapHandle heap,
void *context);
typedef enum MEMExpHeapMode
{
MEM_EXP_HEAP_MODE_FIRST_FREE = 0,
@ -123,6 +126,11 @@ MEMGetGroupIDForMBlockExpHeap(void *block);
MEMExpHeapDirection
MEMGetAllocDirForMBlockExpHeap(void *block);
void
MEMVisitAllocatedForExpHeap(MEMHeapHandle heap,
MEMExpHeapBlockVisitor callback,
void *context);
#ifdef __cplusplus
}
#endif