diff options
author | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2011-06-30 18:32:11 +0400 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2011-06-30 18:32:11 +0400 |
commit | 9e6acadd7ce323f42ebed02237d064305df32249 (patch) | |
tree | 11ecda90995e02204d5f14c1fcabee893bdceab3 /src/settings.h | |
parent | b3c36d4946f675619b81c9223f5ac1a86c55c55c (diff) | |
download | rspamd-9e6acadd7ce323f42ebed02237d064305df32249.tar.gz rspamd-9e6acadd7ce323f42ebed02237d064305df32249.zip |
* Improve performance of settings lookup
Diffstat (limited to 'src/settings.h')
-rw-r--r-- | src/settings.h | 8 |
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 |