summaryrefslogtreecommitdiff
path: root/ares.h
diff options
context:
space:
mode:
authorJérémy Lal <kapouer@melix.org>2010-04-17 22:29:26 (GMT)
committerDaniel Stenberg <daniel@haxx.se>2010-04-17 22:29:26 (GMT)
commit63918fca7667a03b310c5f8486636a896be7ac72 (patch)
treed403f6919268eaa232ed5b513125d848a8af96df /ares.h
parentf28874d3233adad18f4c25df8d9437d0c9e7c3eb (diff)
downloadc-ares-63918fca7667a03b310c5f8486636a896be7ac72.zip
c-ares-63918fca7667a03b310c5f8486636a896be7ac72.tar.gz
c-ares-63918fca7667a03b310c5f8486636a896be7ac72.tar.bz2
added ares_parse_mx_reply
Diffstat (limited to 'ares.h')
-rw-r--r--ares.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/ares.h b/ares.h
index 31c862a..368c73a 100644
--- a/ares.h
+++ b/ares.h
@@ -433,6 +433,12 @@ struct ares_srv_reply {
unsigned short port;
};
+struct ares_mx_reply {
+ struct ares_mx_reply *next;
+ char *host;
+ unsigned short priority;
+};
+
struct ares_txt_reply {
struct ares_txt_reply *next;
unsigned char *txt;
@@ -474,6 +480,10 @@ CARES_EXTERN int ares_parse_srv_reply(const unsigned char* abuf,
int alen,
struct ares_srv_reply** srv_out);
+CARES_EXTERN int ares_parse_mx_reply(const unsigned char* abuf,
+ int alen,
+ struct ares_mx_reply** mx_out);
+
CARES_EXTERN int ares_parse_txt_reply(const unsigned char* abuf,
int alen,
struct ares_txt_reply** txt_out);