diff options
author | Rafael G. Martins <rafael@rafaelmartins.eng.br> | 2016-12-20 18:05:51 +0100 |
---|---|---|
committer | Rafael G. Martins <rafael@rafaelmartins.eng.br> | 2016-12-20 18:05:51 +0100 |
commit | 209ea0657b7970b4b8069ce44b43eecb97681892 (patch) | |
tree | 681a531d2d49fa4f12eecc94649069ef0b4d5e1b /src/common/config-parser.h | |
parent | 08fe4ebf7c6b5430134a22177079eadb08d71cdc (diff) | |
download | blogc-209ea0657b7970b4b8069ce44b43eecb97681892.tar.gz blogc-209ea0657b7970b4b8069ce44b43eecb97681892.tar.bz2 blogc-209ea0657b7970b4b8069ce44b43eecb97681892.zip |
config-parser: improved error reporting, added bc_config_get_with_default
Diffstat (limited to 'src/common/config-parser.h')
-rw-r--r-- | src/common/config-parser.h | 2 |
1 files changed, 2 insertions, 0 deletions
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 */ |