mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-08-30 22:15:20 +00:00
cleanups, magic
This commit is contained in:
@@ -57,13 +57,18 @@
|
||||
#include <dns/result.h>
|
||||
|
||||
typedef struct dns_rdatasetmethods {
|
||||
dns_result_t (*disassociate)(dns_rdataset_t *rdatasetp);
|
||||
dns_result_t (*disassociate)(dns_rdataset_t *rdataset);
|
||||
dns_result_t (*first)(dns_rdataset_t *rdataset);
|
||||
dns_result_t (*next)(dns_rdataset_t *rdataset);
|
||||
void (*current)(dns_rdataset_t *rdataset,
|
||||
dns_rdata_t *rdata);
|
||||
} dns_rdatasetmethods_t;
|
||||
|
||||
#define DNS_RDATASET_MAGIC 0x444E5352U /* DNSR. */
|
||||
#define DNS_RDATASET_VALID(rdataset) ((rdataset) != NULL && \
|
||||
(rdataset)->magic == \
|
||||
DNS_RDATASET_MAGIC)
|
||||
|
||||
/*
|
||||
* Direct use of this structure by clients is strongly discouraged, except
|
||||
* for the 'link' field which may be used however the client wishes. The
|
||||
|
Reference in New Issue
Block a user