Commit f3a8ab70 authored by Bob Halley's avatar Bob Halley
Browse files

cleanups, magic

parent 4dfd81d8
......@@ -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
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment