diff options
author | Max Kellermann <max@duempel.org> | 2013-08-07 19:54:38 +0200 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2013-08-07 19:59:09 +0200 |
commit | b76a29a69ae5412c3c1d101eefa9562990e74407 (patch) | |
tree | 5c60aa1bb5e6a8d134707291d12fb4ebb77c06c8 /src/ConfigGlobal.hxx | |
parent | abe090ec1f2255ce422f74e5b59bffc83aaff875 (diff) | |
download | mpd-b76a29a69ae5412c3c1d101eefa9562990e74407.tar.gz mpd-b76a29a69ae5412c3c1d101eefa9562990e74407.tar.xz mpd-b76a29a69ae5412c3c1d101eefa9562990e74407.zip |
ConfigPath: return a Path object
Migrate all callers to use Path directly, instead of doing the
conversion in each caller.
Diffstat (limited to 'src/ConfigGlobal.hxx')
-rw-r--r-- | src/ConfigGlobal.hxx | 11 |
1 files changed, 4 insertions, 7 deletions
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 |