summaryrefslogtreecommitdiff
path: root/src/or/eventdns.h
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2006-08-04 18:26:13 +0000
committerNick Mathewson <nickm@torproject.org>2006-08-04 18:26:13 +0000
commit3fa1cdafce04f523610e7f592b4705089fc4ebed (patch)
treebc1ba73dcb68717f5029fb36a2955226480650b4 /src/or/eventdns.h
parent87939813c30d46bd3027b4ed8c5bb15e74199770 (diff)
downloadtor-3fa1cdafce04f523610e7f592b4705089fc4ebed.tar.gz
tor-3fa1cdafce04f523610e7f592b4705089fc4ebed.zip
r7009@Kushana: nickm | 2006-08-03 10:44:58 -0700
Add functions to eventdns to allow detecting whether we have any nameservers configured, and to change the list of nameservers after initial configuration. svn:r6976
Diffstat (limited to 'src/or/eventdns.h')
-rw-r--r--src/or/eventdns.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/or/eventdns.h b/src/or/eventdns.h
index 0cb39a2156..551659c8b5 100644
--- a/src/or/eventdns.h
+++ b/src/or/eventdns.h
@@ -49,6 +49,9 @@
typedef void (*eventdns_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(const char *name, int flags, eventdns_callback_type callback, void *ptr);
int eventdns_resolv_conf_parse(int flags, const char *);