diff options
author | Maarten de Vries <maarten@de-vri.es> | 2013-08-25 15:51:41 +0200 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2013-09-12 08:55:45 +0200 |
commit | 08e6d222a2dea2509baea0a19b754743374756d3 (patch) | |
tree | 428ca5c503a3bc4088052d3ed2233b4315869081 /src/ConfigGlobal.hxx | |
parent | cf98b0e261ab40e199ff505a27510a56762c8091 (diff) | |
download | mpd-08e6d222a2dea2509baea0a19b754743374756d3.tar.gz mpd-08e6d222a2dea2509baea0a19b754743374756d3.tar.xz mpd-08e6d222a2dea2509baea0a19b754743374756d3.zip |
Listen: Allow tilde paths for socket.
Diffstat (limited to 'src/ConfigGlobal.hxx')
-rw-r--r-- | src/ConfigGlobal.hxx | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/ConfigGlobal.hxx b/src/ConfigGlobal.hxx index c49679942..76b237153 100644 --- a/src/ConfigGlobal.hxx +++ b/src/ConfigGlobal.hxx @@ -72,6 +72,14 @@ config_get_string(enum ConfigOption option, const char *default_value); Path config_get_path(enum ConfigOption option, Error &error); +/** + * Parse a configuration parameter as a path. + * If there is a tilde prefix, it is expanded. If the path could + * not be parsed, returns Path::Null() and sets the error. + */ +Path +config_parse_path(const struct config_param *param, Error & error_r); + gcc_pure unsigned config_get_unsigned(enum ConfigOption option, unsigned default_value); |