diff options
author | Yang Tse <yangsita@gmail.com> | 2008-10-30 19:02:23 +0000 |
---|---|---|
committer | Yang Tse <yangsita@gmail.com> | 2008-10-30 19:02:23 +0000 |
commit | c2c800d8639b1f34a89548e6c26e6d805036dfdc (patch) | |
tree | 452693a63001821bc9e69aef8c835805ed53a939 /lib/curl_addrinfo.h | |
parent | 625c107c25815776bb2ee8df923638dd36f4ddd7 (diff) | |
download | curl-c2c800d8639b1f34a89548e6c26e6d805036dfdc.tar.gz |
Move curl_dofreeaddrinfo() and curl_dofreeaddrinfo()
implementation from lib/hostip6.c to lib/curl_addrinfo.c
and prototypes from lib/hostip.h to lib/curl_addrinfo.h
Diffstat (limited to 'lib/curl_addrinfo.h')
-rw-r--r-- | lib/curl_addrinfo.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/lib/curl_addrinfo.h b/lib/curl_addrinfo.h index 583f3d082..f6456f965 100644 --- a/lib/curl_addrinfo.h +++ b/lib/curl_addrinfo.h @@ -78,4 +78,20 @@ Curl_getaddrinfo_ex(const char *nodename, Curl_addrinfo * Curl_he2ai(const struct hostent *he, int port); + +#if defined(CURLDEBUG) && defined(HAVE_FREEADDRINFO) +void +curl_dofreeaddrinfo(struct addrinfo *freethis, + int line, const char *source); +#endif + +#if defined(CURLDEBUG) && defined(HAVE_GETADDRINFO) +int +curl_dogetaddrinfo(const char *hostname, + const char *service, + const struct addrinfo *hints, + struct addrinfo **result, + int line, const char *source); +#endif + #endif /* HEADER_CURL_ADDRINFO_H */ |