Functions
MyQttd Module: API used to load modules and invoke handlers provided by them.

Functions

void myqttd_module_cleanup (MyQttdCtx *ctx)
 Cleans the module, releasing all resources and unloading all modules.
 
axl_bool myqttd_module_exists (MyQttdModule *module)
 Allows to check if there is another module already registered with the same name. More...
 
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. More...
 
void myqttd_module_free (MyQttdModule *module)
 Closes and free the module reference. More...
 
ModCloseFunc myqttd_module_get_close (MyQttdModule *module)
 Allows to get the close function for the module reference provided. More...
 
ModInitFunc myqttd_module_get_init (MyQttdModule *module)
 Allows to get the init function for the module reference provided. More...
 
const char * myqttd_module_name (MyQttdModule *module)
 Allows to get the module name. More...
 
axl_bool myqttd_module_notify (MyQttdCtx *ctx, MyQttdModHandler handler, axlPointer data, axlPointer data2, axlPointer data3)
 Allows to do a handler notification on all registered modules. More...
 
void myqttd_module_notify_close (MyQttdCtx *ctx)
 Send a module close notification to all modules registered without unloading module code.
 
void myqttd_module_notify_reload_conf (MyQttdCtx *ctx)
 Allows to notify all modules loaded, that implements the ModReconfFunc, to reload its configuration data.
 
MyQttdModulemyqttd_module_open (MyQttdCtx *ctx, const char *module)
 Loads a myqttd module, from the provided path. More...
 
MyQttdModulemyqttd_module_open_and_register (MyQttdCtx *ctx, const char *location)
 High level function that opens the module located at the provided location, checking if the module was registered, calling to init it, and then registering it if the init did not fail. More...
 
axl_bool myqttd_module_register (MyQttdModule *module)
 Allows to register the module loaded to allow future access to it. More...
 
void myqttd_module_skip_unmap (MyQttdCtx *ctx, const char *mod_name)
 Allows to mark a module to not be unmapped when module is closed. More...
 
void myqttd_module_unload (MyQttdCtx *ctx, const char *module)
 Allows to close the provided module, unloading from memory and removing all registration references. More...
 
void myqttd_module_unregister (MyQttdModule *module)
 Unregister the module provided from the list of modules loaded. More...
 

Detailed Description