axl_bool myqttd_module_exists_by_name ( MyQttdCtx ctx,
const char *  mod_name 

Allows to check if there is another module already registered with the same name.

ctxThe context where the operation will take place.
mod_nameThe module name to check check.
Returns if the module exists (axl_true), otherwise axl_false is returned. Keep in mind that the function returns axl_false in the case references received are NULL.

References myqtt_mutex_lock(), and myqtt_mutex_unlock().

Referenced by myqttd_module_exists().