Creates a global context initialized with user-provided callback functions.
#include "huctx.h"
int hu_GlobalCtxCreate(hu_MallocFunc *sbMalloc, hu_FreeFunc *sbFree, hu_MemCpyFunc *sbMemcpy, hu_MemCmpFunc *sbMemcmp, hu_MemSetFunc *sbMemset, hu_TimeFunc *sbTime, void *cbData, sb_GlobalCtx *sbCtx)
BlackBerry 10.0.0
Memory allocation callback function.
Memory free callback function.
Memory copy callback function.
Memory compare callback function.
Memory set callback function.
Time callback function.
Callback data.
The global context pointer.
All callback functions are mandatory.
The optional cbData argument will be passed to all callback functions.
One or more callback functions is NULL.
The global context pointer is NULL.
Memory allocation failure.
Success.