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.

DO NOT USE this function after having the server started. This function is meant to be used during initialization to ensure everything is ok and in place.

ctxThe context where the operation will take place.
nodeThe node to be checked.
attr_nameThe xml node attr name to check.

The function does not return anything because it takes full control of the caller in the case that if a failure is found, the function will abort. Otherwise, the caller will recover control after the function finishes.

References abort_error.