diff options
author | Daniel Stenberg <daniel@haxx.se> | 2008-11-19 15:16:16 +0000 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2008-11-19 15:16:16 +0000 |
commit | 8a6b51d5601ab65f64514bb80c567f5f5e103bc1 (patch) | |
tree | 8b4194d66157386613da0caa2a62c1338ea508f0 /ares.h | |
parent | 8a34a3a045a76282b81bbda780204a1633a64398 (diff) | |
download | c-ares-8a6b51d5601ab65f64514bb80c567f5f5e103bc1.tar.gz c-ares-8a6b51d5601ab65f64514bb80c567f5f5e103bc1.tar.bz2 c-ares-8a6b51d5601ab65f64514bb80c567f5f5e103bc1.zip |
- 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.h | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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, |