summaryrefslogtreecommitdiff
path: root/lib/curl_addrinfo.h
diff options
context:
space:
mode:
authorYang Tse <yangsita@gmail.com>2008-10-30 19:02:23 +0000
committerYang Tse <yangsita@gmail.com>2008-10-30 19:02:23 +0000
commitc2c800d8639b1f34a89548e6c26e6d805036dfdc (patch)
tree452693a63001821bc9e69aef8c835805ed53a939 /lib/curl_addrinfo.h
parent625c107c25815776bb2ee8df923638dd36f4ddd7 (diff)
downloadcurl-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.h16
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 */