[getdns-api] changes to signatures of data helper functions

Wiley, Glen gwiley at verisign.com
Tue Sep 10 12:21:49 MST 2013

I'd like to change the signatures for the non-trivial data type helper functions to include the context so that we will have access to the user defined allocators.  For example

getdns_return_t getdns_list_copy(struct getdns_list *srclist, struct getdns_list **dstlist);


getdns_return_t getdns_list_copy(getdns_context_t context, struct getdns_list *srclist, struct getdns_list **dstlist);


getdns_return_t getdns_dict_get_names(struct getdns_dict *dict, struct getdns_list **answer);


getdns_return_t getdns_dict_get_names(getdns_context_t context, struct getdns_dict *dict, struct getdns_list **answer);

Each helper function that may involve significant use of a user defined allocator would end up with the context as arg 0.

What do folks think?

Glen Wiley
Sr. Engineer
The Hive, Verisign, Inc.
"This message (including any attachments) is intended only for the use of the individual or entity to which it is addressed, and may contain information that is non-public, proprietary, privileged, confidential and exempt from disclosure under applicable law or may be constituted as attorney work product. If you are not the intended recipient, you are hereby notified that any use, dissemination, distribution, or copying of this communication is strictly prohibited. If you have received this message in error, notify sender immediately and delete this message immediately."
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vpnc.org/pipermail/getdns-api/attachments/20130910/cbc4d96e/attachment.html>

More information about the getdns-api mailing list