hu_GlobalCtxGet()

Retrieves the callback functions and callback data from a global context.

Synopsis:

#include "huctx.h"
 
int hu_GlobalCtxGet(sb_GlobalCtx sbCtx, hu_MallocFunc **sbMalloc, hu_FreeFunc **sbFree, hu_MemCpyFunc **sbMemcpy, hu_MemCmpFunc **sbMemcmp, hu_MemSetFunc **sbMemset, hu_TimeFunc **sbTime, void **cbData)

Since:

BlackBerry 10.0.0

Arguments:

sbCtx

A global context.

sbMalloc

Pointer to memory allocation function. (Optional)

sbFree

Pointer to memory free function. (Optional)

sbMemcpy

Pointer to memory copy function. (Optional)

sbMemcmp

Pointer to memory compare function. (Optional)

sbMemset

Pointer to memory set function. (Optional)

sbTime

Pointer to time function. (Optional)

cbData

Callback data. (Optional)

Library:

libhuapi (For the qcc command, use the -l huapi option to link against this library)

Description:

The pointers to callback functions or callback data should be set to NULL if they are not required.

Returns:

SB_ERR_NULL_GLOBAL_CTX

The global context is NULL.

SB_SUCCESS

Success.