Lines Matching defs:view
41 #include <dns/view.h>
190 * Create a view.
195 dns_view_t *view = NULL;
197 CHECK(dns_view_create(mctx, dns_rdataclass_in, name, &view));
198 *viewp = view;
203 if (view != NULL)
204 dns_view_detach(&view);
210 * 'zonep'. If 'view' is set, add the zone to that view; otherwise, create
211 * a new view for the purpose.
213 * If the created view is going to be needed by the caller subsequently,
214 * then 'keepview' should be set to true; this will prevent the view
216 * detaching the view.
219 dns_test_makezone(const char *name, dns_zone_t **zonep, dns_view_t *view,
228 if (view == NULL)
229 CHECK(dns_view_create(mctx, dns_rdataclass_in, "view", &view));
243 dns_zone_setview(zone, view);
245 dns_zone_setclass(zone, view->rdclass);
246 dns_view_addzone(view, zone);
249 dns_view_detach(&view);
258 if (view != NULL)
259 dns_view_detach(&view);