Functions
Myqttd Config: files to access to run-time Myqttd Config

Functions

void myqttd_config_ensure_attr (MyQttdCtx *ctx, axlNode *node, const char *attr_name)
 Ensures that the provided attribute is defined on the provided node and to fail if it doesn't. More...
 
axl_bool myqttd_config_exists_attr (MyQttdCtx *ctx, const char *path, const char *attr_name)
 Allows to check if the attribute name under the provided xml path, exists. More...
 
axlDoc * myqttd_config_get (MyQttdCtx *ctx)
 Allows to get the configuration loaded at the startup. More...
 
int myqttd_config_get_number (MyQttdCtx *ctx, const char *path, const char *attr_name)
 Allows to get the value found on provided config path at the selected attribute. More...
 
axl_bool myqttd_config_is_attr_negative (MyQttdCtx *ctx, axlNode *node, const char *attr_name)
 Allows to check if an xml attribute is positive, that is, have 1, true or yes as value. More...
 
axl_bool myqttd_config_is_attr_positive (MyQttdCtx *ctx, axlNode *node, const char *attr_name)
 Allows to check if an xml attribute is positive, that is, have 1, true or yes as value. More...
 
axl_bool myqttd_config_set (MyQttdCtx *ctx, const char *path, const char *attr_name, const char *attr_value)
 Allows to configure the provided name and value on the provided path inside the myqttd config. More...
 

Detailed Description