mirror of
https://github.com/isc-projects/bind9.git
synced 2026-05-28 04:34:54 -04:00
dbtable -> zonetable conversion.
add dns_view_addzone() declaration. remove dns_view_addzonedb() declaration. add dns_view_findinlist() declaration.
This commit is contained in:
parent
66912d1625
commit
800b03baba
1 changed files with 13 additions and 16 deletions
|
|
@ -67,6 +67,7 @@
|
|||
|
||||
#include <dns/types.h>
|
||||
#include <dns/result.h>
|
||||
#include <dns/zt.h>
|
||||
|
||||
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 */
|
||||
|
|
|
|||
Loading…
Reference in a new issue