documented memory management of get_config_string
This commit is contained in:
parent
444e33493f
commit
ab24bd351b
|
@ -49,6 +49,15 @@ int init_config()
|
|||
return 0;
|
||||
}
|
||||
|
||||
/**
|
||||
* get_config_string:
|
||||
* @xpath: xpath expression to configuration node
|
||||
*
|
||||
* Gets a value defined in the configuration file.
|
||||
*
|
||||
* Return value: the value; or NULL if not found. The string is internally
|
||||
* allocated. It must not be freed or modified.
|
||||
**/
|
||||
char* get_config_string(char *xpath)
|
||||
{
|
||||
xmlXPathObjectPtr xpathObj;
|
||||
|
|
Reference in New Issue