aboutsummaryrefslogtreecommitdiffstats
path: root/src/conf.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/conf.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/conf.c b/src/conf.c
index 10d0f9d31..885da1f29 100644
--- a/src/conf.c
+++ b/src/conf.c
@@ -418,6 +418,16 @@ int getBoolConfigParam(const char *name, int force)
return ret;
}
+bool config_get_bool(const char *name, bool default_value)
+{
+ int value = getBoolConfigParam(name, true);
+
+ if (value == CONF_BOOL_UNSET)
+ return default_value;
+
+ return value;
+}
+
int getBoolBlockParam(ConfigParam *param, const char *name, int force)
{
int ret;