<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=Windows-1252">
</head>
<body style="word-wrap:break-word; color:rgb(0,0,0); font-size:14px; font-family:Calibri,sans-serif">
<div>Hi all,</div>
<div><br>
</div>
<div>This is commentary on section 2.1 in reference to Bob Steagall’s review of the getdns API - <a href="http://www.vpnc.org/pipermail/getdns-api/2014-January/000229.html">http://www.vpnc.org/pipermail/getdns-api/2014-January/000229.html</a></div>
<div><br>
</div>
<div>The suggestion is to use enumerated types where possible. In particular, getdns_return_t and some context setter function parameters. An example would be:</div>
<div><br>
</div>
<div>
<div class="forh" style="white-space:pre; font-family:monospace; margin-top:0px; margin-bottom:0px">
getdns_return_t getdns_context_set_resolution_type( getdns_context_t context, uint16_t value );</div>
<p class="cont" style="margin-bottom:0px; margin-top:0px; font-family:Times; font-size:medium">
<br>
</p>
<p class="cont" style="margin-bottom:0px; margin-top:0px; font-family:Times; font-size:medium">
The spec says the value must be either GETDNS_CONTEXT_RECURSING or GETDNS_CONTEXT_STUB.</p>
<p class="cont" style="margin-bottom:0px; margin-top:0px; font-family:Times; font-size:medium">
<br>
</p>
<p class="cont" style="margin-bottom:0px; margin-top:0px; font-family:Times; font-size:medium">
I am in favor of this change - definitely for getdns_return_t. The other functions will be a bit of work, but I think they do result in a cleaner API in the long run.</p>
<p class="cont" style="margin-bottom:0px; margin-top:0px; font-family:Times; font-size:medium">
<br>
</p>
<p class="cont" style="margin-bottom:0px; margin-top:0px; font-family:Times; font-size:medium">
Thoughts?</p>
</div>
<div><br>
</div>
<h5><font color="gray">“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.”
</h5>
</font>
</body>
</html>