aboutsummaryrefslogtreecommitdiffstats
path: root/src/libserver/spf.h
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2016-07-21 14:54:10 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2016-07-21 15:09:39 +0100
commit00a656be5aca1da4eaf46760b4ec26fe90a0cd0a (patch)
tree4835343a8c17a0d427166ba8fe2985f411825324 /src/libserver/spf.h
parent00d264e7be01c9a479d2504e61e5628c977a2838 (diff)
downloadrspamd-00a656be5aca1da4eaf46760b4ec26fe90a0cd0a.tar.gz
rspamd-00a656be5aca1da4eaf46760b4ec26fe90a0cd0a.zip
[Fix] Use watchers for spf plugin
Diffstat (limited to 'src/libserver/spf.h')
-rw-r--r--src/libserver/spf.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/libserver/spf.h b/src/libserver/spf.h
index 01850a392..001d3775a 100644
--- a/src/libserver/spf.h
+++ b/src/libserver/spf.h
@@ -8,7 +8,8 @@
struct rspamd_task;
struct spf_resolved;
-typedef void (*spf_cb_t)(struct spf_resolved *record, struct rspamd_task *task);
+typedef void (*spf_cb_t)(struct spf_resolved *record,
+ struct rspamd_task *task, gpointer cbdata);
typedef enum spf_mech_e {
SPF_FAIL,
@@ -66,7 +67,8 @@ struct spf_resolved {
/*
* Resolve spf record for specified task and call a callback after resolution fails/succeed
*/
-gboolean resolve_spf (struct rspamd_task *task, spf_cb_t callback);
+gboolean rspamd_spf_resolve (struct rspamd_task *task, spf_cb_t callback,
+ gpointer cbdata);
/*
* Get a domain for spf for specified task