summaryrefslogtreecommitdiff
path: root/ares.h
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2008-11-19 15:16:16 (GMT)
committerDaniel Stenberg <daniel@haxx.se>2008-11-19 15:16:16 (GMT)
commit8a6b51d5601ab65f64514bb80c567f5f5e103bc1 (patch)
tree8b4194d66157386613da0caa2a62c1338ea508f0 /ares.h
parent8a34a3a045a76282b81bbda780204a1633a64398 (diff)
downloadc-ares-8a6b51d5601ab65f64514bb80c567f5f5e103bc1.zip
c-ares-8a6b51d5601ab65f64514bb80c567f5f5e103bc1.tar.gz
c-ares-8a6b51d5601ab65f64514bb80c567f5f5e103bc1.tar.bz2
- 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.h')
-rw-r--r--ares.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/ares.h b/ares.h
index 1507f41..7ea7054 100644
--- a/ares.h
+++ b/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,