X-Git-Url: http://git.code-monkey.de/?a=blobdiff_plain;f=src%2Fconf.c;h=cf1677bffdd852bf3f16e6309a9e9bebb691fe1c;hb=25b7d7ee7e1979bf244fa663b56f68c8b00f51b1;hp=adc0e1ba335d3859ef18b6cad8dc576a66218775;hpb=5b8dc3fd052b892f75f167af91193e88e321f42c;p=umurmur.git diff --git a/src/conf.c b/src/conf.c index adc0e1b..cf1677b 100644 --- a/src/conf.c +++ b/src/conf.c @@ -244,6 +244,23 @@ int getIntConf(param_t param) } } +bool_t getBoolConf(param_t param) +{ + config_setting_t *setting = NULL; + + switch (param) { + case ALLOW_TEXTMESSAGE: + setting = config_lookup(&configuration, "allow_textmessage"); + if (!setting) + return true; + else + return config_setting_get_bool(setting); + break; + default: + doAssert(false); + } +} + int Conf_getNextChannel(conf_channel_t *chdesc, int index) { config_setting_t *setting = NULL;