mirror of
https://github.com/isc-projects/bind9.git
synced 2026-06-08 17:42:04 -04:00
add dns_rdataset_isassociated
This commit is contained in:
parent
f56a8f6b5e
commit
28640d1da2
2 changed files with 27 additions and 0 deletions
|
|
@ -153,6 +153,19 @@ dns_rdataset_disassociate(dns_rdataset_t *rdataset);
|
|||
* 'rdataset' is a valid, disassociated rdataset.
|
||||
*/
|
||||
|
||||
isc_boolean_t
|
||||
dns_rdataset_isassociated(dns_rdataset_t *rdataset);
|
||||
/*
|
||||
* Is 'rdataset' associated?
|
||||
*
|
||||
* Requires:
|
||||
* 'rdataset' is a valid rdataset.
|
||||
*
|
||||
* Returns:
|
||||
* ISC_TRUE 'rdataset' is associated.
|
||||
* ISC_FALSE 'rdataset' is not associated.
|
||||
*/
|
||||
|
||||
void
|
||||
dns_rdataset_makequestion(dns_rdataset_t *rdataset, dns_rdataclass_t rdclass,
|
||||
dns_rdatatype_t type);
|
||||
|
|
|
|||
|
|
@ -101,6 +101,20 @@ dns_rdataset_disassociate(dns_rdataset_t *rdataset) {
|
|||
rdataset->private5 = NULL;
|
||||
}
|
||||
|
||||
isc_boolean_t
|
||||
dns_rdataset_isassociated(dns_rdataset_t *rdataset) {
|
||||
/*
|
||||
* Is 'rdataset' associated?
|
||||
*/
|
||||
|
||||
REQUIRE(DNS_RDATASET_VALID(rdataset));
|
||||
|
||||
if (rdataset->methods != NULL)
|
||||
return (ISC_TRUE);
|
||||
|
||||
return (ISC_FALSE);
|
||||
}
|
||||
|
||||
static void
|
||||
question_disassociate(dns_rdataset_t *rdataset) {
|
||||
(void)rdataset;
|
||||
|
|
|
|||
Loading…
Reference in a new issue