aboutsummaryrefslogtreecommitdiff
path: root/ares/ares.h
diff options
context:
space:
mode:
authorYang Tse <yangsita@gmail.com>2009-11-20 09:06:33 +0000
committerYang Tse <yangsita@gmail.com>2009-11-20 09:06:33 +0000
commit7e6a67b436cef781513c2037ca8775531e92e329 (patch)
tree9e34b1f54dd0901d63b5aad2638828dc6c6aa886 /ares/ares.h
parent5a0a473c30925d63e1695a7b8b1cee8f73ad6e68 (diff)
Jakub Hrozek modified ares_parse_srv_reply() and ares_parse_txt_reply() API
to return a linked lists of results. These were also modified to internally use the ares_data memory struct and as such its result must be free'ed with ares_free_data().
Diffstat (limited to 'ares/ares.h')
-rw-r--r--ares/ares.h6
1 files changed, 2 insertions, 4 deletions
diff --git a/ares/ares.h b/ares/ares.h
index d2b6cecc5..9f4feebf9 100644
--- a/ares/ares.h
+++ b/ares/ares.h
@@ -476,13 +476,11 @@ CARES_EXTERN int ares_parse_ns_reply(const unsigned char *abuf,
CARES_EXTERN int ares_parse_srv_reply(const unsigned char* abuf,
int alen,
- struct ares_srv_reply** srv_out,
- int *nsrvreply);
+ struct ares_srv_reply** srv_out);
CARES_EXTERN int ares_parse_txt_reply(const unsigned char* abuf,
int alen,
- struct ares_txt_reply** txt_out,
- int *nsrvreply);
+ struct ares_txt_reply** txt_out);
CARES_EXTERN void ares_free_string(void *str);