From bd0653f440adf736427d9cc9e3565489cc9a1cde Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Thu, 27 Nov 2008 19:19:34 +0100 Subject: conf: added config_get_bool() In contrast to, getBoolConfigParam(), config_get_bool() properly returns a "bool" value. In case of "unset", it returns the default value provided by the caller. --- src/conf.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/conf.h') diff --git a/src/conf.h b/src/conf.h index e5875d9b7..14cc883b9 100644 --- a/src/conf.h +++ b/src/conf.h @@ -19,6 +19,8 @@ #ifndef MPD_CONF_H #define MPD_CONF_H +#include + #define CONF_MUSIC_DIR "music_directory" #define CONF_PLAYLIST_DIR "playlist_directory" #define CONF_DB_FILE "db_file" @@ -97,6 +99,8 @@ ConfigParam *parseConfigFilePath(const char *name, int force); int getBoolConfigParam(const char *name, int force); +bool config_get_bool(const char *name, bool default_value); + int getBoolBlockParam(ConfigParam *param, const char *name, int force); #endif -- cgit v1.2.3