diff options
author | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2009-09-07 20:11:48 +0400 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2009-09-07 20:11:48 +0400 |
commit | 9af09b7467a4b9b7b2c9fbf1390b481e71bb07c6 (patch) | |
tree | 79c72ede24341ad6f47b63df0521ba3ff6591d65 /src/settings.h | |
parent | d1b63d4cff12936a5ea4380bccadcc77b7c3ed3f (diff) | |
download | rspamd-9af09b7467a4b9b7b2c9fbf1390b481e71bb07c6.tar.gz rspamd-9af09b7467a4b9b7b2c9fbf1390b481e71bb07c6.zip |
* Add JSON settings parser
Diffstat (limited to 'src/settings.h')
-rw-r--r-- | src/settings.h | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/src/settings.h b/src/settings.h new file mode 100644 index 000000000..8d2214ae1 --- /dev/null +++ b/src/settings.h @@ -0,0 +1,17 @@ +#ifndef RSPAMD_SETTINGS_H +#define RSPAMD_SETTINGS_H + +#include "config.h" +#include "main.h" + +struct rspamd_settings { + GHashTable *metric_scores; /**< hash table of metric scores for this setting */ + GHashTable *factors; /**< hash table of new factors for this setting */ + char *statfile_alias; /**< alias for statfile used */ + gboolean want_spam; /**< if true disable rspamd checks */ +}; + + +int read_settings (const char *path, struct config_file *cfg, GHashTable *table); + +#endif |