diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2015-06-24 17:21:18 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2015-06-24 17:21:18 +0100 |
commit | e3a61120f831ca275f95b0edf9e3fc94a384955f (patch) | |
tree | 99bbd5295eb1209e7cb9d1c0e5645862412bb1f6 /src/libstat/backends/sqlite3_backend.c | |
parent | 090643295a7e48d969adad833276e7a283d7f503 (diff) | |
download | rspamd-e3a61120f831ca275f95b0edf9e3fc94a384955f.tar.gz rspamd-e3a61120f831ca275f95b0edf9e3fc94a384955f.zip |
Pass task structure to classifier functions.
Diffstat (limited to 'src/libstat/backends/sqlite3_backend.c')
-rw-r--r-- | src/libstat/backends/sqlite3_backend.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/libstat/backends/sqlite3_backend.c b/src/libstat/backends/sqlite3_backend.c index ea52314fc..9eee2c614 100644 --- a/src/libstat/backends/sqlite3_backend.c +++ b/src/libstat/backends/sqlite3_backend.c @@ -476,7 +476,7 @@ rspamd_sqlite3_runtime (struct rspamd_task *task, } gboolean -rspamd_sqlite3_process_token (struct token_node_s *tok, +rspamd_sqlite3_process_token (struct rspamd_task *task, struct token_node_s *tok, struct rspamd_token_result *res, gpointer p) { struct rspamd_stat_sqlite3_db *bk; @@ -513,7 +513,7 @@ rspamd_sqlite3_process_token (struct token_node_s *tok, } gboolean -rspamd_sqlite3_learn_token (struct token_node_s *tok, +rspamd_sqlite3_learn_token (struct rspamd_task *task, struct token_node_s *tok, struct rspamd_token_result *res, gpointer p) { struct rspamd_stat_sqlite3_db *bk; @@ -549,7 +549,7 @@ rspamd_sqlite3_learn_token (struct token_node_s *tok, } void -rspamd_sqlite3_finalize_learn (gpointer runtime, +rspamd_sqlite3_finalize_learn (struct rspamd_task *task, gpointer runtime, gpointer ctx) { struct rspamd_stat_sqlite3_db *bk = runtime; @@ -565,7 +565,7 @@ rspamd_sqlite3_finalize_learn (gpointer runtime, } gulong -rspamd_sqlite3_total_learns (gpointer runtime, +rspamd_sqlite3_total_learns (struct rspamd_task *task, gpointer runtime, gpointer ctx) { struct rspamd_stat_sqlite3_db *bk = runtime; @@ -579,7 +579,7 @@ rspamd_sqlite3_total_learns (gpointer runtime, } gulong -rspamd_sqlite3_inc_learns (gpointer runtime, +rspamd_sqlite3_inc_learns (struct rspamd_task *task, gpointer runtime, gpointer ctx) { struct rspamd_stat_sqlite3_db *bk = runtime; @@ -594,7 +594,7 @@ rspamd_sqlite3_inc_learns (gpointer runtime, } gulong -rspamd_sqlite3_dec_learns (gpointer runtime, +rspamd_sqlite3_dec_learns (struct rspamd_task *task, gpointer runtime, gpointer ctx) { struct rspamd_stat_sqlite3_db *bk = runtime; @@ -609,7 +609,7 @@ rspamd_sqlite3_dec_learns (gpointer runtime, } gulong -rspamd_sqlite3_learns (gpointer runtime, +rspamd_sqlite3_learns (struct rspamd_task *task, gpointer runtime, gpointer ctx) { struct rspamd_stat_sqlite3_db *bk = runtime; |