projects
/
umurmur.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add banlist to file functions and configuration params.
[umurmur.git]
/
src
/
conf.c
diff --git
a/src/conf.c
b/src/conf.c
index f2baa3106de0d943126bb20fdf5fa1fa8c32b7e3..ccd8e05cde4dfefe3f8d7bd468569de9ddca24ad 100644
(file)
--- a/
src/conf.c
+++ b/
src/conf.c
@@
-195,6
+195,17
@@
const char *getStrConf(param_t param)
return NULL;
}
break;
return NULL;
}
break;
+ case BANFILE:
+ setting = config_lookup(&configuration, "banfile");
+ if (!setting)
+ return NULL;
+ else {
+ if ((strsetting = config_setting_get_string(setting)) != NULL)
+ return strsetting;
+ else
+ return NULL;
+ }
+ break;
default:
doAssert(false);
break;
default:
doAssert(false);
break;
@@
-263,6
+274,13
@@
bool_t getBoolConf(param_t param)
else
return config_setting_get_bool(setting);
break;
else
return config_setting_get_bool(setting);
break;
+ case SYNC_BANFILE:
+ setting = config_lookup(&configuration, "sync_banfile");
+ if (!setting)
+ return false;
+ else
+ return config_setting_get_bool(setting);
+ break;
default:
doAssert(false);
}
default:
doAssert(false);
}