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

Add dns_adb_attach().

This commit is contained in:
Mark Andrews
2000-04-18 08:18:52 +00:00
parent 2d0c5f1ead
commit 9b8057fce9
2 changed files with 21 additions and 0 deletions

View File

@@ -2351,6 +2351,16 @@ dns_adb_create(isc_mem_t *mem, dns_view_t *view, isc_timermgr_t *timermgr,
return (result);
}
void
dns_adb_attach(dns_adb_t *adb, dns_adb_t **adbx) {
REQUIRE(DNS_ADB_VALID(adb));
REQUIRE(adbx != NULL && *adbx == NULL);
inc_adb_erefcnt(adb, ISC_TRUE);
*adbx = adb;
}
void
dns_adb_detach(dns_adb_t **adbx)
{