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.

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 requested to be stored. If the function returns axl_false the message is rejected.

Parameters
ctxThe context where the handler will be configured.
on_storeThe handler to be configured.
on_store_dataUser defined pointer to be passed in into the on_msg when called.

References myqtt_mutex_lock(), and myqtt_mutex_unlock().