diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2014-04-21 13:39:39 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2014-04-21 13:39:39 +0100 |
commit | 5f25b69c03972b0adff6bc649e1922111d0ebb2b (patch) | |
tree | 62fb361ba8eab64f59a1874e5d045d404727ae4e /src/plugins/dkim_check.c | |
parent | bc997b7b94a36103a3d409d0de422a71df0a19d6 (diff) | |
download | rspamd-5f25b69c03972b0adff6bc649e1922111d0ebb2b.tar.gz rspamd-5f25b69c03972b0adff6bc649e1922111d0ebb2b.zip |
Refactor worker task structure and API.
Diffstat (limited to 'src/plugins/dkim_check.c')
-rw-r--r-- | src/plugins/dkim_check.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/plugins/dkim_check.c b/src/plugins/dkim_check.c index eb6cefb7d..9610db6a8 100644 --- a/src/plugins/dkim_check.c +++ b/src/plugins/dkim_check.c @@ -56,7 +56,7 @@ #define DEFAULT_TIME_JITTER 60 struct dkim_ctx { - gint (*filter) (struct worker_task * task); + gint (*filter) (struct rspamd_task * task); const gchar *symbol_reject; const gchar *symbol_tempfail; const gchar *symbol_allow; @@ -73,7 +73,7 @@ struct dkim_ctx { static struct dkim_ctx *dkim_module_ctx = NULL; -static void dkim_symbol_callback (struct worker_task *task, void *unused); +static void dkim_symbol_callback (struct rspamd_task *task, void *unused); /* Initialization */ gint dkim_module_init (struct config_file *cfg, struct module_ctx **ctx); @@ -238,7 +238,7 @@ dkim_module_parse_strict (const gchar *value, gint *allow, gint *deny) } static void -dkim_module_check (struct worker_task *task, rspamd_dkim_context_t *ctx, rspamd_dkim_key_t *key) +dkim_module_check (struct rspamd_task *task, rspamd_dkim_context_t *ctx, rspamd_dkim_key_t *key) { gint res, score_allow = 1, score_deny = 1; const gchar *strict_value; @@ -275,7 +275,7 @@ dkim_module_check (struct worker_task *task, rspamd_dkim_context_t *ctx, rspamd_ static void dkim_module_key_handler (rspamd_dkim_key_t *key, gsize keylen, rspamd_dkim_context_t *ctx, gpointer ud, GError *err) { - struct worker_task *task = ud; + struct rspamd_task *task = ud; if (key != NULL) { @@ -303,7 +303,7 @@ dkim_module_key_handler (rspamd_dkim_key_t *key, gsize keylen, rspamd_dkim_conte } static void -dkim_symbol_callback (struct worker_task *task, void *unused) +dkim_symbol_callback (struct rspamd_task *task, void *unused) { GList *hlist; rspamd_dkim_context_t *ctx; |