axlPointer myqttd_ctx_get_data ( MyQttdCtx ctx,
const char *  key 
)

Allows to retrieve data stored by myqttd_ctx_set_data and myqttd_ctx_set_data_full.

Parameters
ctxThe MyQttdCtx where the retrieve operation will be performed.
keyThe key that index the data to be returned.
Returns
A reference to the data or NULL if nothing was found. The function also returns NULL if a NULL ctx is received.

References myqtt_mutex_lock(), and myqtt_mutex_unlock().