diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2020-04-14 11:35:52 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2020-04-14 11:35:52 +0100 |
commit | b80e8b8477dd019ad9384541d499b57f5432393a (patch) | |
tree | 6d7e2da28b6a87b6e25acb0693659b9ace19aff7 /src/libmime/scan_result.h | |
parent | 13724fefdc9dbc31609938c06d6c99ba47d1729d (diff) | |
download | rspamd-b80e8b8477dd019ad9384541d499b57f5432393a.tar.gz rspamd-b80e8b8477dd019ad9384541d499b57f5432393a.zip |
[Project] Rework some more functions to work with shadow results
Diffstat (limited to 'src/libmime/scan_result.h')
-rw-r--r-- | src/libmime/scan_result.h | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/src/libmime/scan_result.h b/src/libmime/scan_result.h index dcae2609c..3dee11ddd 100644 --- a/src/libmime/scan_result.h +++ b/src/libmime/scan_result.h @@ -118,12 +118,10 @@ struct rspamd_scan_result *rspamd_find_metric_result (struct rspamd_task *task, * @param module */ void rspamd_add_passthrough_result (struct rspamd_task *task, - struct rspamd_action *action, - guint priority, - double target_score, - const gchar *message, - const gchar *module, - guint flags); + struct rspamd_action *action, guint priority, + double target_score, const gchar *message, + const gchar *module, guint flags, + struct rspamd_scan_result *scan_result); enum rspamd_symbol_insert_flags { RSPAMD_SYMBOL_INSERT_DEFAULT = 0, @@ -178,7 +176,9 @@ rspamd_task_find_symbol_result (struct rspamd_task *task, const char *sym, * @param func * @param ud */ -void rspamd_task_symbol_result_foreach (struct rspamd_task *task, struct rspamd_scan_result *result, GHFunc func, +void rspamd_task_symbol_result_foreach (struct rspamd_task *task, + struct rspamd_scan_result *result, + GHFunc func, gpointer ud); /** @@ -199,7 +199,8 @@ double rspamd_factor_consolidation_func (struct rspamd_task *task, * @return */ struct rspamd_action *rspamd_check_action_metric (struct rspamd_task *task, - struct rspamd_passthrough_result **ppr); + struct rspamd_passthrough_result **ppr, + struct rspamd_scan_result *scan_result); #ifdef __cplusplus } |