ProcUISetMemoryPool

Syntax

#include <cafe/procui.h>

s32 ProcUISetMemoryPool(void* pMemory, u32 sizeInBytes);

Parameters

pMemory The pointer to the allocated memory.
sizeInBytes The amount of memory available. Should match the return value of ProcUICalcMemorySize.

Return Values

PROCUI_STATUS_OK Successfully done.
PROCUI_STATUS_INVALID_HEAP There was an error creating the internal heap.

Description

Modifies ProcUI to use predefined memory as opposed to allocate from the default heap.

NOTE:
ProcUISetCallbackStackSize must be called before ProcUISetMemoryPool. ProcUISetMemoryPool may only be called before ProcUIInit.

Do Not Call From

Multiple threads This function, while thread-safe, is designed to be called from only a single thread.

See Also

ProcUIInit
ProcUICalcMemorySize
ProcUISetCallbackStackSize

Revision History

2013/05/08 Automated cleanup pass.
2012/05/04 Initial version.


CONFIDENTIAL