[getdns-api] getdns_return_t for destroy methods
Paul Hoffman
paul.hoffman at vpnc.org
Mon Mar 10 23:23:28 MST 2014
On Mar 10, 2014, at 9:11 PM, Goyal, Neel <ngoyal at verisign.com> wrote:
> - introduce a return code to the destroy method that is more specific
> than GETDNS_RETURN_GENERIC_ERROR
> - document this edge case / rule in the API spec and enforce it in the
> implementation via asserts
I am much happier with the second method, the one that Simon came up with. So, let's leave the function as a void, document the "don't do this" (and any others we think of), and an implementation can add an assert() there because the application did something it was told not to do.
--Paul Hoffman
More information about the getdns-api
mailing list