Add MEMFindParentHeap and MEMCreateUserHeapHandle

This commit is contained in:
Maschell 2018-06-19 23:12:53 +02:00 committed by James Benton
parent efeb31620d
commit fa285aa946

View File

@ -104,6 +104,12 @@ MEMHeapHandle
MEMSetBaseHeapHandle(MEMBaseHeapType type,
MEMHeapHandle handle);
/**
* Create a heap handle for a user defined heap.
*/
MEMHeapHandle
MEMCreateUserHeapHandle(void *heap,
uint32_t size);
/**
* Print details about heap to COSWarn
@ -118,6 +124,11 @@ MEMDumpHeap(MEMHeapHandle heap);
MEMHeapHeader *
MEMFindContainHeap(void *block);
/**
* Find the parent heap of a given heap. Return NULL if no parent was found.
*/
MEMHeapHandle
MEMFindParentHeap(MEMHeapHandle handle);
/**
* Get the data fill value used when MEM_HEAP_FLAG_DEBUG_MODE is set.