aboutsummaryrefslogtreecommitdiff
path: root/src/or/eventdns.h
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2006-09-24 17:52:23 +0000
committerNick Mathewson <nickm@torproject.org>2006-09-24 17:52:23 +0000
commit11b4296b0b326d187ff945e0fc014f32933624b2 (patch)
tree39ee871c274d7700ba35123979ede77f91fed8c0 /src/or/eventdns.h
parent564f2fae8ca1ec6c8bbeae83c01e97d09339a14f (diff)
downloadtor-11b4296b0b326d187ff945e0fc014f32933624b2.tar
tor-11b4296b0b326d187ff945e0fc014f32933624b2.tar.gz
Marge changes from libevent evdns to our eventdns. Most are cosmetic, but one or two are stability-related. This should make it easier to push our changes back towards libevent.
svn:r8482
Diffstat (limited to 'src/or/eventdns.h')
-rw-r--r--src/or/eventdns.h33
1 files changed, 17 insertions, 16 deletions
diff --git a/src/or/eventdns.h b/src/or/eventdns.h
index 0897b50ca..a475c2862 100644
--- a/src/or/eventdns.h
+++ b/src/or/eventdns.h
@@ -38,7 +38,7 @@
#define DNS_ERR_TIMEOUT 67
#define DNS_IPv4_A 1
-#define DNS_PTR 2 /* XXXX ???? */
+#define DNS_PTR 2
#define DNS_QUERY_NO_SEARCH 1
@@ -47,26 +47,27 @@
#define DNS_OPTION_MISC 4
#define DNS_OPTIONS_ALL 7
-typedef void (*eventdns_callback_type) (int result, char type, int count, int ttl, void *addresses, void *arg);
+typedef void (*evdns_callback_type) (int result, char type, int count, int ttl, void *addresses, void *arg);
-int eventdns_nameserver_add(unsigned long int address);
-int eventdns_count_nameservers(void);
-int eventdns_clear_nameservers_and_suspend(void);
-int eventdns_resume(void);
-int eventdns_nameserver_ip_add(const char *ip_as_string);
-int eventdns_resolve_ipv4(const char *name, int flags, eventdns_callback_type callback, void *ptr);
+int evdns_init(void);
+int evdns_nameserver_add(unsigned long int address);
+int evdns_count_nameservers(void);
+int evdns_clear_nameservers_and_suspend(void);
+int evdns_resume(void);
+int evdns_nameserver_ip_add(const char *ip_as_string);
+int evdns_resolve_ipv4(const char *name, int flags, evdns_callback_type callback, void *ptr);
struct in_addr;
-int eventdns_resolve_reverse(struct in_addr *addr, int flags, eventdns_callback_type callback, void *ptr);
-int eventdns_resolv_conf_parse(int flags, const char *);
+int evdns_resolve_reverse(struct in_addr *addr, int flags, evdns_callback_type callback, void *ptr);
+int evdns_resolv_conf_parse(int flags, const char *);
#ifdef MS_WINDOWS
-int eventdns_config_windows_nameservers(void);
+int evdns_config_windows_nameservers(void);
#endif
-void eventdns_search_clear(void);
-void eventdns_search_add(const char *domain);
-void eventdns_search_ndots_set(const int ndots);
+void evdns_search_clear(void);
+void evdns_search_add(const char *domain);
+void evdns_search_ndots_set(const int ndots);
-typedef void (*eventdns_debug_log_fn_type)(int warn, const char *msg);
-void eventdns_set_log_fn(eventdns_debug_log_fn_type fn);
+typedef void (*evdns_debug_log_fn_type)(int warn, const char *msg);
+void evdns_set_log_fn(evdns_debug_log_fn_type fn);
#define DNS_NO_SEARCH 1