aboutsummaryrefslogtreecommitdiffstats
path: root/src/dns.h
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@rambler-co.ru>2010-07-01 17:54:25 +0400
committerVsevolod Stakhov <vsevolod@rambler-co.ru>2010-07-01 17:54:25 +0400
commit9ac84380ce6d4ceb40bc0f4ca10c8c2ce8818790 (patch)
treecc5ff370a6a37532ddb17e5abef8eda56f4e431c /src/dns.h
parent83cc70ff18209116bd486b4932f206dd5a3fd83f (diff)
downloadrspamd-9ac84380ce6d4ceb40bc0f4ca10c8c2ce8818790.tar.gz
rspamd-9ac84380ce6d4ceb40bc0f4ca10c8c2ce8818790.zip
* Add resolv.conf parsing into dns.c
* Fix microseconds<->milliseconds conversions
Diffstat (limited to 'src/dns.h')
-rw-r--r--src/dns.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/dns.h b/src/dns.h
index 955d01c8c..8f1f2c6cc 100644
--- a/src/dns.h
+++ b/src/dns.h
@@ -12,6 +12,7 @@
#define DNS_D_MAXNAME 255 /* + 1 '\0' */
struct rspamd_dns_reply;
+struct config_file;
typedef void (*dns_callback_type) (struct rspamd_dns_reply *reply, gpointer arg);
/**
@@ -45,6 +46,7 @@ struct rspamd_dns_resolver {
struct dns_k_permutor *permutor; /**< permutor for randomizing request id */
guint request_timeout;
guint max_retransmits;
+ memory_pool_t *static_pool; /**< permament pool (cfg_pool) */
};
struct dns_header;
@@ -198,7 +200,7 @@ struct dns_query {
};
/* Rspamd DNS API */
-struct rspamd_dns_resolver *dns_resolver_init (void);
+struct rspamd_dns_resolver *dns_resolver_init (struct config_file *cfg);
gboolean make_dns_request (struct rspamd_dns_resolver *resolver,
struct rspamd_async_session *session, memory_pool_t *pool, dns_callback_type cb,
gpointer ud, enum rspamd_request_type type, ...);