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 MEMGetSizeForMBlockExpHeap
MEMGetGroupIDForMBlockExpHeap MEMGetGroupIDForMBlockExpHeap
MEMGetAllocDirForMBlockExpHeap MEMGetAllocDirForMBlockExpHeap
MEMVisitAllocatedForExpHeap
// coreinit/fastcondition.h // coreinit/fastcondition.h
OSFastCond_Init OSFastCond_Init

View File

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