summaryrefslogtreecommitdiff
path: root/include/ares.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/ares.h')
-rw-r--r--include/ares.h15
1 files changed, 14 insertions, 1 deletions
diff --git a/include/ares.h b/include/ares.h
index 70a1baf..cf8a855 100644
--- a/include/ares.h
+++ b/include/ares.h
@@ -39,7 +39,7 @@
#if defined(_AIX) || defined(__NOVELL_LIBC__) || defined(__NetBSD__) || \
defined(__minix) || defined(__SYMBIAN32__) || defined(__INTEGRITY) || \
defined(ANDROID) || defined(__ANDROID__) || defined(__OpenBSD__) || \
- defined(__QNXNTO__)
+ defined(__QNXNTO__) || defined(__MVS__) || defined(__HAIKU__)
#include <sys/select.h>
#endif
#if (defined(NETWARE) && !defined(__NOVELL_LIBC__))
@@ -588,6 +588,14 @@ struct ares_soa_reply {
unsigned int minttl;
};
+struct ares_uri_reply {
+ struct ares_uri_reply *next;
+ unsigned short priority;
+ unsigned short weight;
+ char *uri;
+ int ttl;
+};
+
/*
* Similar to addrinfo, but with extra ttl and missing canonname.
*/
@@ -617,6 +625,7 @@ struct ares_addrinfo_cname {
struct ares_addrinfo {
struct ares_addrinfo_cname *cnames;
struct ares_addrinfo_node *nodes;
+ char *name;
};
struct ares_addrinfo_hints {
@@ -685,6 +694,10 @@ CARES_EXTERN int ares_parse_soa_reply(const unsigned char* abuf,
int alen,
struct ares_soa_reply** soa_out);
+CARES_EXTERN int ares_parse_uri_reply(const unsigned char* abuf,
+ int alen,
+ struct ares_uri_reply** uri_out);
+
CARES_EXTERN void ares_free_string(void *str);
CARES_EXTERN void ares_free_hostent(struct hostent *host);