Commit 043e034c authored by Per Cederqvist's avatar Per Cederqvist
Browse files

(enum isc_resolve_status): Added isc_resolve_adns_error.

(isc_resolve_remote): Return 0 on success.
parent 84187622
......@@ -59,13 +59,14 @@ enum isc_resolve_status
{
isc_resolve_ok, /* Name successfully looked up. */
isc_resolve_h_errno, /* Failed. h_errno value passed in errcode. */
isc_resolve_adns_error, /* Failed. status value passed in errcode. */
isc_resolve_aborted, /* Session is being killed and no reply yet. */
};
/* The errcode is valid when res indicates so. */
typedef void *isc_resolve_done_cb(struct isc_scb *scb,
enum isc_resolve_status res,
long errcode /* if res==isc_resolve_h_errno */
);
long errcode);
/*
......@@ -284,9 +285,10 @@ isc_getipnum(union isc_address *ia,
lookup completes, store the result in scb->remote and call the
callback. If the lookup fails, a printable representation of the
IP address will be stored in scb->remote and the callback will be
called with a non-NULL error_reason (FIXME: or whatever adns
likes). */
extern void
called with res set to something other than isc_resolve_ok.
Returns 0 on success, or an error code defined by adns on error. */
extern int
isc_resolve_remote(struct isc_scb *scb,
isc_resolve_done_cb *callback);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment