From ab24bd351b57d9f58d41165ba6ec6fa4110d78a9 Mon Sep 17 00:00:00 2001 From: fpeters <> Date: Thu, 27 Jan 2005 23:05:20 +0000 Subject: [PATCH] documented memory management of get_config_string --- src/config.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/config.c b/src/config.c index db6996c..ba042d6 100644 --- a/src/config.c +++ b/src/config.c @@ -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;