From 9f5c938ff3cfe6f264340461c88defa2bb614cb0 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Fri, 9 Sep 2011 22:15:28 +0200 Subject: conf: add config_dup_block_path() --- src/conf.h | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src/conf.h') 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, -- cgit v1.2.3