From 62d223097f962ec2adca4b1a77dd1758a6d3a0ef Mon Sep 17 00:00:00 2001 From: James Brister Date: Wed, 13 Oct 1999 17:57:01 +0000 Subject: [PATCH] Added dns_c_view_getname and fixed up output. --- lib/dns/config/confview.c | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/lib/dns/config/confview.c b/lib/dns/config/confview.c index 62fb40ba29..73a518f758 100644 --- a/lib/dns/config/confview.c +++ b/lib/dns/config/confview.c @@ -257,10 +257,11 @@ dns_c_view_print(isc_log_t *lctx, if (view->allowquery != NULL) { dns_c_printtabs(lctx, fp, indent + 1); fprintf(fp, "allow-query "); - dns_c_ipmatchlist_print(lctx, fp, indent + 1, + dns_c_ipmatchlist_print(lctx, fp, indent + 2, view->allowquery); } - /* XXX rest of view fields */ + + /* XXXJAB rest of view fields */ dns_c_printtabs(lctx, fp, indent); fprintf(fp, "};\n"); @@ -347,3 +348,16 @@ dns_c_view_delete(isc_log_t *lctx, } +isc_result_t +dns_c_view_getname(isc_log_t *lctx, dns_c_view_t *view, const char **retval) +{ + (void) lctx; + + REQUIRE(view != NULL); + REQUIRE(retval != NULL); + + *retval = view->name; + + return (ISC_R_SUCCESS); +} +