diff options
author | Nick Mathewson <nickm@torproject.org> | 2006-09-25 20:38:58 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2006-09-25 20:38:58 +0000 |
commit | 01f9e97d43014f9d404d9b09031bed814ac507a3 (patch) | |
tree | db85785b5cf8f31f58220907a39edf2a3c949b6c /src/or/eventdns.h | |
parent | 52e179b942f48383a76ae102133a66e939a64862 (diff) | |
download | tor-01f9e97d43014f9d404d9b09031bed814ac507a3.tar.gz tor-01f9e97d43014f9d404d9b09031bed814ac507a3.zip |
Minor fix: add code to eventdns so it can free memory on shutdown. This should help valgrind and dmalloc freak out less.
svn:r8503
Diffstat (limited to 'src/or/eventdns.h')
-rw-r--r-- | src/or/eventdns.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/or/eventdns.h b/src/or/eventdns.h index a475c28624..2aca5ef988 100644 --- a/src/or/eventdns.h +++ b/src/or/eventdns.h @@ -36,6 +36,8 @@ #define DNS_ERR_UNKNOWN 66 /* Communication with the server timed out */ #define DNS_ERR_TIMEOUT 67 +/* The request was canceled because the DNS subsystem was shut down. */ +#define DNS_ERR_SHUTDOWN 68 #define DNS_IPv4_A 1 #define DNS_PTR 2 @@ -50,6 +52,7 @@ typedef void (*evdns_callback_type) (int result, char type, int count, int ttl, void *addresses, void *arg); int evdns_init(void); +void evdns_shutdown(int fail_requests); int evdns_nameserver_add(unsigned long int address); int evdns_count_nameservers(void); int evdns_clear_nameservers_and_suspend(void); |