From b76a29a69ae5412c3c1d101eefa9562990e74407 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Wed, 7 Aug 2013 19:54:38 +0200 Subject: ConfigPath: return a Path object Migrate all callers to use Path directly, instead of doing the conversion in each caller. --- src/ConfigGlobal.hxx | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) (limited to 'src/ConfigGlobal.hxx') diff --git a/src/ConfigGlobal.hxx b/src/ConfigGlobal.hxx index fff813f3e..aaae82bd1 100644 --- a/src/ConfigGlobal.hxx +++ b/src/ConfigGlobal.hxx @@ -72,14 +72,11 @@ config_get_string(enum ConfigOption option, const char *default_value); /** * Returns an optional configuration variable which contains an * absolute path. If there is a tilde prefix, it is expanded. - * Returns NULL if the value is not present. If the path could not be - * parsed, returns NULL and sets the error. - * - * The return value must be freed with g_free(). + * Returns Path::Null() if the value is not present. If the path + * could not be parsed, returns Path::Null() and sets the error. */ -gcc_malloc -char * -config_dup_path(enum ConfigOption option, GError **error_r); +Path +config_get_path(enum ConfigOption option, GError **error_r); gcc_pure unsigned -- cgit v1.2.3