diff options
author | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2010-07-01 17:54:25 +0400 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2010-07-01 17:54:25 +0400 |
commit | 9ac84380ce6d4ceb40bc0f4ca10c8c2ce8818790 (patch) | |
tree | cc5ff370a6a37532ddb17e5abef8eda56f4e431c /src/dns.h | |
parent | 83cc70ff18209116bd486b4932f206dd5a3fd83f (diff) | |
download | rspamd-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.h | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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, ...); |