[getdns-api] Changing the getdns transport options

Sara Dickinson sara at sinodun.com
Wed Jun 17 20:40:35 CEST 2015


> On 17 Jun 2015, at 19:27, Melinda Shore <melinda.shore at nomountain.net> wrote:
> 
> On 6/17/15 8:54 AM, Sara Dickinson wrote:
>> Thanks for all the comments. 2 minor updates on this. 
>> 
>> 1) I have done a test implementation of the new transport list (see pull
>> request #104 if interested) and since the transport list is much more
>> like the namespace list I propose we use the signature below instead of
>> the one using a getdns_list I originally proposed:
> 
> Can you explain the reasoning behind that?  I'm actually not
> sure that the getdns_namespace_t was a good decision.

Well, in C the arrays for both namespaces and transport_list that are passed to the set functions are arrays of enums so a getdns_list feels heavyweight for something that simple….  The alternative is a list of ints of the enum value…. or bindata of the string. The enum option is more type specific, at least in the C API… probably not so true for bindings….?
_______________________________________________
getdns-api mailing list
getdns-api at vpnc.org


More information about the spec mailing list