From 5d62fe703fad837c07e68931e26c6d9637a40b60 Mon Sep 17 00:00:00 2001 From: Yang Tse Date: Fri, 20 Nov 2009 09:06:33 +0000 Subject: 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(). --- ares.h | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'ares.h') 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); -- cgit v1.2.3