From 63918fca7667a03b310c5f8486636a896be7ac72 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Lal?= Date: Sun, 18 Apr 2010 00:29:26 +0200 Subject: added ares_parse_mx_reply --- ares.h | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'ares.h') 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); -- cgit v1.2.3