Subject: [PATCH] ares_free_reply (Was: Re: [PATCH] ares_parse_txt_reply)

[PATCH] ares_free_reply (Was: Re: [PATCH] ares_parse_txt_reply)

From: Jakub Hrozek <jhrozek_at_redhat.com>
Date: Mon, 02 Nov 2009 16:22:17 +0100

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 10/31/2009 11:33 PM, Daniel Stenberg wrote:
> On Fri, 30 Oct 2009, Jakub Hrozek wrote:
>
>> So, what about a slight change in the external structures:
>>
>> struct ares_srv_reply {
>> <data>
>> struct ares_srv-reply *next;
>> }
>>
>> and have the private structure defined along the lines:
>>
>> struct ares_private {
>> int magic;
>> union {
>> struct ares_srv_reply srv;
>> struct ares_txt_reply txt;
>> } data;
>> };
>
> Sure, that would work perfectly fine with me!
>

A patch is attached. I did factor in some of Yang's suggestions but so
far it only works for SRV and TXT parsing routines..I'm not sure if what
he posted (although a good plan!) is plan for the upcoming release or
the next one and I did not want to touch existing (released) API much.

I'll also update manpages when/if this patch is deemed correct.

Comments welcome,
        Jakub
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org/

iEYEARECAAYFAkru+SkACgkQHsardTLnvCUIAACaAgr5NJSEJNYOsC6twkZsjgHH
eIwAoOapTIS0guyNJQyOfmyymyY2R4MO
=gfM1
-----END PGP SIGNATURE-----

Received on 2009-11-02