summaryrefslogtreecommitdiffstats
path: root/src/settings.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/settings.h')
-rw-r--r--src/settings.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/settings.h b/src/settings.h
index 6ac96cf7a..c0fccbf16 100644
--- a/src/settings.h
+++ b/src/settings.h
@@ -18,9 +18,11 @@ struct rspamd_settings {
gboolean read_settings (const gchar *path, struct config_file *cfg, GHashTable *table);
void init_settings (struct config_file *cfg);
-gboolean check_metric_settings (struct worker_task *task, struct metric *metric, double *score, double *rscore);
-gboolean check_metric_action_settings (struct worker_task *task, struct metric *metric, double score, enum rspamd_metric_action *result);
-gboolean check_factor_settings (struct worker_task *task, const gchar *symbol, double *factor);
+gboolean check_metric_settings (struct metric_result *res, double *score, double *rscore);
+gboolean check_metric_action_settings (struct worker_task *task, struct metric_result *res, double score, enum rspamd_metric_action *result);
+gboolean check_factor_settings (struct metric_result *res, const gchar *symbol, double *factor);
gboolean check_want_spam (struct worker_task *task);
+gboolean apply_metric_settings (struct worker_task *task, struct metric *metric, struct metric_result *res);
+
#endif