Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ISC Open Source Projects
BIND
Commits
28640d1d
Commit
28640d1d
authored
Aug 19, 1999
by
Bob Halley
Browse files
add dns_rdataset_isassociated
parent
f56a8f6b
Changes
2
Show whitespace changes
Inline
Side-by-side
lib/dns/include/dns/rdataset.h
View file @
28640d1d
...
...
@@ -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
);
...
...
lib/dns/rdataset.c
View file @
28640d1d
...
...
@@ -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
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment