RSP_getConfig

Name

RSP_getConfig -- Gets the config element associated with the given name.

Synopsis

RSP_configElement* RSP_getConfig(RSP_moduleBackend *mod, char *name);

Description

Values are associated with variable names in the config block of the RSPD configuration file. Multiple values may be associated with a name (generally signifying an array), or just one. This function returns a data structure representing one config name and its values. If no element exists with the given name, NULL is returned. The list of values can be retrieved with RSP_nextConfigData by passing the structure returned by this function.

Returns

A null-terminated string containing the value, or NULL if no such name exists.

Error Conditions

If an error occurred, this function will return NULL and set rsp_error to the following error code: