diff options
author | Daniel Stenberg <daniel@haxx.se> | 2001-10-04 13:25:12 +0000 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2001-10-04 13:25:12 +0000 |
commit | 5d9ae88f58349022ee437fdf4dfc9e3a7f755beb (patch) | |
tree | eaa66a90d9abeb791b72a83f719636fb85266941 /lib/hostip.h | |
parent | 9d066935e5e4e0d7477520eeb6fd7b82ce6bebc2 (diff) |
getaddrinfo() cleanups
Diffstat (limited to 'lib/hostip.h')
-rw-r--r-- | lib/hostip.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/lib/hostip.h b/lib/hostip.h index 86272b30e..291b9cc71 100644 --- a/lib/hostip.h +++ b/lib/hostip.h @@ -27,9 +27,21 @@ struct addrinfo; struct hostent; struct SessionHandle; +/* Get name info */ Curl_addrinfo *Curl_getaddrinfo(struct SessionHandle *data, char *hostname, int port, char **bufp); +/* free name info */ +void Curl_freeaddrinfo(void *freethis); + +#ifdef MALLOCDEBUG +void curl_freeaddrinfo(struct addrinfo *freethis, + int line, const char *source); +int curl_getaddrinfo(char *hostname, char *service, + struct addrinfo *hints, + struct addrinfo **result, + int line, const char *source); +#endif #endif |