Functions
MyQtt context: functions to manage myqtt context, an object that represent a myqtt library state.

Functions

void myqtt_ctx_free (MyQttCtx *ctx)
 Releases the memory allocated by the provided MyQttCtx. More...
 
void myqtt_ctx_free2 (MyQttCtx *ctx, const char *who)
 Releases the memory allocated by the provided MyQttCtx. More...
 
axlPointer myqtt_ctx_get_data (MyQttCtx *ctx, const char *key)
 Allows to retreive data stored on the given context (myqtt_ctx_set_data) using the provided index key. More...
 
void myqtt_ctx_install_cleanup (MyQttCtx *ctx, axlDestroyFunc cleanup)
 Allows to install a cleanup function which will be called just before the MyQttCtx is finished (by a call to myqtt_exit_ctx or a manual call to myqtt_ctx_free). More...
 
MyQttCtxmyqtt_ctx_new (void)
 Creates a new myqtt execution context. More...
 
axl_bool myqtt_ctx_ref (MyQttCtx *ctx)
 Allows to increase reference count to the MyQttCtx instance. More...
 
axl_bool myqtt_ctx_ref2 (MyQttCtx *ctx, const char *who)
 Allows to increase reference count to the MyQttCtx instance. More...
 
int myqtt_ctx_ref_count (MyQttCtx *ctx)
 Allows to get current reference counting state from provided myqtt context. More...
 
void myqtt_ctx_remove_cleanup (MyQttCtx *ctx, axlDestroyFunc cleanup)
 Allows to remove a cleanup function installed previously with myqtt_ctx_install_cleanup. More...
 
void myqtt_ctx_set_data (MyQttCtx *ctx, const char *key, axlPointer value)
 Allows to store arbitrary data associated to the provided context, which can later retrieved using a particular key. More...
 
void myqtt_ctx_set_data_full (MyQttCtx *ctx, const char *key, axlPointer value, axlDestroyFunc key_destroy, axlDestroyFunc value_destroy)
 Allows to store arbitrary data associated to the provided context, which can later retrieved using a particular key. More...
 
void myqtt_ctx_set_idle_handler (MyQttCtx *ctx, MyQttIdleHandler idle_handler, long max_idle_period, axlPointer user_data, axlPointer user_data2)
 Allows to configure idle handler at context level. More...
 
void myqtt_ctx_set_on_connect (MyQttCtx *ctx, MyQttOnConnectHandler on_connect, axlPointer user_data)
 Allows to configure the handler that will be called to delegate decision about CONNECT requests received. More...
 
void myqtt_ctx_set_on_finish (MyQttCtx *ctx, MyQttOnFinishHandler finish_handler, axlPointer user_data)
 Allows to configure a finish handler which is called once the process (myqtt reader) detects no more pending connections are available. More...
 
void myqtt_ctx_set_on_header (MyQttCtx *ctx, MyQttOnHeaderReceived on_header, axlPointer on_header_data)
 Allows to configure the on header handler at context level. More...
 
void myqtt_ctx_set_on_msg (MyQttCtx *ctx, MyQttOnMsgReceived on_msg, axlPointer on_msg_data)
 Allows to configure the on message handler at context level. More...
 
void myqtt_ctx_set_on_publish (MyQttCtx *ctx, MyQttOnPublish on_publish, axlPointer user_data)
 Allows to install a MyQttOnPublish handler on the provided context. More...
 
void myqtt_ctx_set_on_release (MyQttCtx *ctx, MyQttOnReleaseMsg on_release, axlPointer on_release_data)
 Allows to configure the on release handler at context level. More...
 
void myqtt_ctx_set_on_store (MyQttCtx *ctx, MyQttOnStoreMsg on_store, axlPointer on_store_data)
 Allows to configure the on store handler at context level. More...
 
void myqtt_ctx_set_on_subscribe (MyQttCtx *ctx, MyQttOnSubscribeHandler on_subscribe, axlPointer on_subscribe_data)
 Allows to configure a handler that will be called every time a subscription request is received. More...
 
void myqtt_ctx_set_on_unsubscribe (MyQttCtx *ctx, MyQttOnUnSubscribeHandler on_unsubscribe, axlPointer on_unsubscribe_data)
 Allows to configure a handler that will be called every time an unsubscription indication is received. More...
 
void myqtt_ctx_unref (MyQttCtx **ctx)
 Decrease reference count and nullify caller's pointer in the case the count reaches 0. More...
 
void myqtt_ctx_unref2 (MyQttCtx **ctx, const char *who)
 Decrease reference count and nullify caller's pointer in the case the count reaches 0. More...
 

Detailed Description