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

Wiley, Glen gwiley at verisign.com
Tue Sep 10 21:21:49 CEST 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);

becomes:

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

And

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

Becomes

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
KK4SFV
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://getdnsapi.net/pipermail/spec/attachments/20130910/cbc4d96e/attachment.html>
-------------- next part --------------
_______________________________________________
getdns-api mailing list
getdns-api at vpnc.org


More information about the spec mailing list