aboutsummaryrefslogtreecommitdiffstats
path: root/src/settings.h
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@rambler-co.ru>2011-07-20 19:35:07 +0400
committerVsevolod Stakhov <vsevolod@rambler-co.ru>2011-07-20 19:35:07 +0400
commit5c9372c4a8678c6856360891180b02c2fdf688ee (patch)
treebc67f5cb057c4784c67e691f76aa8a8f80a40e51 /src/settings.h
parent9bc06fea2eac12cc46028fcdd630d291a76b68ae (diff)
downloadrspamd-5c9372c4a8678c6856360891180b02c2fdf688ee.tar.gz
rspamd-5c9372c4a8678c6856360891180b02c2fdf688ee.zip
* Add start script for red hat compatible systems
Add descriptions for some rspamd API functions (no functional changes). --HG-- rename : linux/rspamd => linux/rspamd_debian.in
Diffstat (limited to 'src/settings.h')
-rw-r--r--src/settings.h26
1 files changed, 26 insertions, 0 deletions
diff --git a/src/settings.h b/src/settings.h
index c0fccbf16..5d77d429b 100644
--- a/src/settings.h
+++ b/src/settings.h
@@ -16,13 +16,39 @@ struct rspamd_settings {
};
+/*
+ * Read settings from specified path
+ */
gboolean read_settings (const gchar *path, struct config_file *cfg, GHashTable *table);
+
+/*
+ * Init configuration structures for settings
+ */
void init_settings (struct config_file *cfg);
+
+/*
+ * Check scores settings
+ */
gboolean check_metric_settings (struct metric_result *res, double *score, double *rscore);
+
+/*
+ * Check actions settings
+ */
gboolean check_metric_action_settings (struct worker_task *task, struct metric_result *res, double score, enum rspamd_metric_action *result);
+
+/*
+ * Check individual weights for settings
+ */
gboolean check_factor_settings (struct metric_result *res, const gchar *symbol, double *factor);
+
+/*
+ * Check want_spam flag
+ */
gboolean check_want_spam (struct worker_task *task);
+/*
+ * Search settings for metric and store pointers to settings into metric_result structure
+ */
gboolean apply_metric_settings (struct worker_task *task, struct metric *metric, struct metric_result *res);
#endif