Commit b8029095 authored by Bob Halley's avatar Bob Halley
Browse files

add shutdown and whenshutdown methods

parent 27d4efe5
......@@ -222,6 +222,34 @@ dns_adb_detach(dns_adb_t **adb);
* dns_adb_create().
*/
void
dns_adb_whenshutdown(dns_adb_t *adb, isc_task_t *task, isc_event_t **eventp);
/*
* Send '*eventp' to 'task' when 'adb' has shutdown.
*
* Requires:
*
* '*adb' is a valid dns_adb_t.
*
* eventp != NULL && *eventp is a valid event.
*
* Ensures:
*
* *eventp == NULL
*
* The event's sender field is set to the value of adb when the event
* is sent.
*/
void
dns_adb_shutdown(dns_adb_t *adb);
/*
* Shutdown 'adb'.
*
* Requires:
*
* '*adb' is a valid dns_adb_t.
*/
isc_result_t
dns_adb_createfind(dns_adb_t *adb, isc_task_t *task, isc_taskaction_t action,
......
......@@ -81,6 +81,13 @@ dns_resolver_create(dns_view_t *view,
isc_timermgr_t *timermgr,
dns_dispatch_t *dispatch, dns_resolver_t **resp);
void
dns_resolver_whenshutdown(dns_resolver_t *res, isc_task_t *task,
isc_event_t **eventp);
void
dns_resolver_shutdown(dns_resolver_t *res);
void
dns_resolver_attach(dns_resolver_t *source, dns_resolver_t **targetp);
......
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