diff options
author | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2009-03-30 17:57:59 +0400 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2009-03-30 17:57:59 +0400 |
commit | dd2fbb7a5b7e1c0d844900147486ad7ffd98c1e4 (patch) | |
tree | ab8bfcf6c21bd8a47f49b9f9331378e6454e90cf /src/filter.h | |
parent | c72912310c575a5ba7e7e50a5fdd425f3a4e4dbc (diff) | |
download | rspamd-dd2fbb7a5b7e1c0d844900147486ad7ffd98c1e4.tar.gz rspamd-dd2fbb7a5b7e1c0d844900147486ad7ffd98c1e4.zip |
* Add message handling functions to lua API
* Add ability to add lua code in config with .lua and .endlua
* Add consolidation functions support that are written in perl or lua
Diffstat (limited to 'src/filter.h')
-rw-r--r-- | src/filter.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/filter.h b/src/filter.h index 02fc60c63..4e51bf2a7 100644 --- a/src/filter.h +++ b/src/filter.h @@ -10,7 +10,7 @@ struct worker_task; -typedef double (*metric_cons_func)(struct worker_task *task, const char *metric_name); +typedef double (*metric_cons_func)(struct worker_task *task, const char *metric_name, const char *func_name); typedef void (*filter_func)(struct worker_task *task); enum filter_type { C_FILTER, PERL_FILTER }; @@ -88,6 +88,6 @@ void make_composites (struct worker_task *task); * @param metric_name name of metric * @return result metric weight */ -double factor_consolidation_func (struct worker_task *task, const char *metric_name); +double factor_consolidation_func (struct worker_task *task, const char *metric_name, const char *unused); #endif |