Added dns_c_view_getname and fixed up output.

This commit is contained in:
James Brister
1999-10-13 17:57:01 +00:00
parent d7d543b0ce
commit 62d223097f
+16 -2
View File
@@ -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);
}