mirror of
https://github.com/isc-projects/bind9.git
synced 2026-03-29 05:43:20 -04:00
add shutdown and whenshutdown methods
This commit is contained in:
parent
27d4efe5c8
commit
b80290952d
2 changed files with 35 additions and 0 deletions
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue