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:
@@ -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 */
|
||||
|
@@ -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 */
|
||||
|
Reference in New Issue
Block a user