aboutsummaryrefslogtreecommitdiff
path: root/src/conf.h
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2009-01-18 17:54:46 +0100
committerMax Kellermann <max@duempel.org>2009-01-18 17:54:46 +0100
commit9c6b2a32f510778252f3a9c79725334aaec4d80b (patch)
tree84be4ae5ca15520ef686bbfbaa0bb9787c640247 /src/conf.h
parenta3f03f3ccdefc8704d112405dca5db10a2f6cf94 (diff)
conf: added config_get_path()
config_get_path() is an simpler interface than parseConfigFilePath().
Diffstat (limited to 'src/conf.h')
-rw-r--r--src/conf.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/conf.h b/src/conf.h
index 01a2e5e1..283f763a 100644
--- a/src/conf.h
+++ b/src/conf.h
@@ -101,6 +101,14 @@ config_get_param(const char *name)
const char *
config_get_string(const char *name, const char *default_value);
+/**
+ * Returns an optional configuration variable which contains an
+ * absolute path. If there is a tilde prefix, it is expanded. Aborts
+ * MPD if the path is not a valid absolute path.
+ */
+const char *
+config_get_path(const char *name);
+
struct block_param *
getBlockParam(struct config_param *param, const char *name);