[getdns-api] Notification callbacks
Paul Hoffman
paul.hoffman at vpnc.org
Wed Mar 13 08:09:21 MST 2013
On Mar 12, 2013, at 5:48 PM, Murray S. Kucherawy <superuser at gmail.com> wrote:
> Section 8.2 describes the prototype for a function that will be notified of context changes, automatic or otherwise. The prototype is:
>
> void (*value)(getdns_context_t context, getdns_return_t changed_item)
>
> So the callback will receive as its first argument the context that was modified, and the second is the item that was modified. Is "getdns_return_t" the right type there?
I believe so, yes. The return from the call to getdns_context_set_context_update_callback() would be GETDNS_RETURN_BAD_CONTEXT if you passed this function a bad context.
--Paul Hoffman
More information about the getdns-api
mailing list