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.

The handler configured here affects to all client connections storing messages on this context.

You can only configure one handler at time. Calling to configure a handler twice will replace previous one.

This handler is called when a message is released and removed from the storage associated . This is a notification.

ctxThe context where the handler will be configured.
on_releaseThe handler to be configured.
on_release_dataUser defined pointer to be passed in into the on_msg when called.

References myqtt_mutex_lock(), and myqtt_mutex_unlock().