aboutsummaryrefslogtreecommitdiffstats
path: root/src/settings.h
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@rambler-co.ru>2009-09-07 20:11:48 +0400
committerVsevolod Stakhov <vsevolod@rambler-co.ru>2009-09-07 20:11:48 +0400
commit9af09b7467a4b9b7b2c9fbf1390b481e71bb07c6 (patch)
tree79c72ede24341ad6f47b63df0521ba3ff6591d65 /src/settings.h
parentd1b63d4cff12936a5ea4380bccadcc77b7c3ed3f (diff)
downloadrspamd-9af09b7467a4b9b7b2c9fbf1390b481e71bb07c6.tar.gz
rspamd-9af09b7467a4b9b7b2c9fbf1390b481e71bb07c6.zip
* Add JSON settings parser
Diffstat (limited to 'src/settings.h')
-rw-r--r--src/settings.h17
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