summaryrefslogtreecommitdiff
path: root/include/ares.h
diff options
context:
space:
mode:
authorSeonah Moon <seonah1.moon@samsung.com>2022-01-12 15:55:57 +0900
committerSeonah Moon <seonah1.moon@samsung.com>2022-01-12 15:55:57 +0900
commit6c5282d154e7f4423b6bfdbbb9e4318f2fcb47bf (patch)
tree8a7b776eed444cb0040de9d3f490e80675f5daaa /include/ares.h
parenta3808d2c148f36c332625d958a80b7380de9d3a2 (diff)
parent450be02682da219c984870e56ac2c3098efbe68a (diff)
downloadc-ares-tizen_7.0_base_hotfix.tar.gz
c-ares-tizen_7.0_base_hotfix.tar.bz2
c-ares-tizen_7.0_base_hotfix.zip
Change-Id: I78d0446c9b8a29e5a5acd91c5399bc89736ca168
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);