Suggestion: include functions to free a result

Iñaki Baz Castillo ibc at aliax.net
Mon Feb 7 09:32:54 MSK 2011


Hi, from the doc:

-----------------
When the query completes, library will call application-supplied
callback routine, giving it the resolver context (wich holds query
completion status), dynamically allocated result (which will be either
raw DNS packet or, if applicatin requested parsing the result by
specifying non-NULL parse routine, ready-to-use type-specific
structure), and a data pointer provided by an application when it
submitted the query. It is the application who’s responsible for
freeing the result memory.
-----------------

Wouldn't be great if udns provides functions to free  result? i.e:
dns_free_rr_a4(struct dns_rr_a4 *). Just wondering.

Regards.

-- 
Iñaki Baz Castillo
<ibc at aliax.net>


More information about the udns mailing list