From 7e6a67b436cef781513c2037ca8775531e92e329 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/ares.h | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'ares/ares.h') 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); -- cgit v1.2.3