From 800b03baba638ddb3f67cc0d2ad2e70042fe8525 Mon Sep 17 00:00:00 2001 From: Mark Andrews Date: Wed, 13 Oct 1999 22:12:24 +0000 Subject: [PATCH] dbtable -> zonetable conversion. add dns_view_addzone() declaration. remove dns_view_addzonedb() declaration. add dns_view_findinlist() declaration. --- lib/dns/include/dns/view.h | 29 +++++++++++++---------------- 1 file changed, 13 insertions(+), 16 deletions(-) diff --git a/lib/dns/include/dns/view.h b/lib/dns/include/dns/view.h index 981a11d377..2d796f198a 100644 --- a/lib/dns/include/dns/view.h +++ b/lib/dns/include/dns/view.h @@ -67,6 +67,7 @@ #include #include +#include ISC_LANG_BEGINDECLS @@ -76,7 +77,7 @@ struct dns_view { isc_mem_t * mctx; dns_rdataclass_t rdclass; char * name; - dns_dbtable_t * dbtable; + dns_zt_t * zonetable; dns_resolver_t * resolver; dns_db_t * cachedb; dns_db_t * hints; @@ -221,27 +222,16 @@ dns_view_sethints(dns_view_t *view, dns_db_t *hints); */ isc_result_t -dns_view_addzonedb(dns_view_t *view, dns_db_t *db); +dns_view_addzone(dns_view_t *view, dns_zone_t *zone); /* - * Add zone database 'db' to 'view'. - * - * Note: - * - * WARNING! THIS ROUTINE WILL PROBABLY GO AWAY. - * - * Adding/removing zones from a view is not so traumatic as - * adding/removing the cache or changing the resolver, so we - * probably don't need to "freeze" the zone table. + * Add zone 'zone' to 'view'. * * Requires: * * 'view' is a valid, unfrozen view. * - * 'db' is a valid zone database. - * - * Ensures: - * - * The cache database of 'view' is 'cachedb'. */ + * 'zone' is a valid zone. + */ void dns_view_freeze(dns_view_t *view); @@ -311,6 +301,13 @@ dns_view_find(dns_view_t *view, dns_name_t *name, dns_rdatatype_t type, * or an error occurred. */ +dns_view_t * +dns_view_findinlist(dns_viewlist_t *list, const char *name, + dns_rdataclass_t rdclass); +/* + * XXX + */ + ISC_LANG_ENDDECLS #endif /* DNS_VIEW_H */