summaryrefslogtreecommitdiff
path: root/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
commit5d62fe703fad837c07e68931e26c6d9637a40b60 (patch)
tree9cbb4ca9e4238bc6c3f542e5ba37518b90906e42 /ares.h
parent2a916ce6e550ba82a413fca9d2e296140c4ac73c (diff)
downloadc-ares-5d62fe703fad837c07e68931e26c6d9637a40b60.tar.gz
c-ares-5d62fe703fad837c07e68931e26c6d9637a40b60.tar.bz2
c-ares-5d62fe703fad837c07e68931e26c6d9637a40b60.zip
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.h')
-rw-r--r--ares.h6
1 files changed, 2 insertions, 4 deletions
diff --git a/ares.h b/ares.h
index d2b6cec..9f4feeb 100644
--- a/ares.h
+++ b/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);