mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-09-02 07:35:26 +00:00
Add dns_adb_attach().
This commit is contained in:
@@ -2351,6 +2351,16 @@ dns_adb_create(isc_mem_t *mem, dns_view_t *view, isc_timermgr_t *timermgr,
|
|||||||
return (result);
|
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
|
void
|
||||||
dns_adb_detach(dns_adb_t **adbx)
|
dns_adb_detach(dns_adb_t **adbx)
|
||||||
{
|
{
|
||||||
|
@@ -249,6 +249,17 @@ dns_adb_create(isc_mem_t *mem, dns_view_t *view, isc_timermgr_t *tmgr,
|
|||||||
* ISC_R_NOMEMORY after resource allocation failure.
|
* ISC_R_NOMEMORY after resource allocation failure.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
void
|
||||||
|
dns_adb_attach(dns_adb_t *adb, dns_adb_t **adbp);
|
||||||
|
/*
|
||||||
|
* Attach to an 'adb' to 'adbp'.
|
||||||
|
*
|
||||||
|
* Requires:
|
||||||
|
* 'adb' to be a valid dns_adb_t, created via dns_adb_create().
|
||||||
|
* 'adbp' to be a valid pointer to a *dns_adb_t which is initalized
|
||||||
|
* to NULL.
|
||||||
|
*/
|
||||||
|
|
||||||
void
|
void
|
||||||
dns_adb_detach(dns_adb_t **adb);
|
dns_adb_detach(dns_adb_t **adb);
|
||||||
/*
|
/*
|
||||||
|
Reference in New Issue
Block a user