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

additional data support

This commit is contained in:
Bob Halley
1999-08-02 22:17:36 +00:00
parent 6dc79bfdaf
commit 396e149f32
2 changed files with 31 additions and 0 deletions

View File

@@ -289,6 +289,34 @@ dns_rdataset_towire(dns_rdataset_t *rdataset,
* dns_name_towire().
*/
dns_result_t
dns_rdataset_additionaldata(dns_rdataset_t *rdataset,
dns_additionaldatafunc_t add, void *arg);
/*
* For each rdata in rdataset, call 'add' for each name and type in the
* rdata which is subject to additional section processing.
*
* Requires:
*
* 'rdataset' is a valid, non-question rdataset.
*
* 'add' is a valid dns_additionaldatafunc_t
*
* Ensures:
*
* If successful, dns_rdata_additionaldata() will have been called for
* each rdata in 'rdataset'.
*
* If a call to dns_rdata_additionaldata() is not successful, the
* result returned will be the result of dns_rdataset_additionaldata().
*
* Returns:
*
* DNS_R_SUCCESS
*
* Any error that dns_rdata_additionaldata() can return.
*/
ISC_LANG_ENDDECLS
#endif /* DNS_RDATASET_H */

View File

@@ -162,6 +162,9 @@ enum {
typedef isc_result_t
(*dns_addrdatasetfunc_t)(void *, dns_name_t *, dns_rdataset_t *);
typedef isc_result_t
(*dns_additionaldatafunc_t)(void *, dns_name_t *, dns_rdatatype_t);
ISC_LANG_ENDDECLS
#endif /* DNS_TYPES_H */