void myqttd_ctx_set_data ( MyQttdCtx ctx,
const char *  key,
axlPointer  data 

Allows to configure user defined data indexed by the provided key, associated to the MyQttdCtx.

ctxThe MyQttdCtx to configure with the provided data.
keyThe index string key under which the data will be retreived later using myqttd_ctx_get_data. The function do not support storing NULL keys.
dataThe user defined pointer to data to be stored. If NULL is provided the function will understand it as a removal request, calling to delete previously stored data indexed by the same key.

References myqtt_mutex_lock(), and myqtt_mutex_unlock().