diff options
author | Yang Tse <yangsita@gmail.com> | 2009-11-20 09:06:33 +0000 |
---|---|---|
committer | Yang Tse <yangsita@gmail.com> | 2009-11-20 09:06:33 +0000 |
commit | 5d62fe703fad837c07e68931e26c6d9637a40b60 (patch) | |
tree | 9cbb4ca9e4238bc6c3f542e5ba37518b90906e42 /ares.h | |
parent | 2a916ce6e550ba82a413fca9d2e296140c4ac73c (diff) | |
download | c-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.h | 6 |
1 files changed, 2 insertions, 4 deletions
@@ -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); |