mirror of
https://github.com/isc-projects/bind9.git
synced 2026-05-21 17:41:35 -04:00
Make dns_glue_t private to qpzone
The dns_glue_t, dns_gluelist_t and dns_glue_additionaldata_ctx types are only used in qpzone.c. This commits moves them to the private header qpzone_p.h. This is done in preparation of a followup commit that will refactor them to use types that are private to qpzone.
This commit is contained in:
parent
acc64014a8
commit
d7a5a2e86b
3 changed files with 31 additions and 35 deletions
|
|
@ -17,7 +17,6 @@
|
|||
#include <isc/urcu.h>
|
||||
|
||||
#include <dns/nsec3.h>
|
||||
#include <dns/rdatavec.h>
|
||||
#include <dns/types.h>
|
||||
|
||||
#ifdef STRONG_RWLOCK_CHECK
|
||||
|
|
@ -85,35 +84,6 @@
|
|||
#define IS_STUB(db) (((db)->common.attributes & DNS_DBATTR_STUB) != 0)
|
||||
#define IS_CACHE(db) (((db)->common.attributes & DNS_DBATTR_CACHE) != 0)
|
||||
|
||||
struct dns_glue {
|
||||
struct dns_glue *next;
|
||||
dns_name_t name;
|
||||
dns_rdataset_t rdataset_a;
|
||||
dns_rdataset_t sigrdataset_a;
|
||||
dns_rdataset_t rdataset_aaaa;
|
||||
dns_rdataset_t sigrdataset_aaaa;
|
||||
};
|
||||
|
||||
struct dns_gluelist {
|
||||
isc_mem_t *mctx;
|
||||
|
||||
const dns_dbversion_t *version;
|
||||
dns_vecheader_t *header;
|
||||
|
||||
struct dns_glue *glue;
|
||||
|
||||
struct rcu_head rcu_head;
|
||||
struct cds_wfs_node wfs_node;
|
||||
};
|
||||
|
||||
typedef struct dns_glue_additionaldata_ctx {
|
||||
dns_db_t *db;
|
||||
dns_dbversion_t *version;
|
||||
const dns_name_t *owner_name;
|
||||
|
||||
dns_glue_t *glue;
|
||||
} dns_glue_additionaldata_ctx_t;
|
||||
|
||||
static inline bool
|
||||
prio_type(dns_typepair_t type) {
|
||||
switch (type) {
|
||||
|
|
|
|||
|
|
@ -119,11 +119,6 @@ struct dns_slabheader {
|
|||
*/
|
||||
dns_dbnode_t *node;
|
||||
|
||||
/*%
|
||||
* Cached glue records for an rdataset of type NS (zone only).
|
||||
*/
|
||||
dns_gluelist_t *gluelist;
|
||||
|
||||
/*%
|
||||
* Case vector. If the bit is set then the corresponding
|
||||
* character in the owner name needs to be AND'd with 0x20,
|
||||
|
|
|
|||
|
|
@ -19,8 +19,39 @@
|
|||
|
||||
#include <dns/nsec3.h>
|
||||
#include <dns/qp.h>
|
||||
#include <dns/rdatavec.h>
|
||||
#include <dns/types.h>
|
||||
|
||||
struct dns_glue {
|
||||
struct dns_glue *next;
|
||||
dns_name_t name;
|
||||
dns_rdataset_t rdataset_a;
|
||||
dns_rdataset_t sigrdataset_a;
|
||||
dns_rdataset_t rdataset_aaaa;
|
||||
dns_rdataset_t sigrdataset_aaaa;
|
||||
bool required;
|
||||
};
|
||||
|
||||
struct dns_gluelist {
|
||||
isc_mem_t *mctx;
|
||||
|
||||
const dns_dbversion_t *version;
|
||||
dns_vecheader_t *header;
|
||||
|
||||
struct dns_glue *glue;
|
||||
|
||||
struct rcu_head rcu_head;
|
||||
struct cds_wfs_node wfs_node;
|
||||
};
|
||||
|
||||
typedef struct dns_glue_additionaldata_ctx {
|
||||
dns_db_t *db;
|
||||
dns_dbversion_t *version;
|
||||
const dns_name_t *owner_name;
|
||||
|
||||
dns_glue_t *glue;
|
||||
} dns_glue_additionaldata_ctx_t;
|
||||
|
||||
/*****
|
||||
***** Module Info
|
||||
*****/
|
||||
|
|
|
|||
Loading…
Reference in a new issue