aboutsummaryrefslogtreecommitdiffstats
path: root/src/conf.h
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2011-09-09 22:15:28 +0200
committerMax Kellermann <max@duempel.org>2011-09-09 23:01:22 +0200
commit9f5c938ff3cfe6f264340461c88defa2bb614cb0 (patch)
treeb26252f3da5bd374c15cc9b6b03a8849b398a4e3 /src/conf.h
parentb42a8d236434d7ec63c742d275cd7b75adbe760b (diff)
downloadmpd-9f5c938ff3cfe6f264340461c88defa2bb614cb0.tar.gz
mpd-9f5c938ff3cfe6f264340461c88defa2bb614cb0.tar.xz
mpd-9f5c938ff3cfe6f264340461c88defa2bb614cb0.zip
conf: add config_dup_block_path()
Diffstat (limited to '')
-rw-r--r--src/conf.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/conf.h b/src/conf.h
index 9593501b0..1c6e464c4 100644
--- a/src/conf.h
+++ b/src/conf.h
@@ -194,6 +194,15 @@ config_dup_block_string(const struct config_param *param, const char *name,
return g_strdup(config_get_block_string(param, name, default_value));
}
+/**
+ * Same as config_dup_path(), but looks up the setting in the
+ * specified block.
+ */
+G_GNUC_MALLOC
+char *
+config_dup_block_path(const struct config_param *param, const char *name,
+ GError **error_r);
+
G_GNUC_PURE
unsigned
config_get_block_unsigned(const struct config_param *param, const char *name,