-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 > All it would take is that we make sure we include a hint in the returned > data about what struct it is so that we can detect that in the free > function and then do the correct cleanup. >
Well, from the point of view of the API user something along the lines of ares_free() sure sounds good. How did you envision the implementation? Because some parsing functions use standard structures (hostent), in order to expand the returned data you either wrap the standard structures in ares specific ones that would carry the hint or return the hint as another parameter..both ways would change the API.. Jakub -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (GNU/Linux) Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org/ iEYEARECAAYFAkrpbeUACgkQHsardTLnvCVXOwCfXpC5r+wmSdmKuPrzC2V7zns4 Nq4AnRaA2l5Py+dsLC6UEsEmbNPv2oeq =RY/R -----END PGP SIGNATURE-----