2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-08-31 14:35:26 +00:00

Support ondestroy notfication of databases.

This commit is contained in:
James Brister
2000-02-10 16:09:01 +00:00
parent e32ccd2b77
commit d549c37348
4 changed files with 28 additions and 0 deletions

View File

@@ -25,6 +25,7 @@
#include <string.h>
#include <isc/assertions.h>
#include <isc/ondestroy.h>
#include <dns/db.h>
#include <dns/master.h>
@@ -118,6 +119,15 @@ dns_db_detach(dns_db_t **dbp) {
ENSURE(*dbp == NULL);
}
isc_result_t
dns_db_ondestroy(dns_db_t *db, isc_task_t *task, isc_event_t **eventp)
{
REQUIRE(DNS_DB_VALID(db));
return (isc_ondestroy_register(&db->ondest, task, eventp));
}
isc_boolean_t
dns_db_iscache(dns_db_t *db) {