diff options
author | Steinar H. Gunderson <sesse@google.com> | 2007-09-28 14:46:51 +0000 |
---|---|---|
committer | Steinar H. Gunderson <sesse@google.com> | 2007-09-28 14:46:51 +0000 |
commit | 6ce589c3ee1b905d22d419531e8e2019134e833b (patch) | |
tree | eb557ed81d38a2339ca2cb6069b8973c93f18e17 /ares/ares.h | |
parent | d426c20c0a71df7db7a8bae18c91034df502070a (diff) |
Make the query callbacks return the number of timeouts that happened during the execution of a query, and update documentation accordingly. (Patch from the Google tree.)
Diffstat (limited to 'ares/ares.h')
-rw-r--r-- | ares/ares.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/ares/ares.h b/ares/ares.h index 61d5a5605..50ce7f850 100644 --- a/ares/ares.h +++ b/ares/ares.h @@ -193,11 +193,11 @@ struct timeval; struct sockaddr; struct ares_channeldata; typedef struct ares_channeldata *ares_channel; -typedef void (*ares_callback)(void *arg, int status, unsigned char *abuf, - int alen); -typedef void (*ares_host_callback)(void *arg, int status, +typedef void (*ares_callback)(void *arg, int status, int timeouts, + unsigned char *abuf, int alen); +typedef void (*ares_host_callback)(void *arg, int status, int timeouts, struct hostent *hostent); -typedef void (*ares_nameinfo_callback)(void *arg, int status, +typedef void (*ares_nameinfo_callback)(void *arg, int status, int timeouts, char *node, char *service); int ares_init(ares_channel *channelptr); |