From 209ea0657b7970b4b8069ce44b43eecb97681892 Mon Sep 17 00:00:00 2001 From: "Rafael G. Martins" Date: Tue, 20 Dec 2016 18:05:51 +0100 Subject: config-parser: improved error reporting, added bc_config_get_with_default --- src/common/config-parser.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/common/config-parser.h') diff --git a/src/common/config-parser.h b/src/common/config-parser.h index f9f287c..e249c37 100644 --- a/src/common/config-parser.h +++ b/src/common/config-parser.h @@ -22,6 +22,8 @@ char** bc_config_list_sections(bc_config_t *config); char** bc_config_list_keys(bc_config_t *config, const char *section); const char* bc_config_get(bc_config_t *config, const char *section, const char *key); +const char* bc_config_get_with_default(bc_config_t *config, const char *section, + const char *key, const char *default_); void bc_config_free(bc_config_t *config); #endif /* _CONFIG_PARSER_H */ -- cgit v1.2.3-18-g5258