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).

This function is provided to allow MyQtt Library extensions to install its module deallocation or termination functions.

ctxThe context to configure with the provided cleanup function.
cleanupThe cleanup function to configure. This function will receive a reference to the MyQttCtx.

References myqtt_mutex_lock(), and myqtt_mutex_unlock().