summaryrefslogtreecommitdiff
path: root/ares/ares.h
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2008-11-19 15:16:16 +0000
committerDaniel Stenberg <daniel@haxx.se>2008-11-19 15:16:16 +0000
commit7383225271fc38c0421f647c8e5fda26161f6079 (patch)
tree0abf44461f2777d0bad9657c44083d566307312b /ares/ares.h
parent4b3ae5e1575fd40d3ca969fda2f23e46182cf0b8 (diff)
downloadcurl-7383225271fc38c0421f647c8e5fda26161f6079.tar.gz
- Brad Spencer brought the new function ares_gethostbyname_file() which simply
resolves a host name from the given file, using the regular hosts syntax.
Diffstat (limited to 'ares/ares.h')
-rw-r--r--ares/ares.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/ares/ares.h b/ares/ares.h
index 1507f41e9..7ea70543f 100644
--- a/ares/ares.h
+++ b/ares/ares.h
@@ -228,6 +228,8 @@ void ares_search(ares_channel channel, const char *name, int dnsclass,
int type, ares_callback callback, void *arg);
void ares_gethostbyname(ares_channel channel, const char *name, int family,
ares_host_callback callback, void *arg);
+int ares_gethostbyname_file(ares_channel channel, const char *name,
+ int family, struct hostent **host);
void ares_gethostbyaddr(ares_channel channel, const void *addr, int addrlen,
int family, ares_host_callback callback, void *arg);
void ares_getnameinfo(ares_channel channel, const struct sockaddr *sa,