diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2019-04-11 15:00:01 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2019-04-11 15:00:01 +0100 |
commit | 6943c3c3a4dd1334aa041fcd7df9598ecec3f152 (patch) | |
tree | fa00017db0e4bf42d211c92088b72912c423fe7d /src/libserver/dns.h | |
parent | 641353ecb1c68ef7642a15d861ff59aba672ac54 (diff) | |
download | rspamd-6943c3c3a4dd1334aa041fcd7df9598ecec3f152.tar.gz rspamd-6943c3c3a4dd1334aa041fcd7df9598ecec3f152.zip |
[Minor] Refactor DNS resolver invocations
Diffstat (limited to 'src/libserver/dns.h')
-rw-r--r-- | src/libserver/dns.h | 38 |
1 files changed, 19 insertions, 19 deletions
diff --git a/src/libserver/dns.h b/src/libserver/dns.h index c48e4b09c..e1def703d 100644 --- a/src/libserver/dns.h +++ b/src/libserver/dns.h @@ -40,8 +40,8 @@ struct rspamd_dns_resolver { /** * Init DNS resolver, params are obtained from a config file or system file /etc/resolv.conf */ -struct rspamd_dns_resolver * dns_resolver_init (rspamd_logger_t *logger, - struct event_base *ev_base, struct rspamd_config *cfg); +struct rspamd_dns_resolver * rspamd_dns_resolver_init (rspamd_logger_t *logger, + struct event_base *ev_base, struct rspamd_config *cfg); struct rspamd_dns_request_ud; /** @@ -55,24 +55,24 @@ struct rspamd_dns_request_ud; * @param ... string or ip address based on a request type * @return TRUE if request was sent. */ -struct rspamd_dns_request_ud * make_dns_request (struct rspamd_dns_resolver *resolver, - struct rspamd_async_session *session, - rspamd_mempool_t *pool, - dns_callback_type cb, - gpointer ud, - enum rdns_request_type type, - const char *name); +struct rspamd_dns_request_ud * rspamd_dns_resolver_request (struct rspamd_dns_resolver *resolver, + struct rspamd_async_session *session, + rspamd_mempool_t *pool, + dns_callback_type cb, + gpointer ud, + enum rdns_request_type type, + const char *name); -gboolean make_dns_request_task (struct rspamd_task *task, - dns_callback_type cb, - gpointer ud, - enum rdns_request_type type, - const char *name); +gboolean rspamd_dns_resolver_request_task (struct rspamd_task *task, + dns_callback_type cb, + gpointer ud, + enum rdns_request_type type, + const char *name); -gboolean make_dns_request_task_forced (struct rspamd_task *task, - dns_callback_type cb, - gpointer ud, - enum rdns_request_type type, - const char *name); +gboolean rspamd_dns_resolver_request_task_forced (struct rspamd_task *task, + dns_callback_type cb, + gpointer ud, + enum rdns_request_type type, + const char *name); #endif |