Lines Matching defs:inst
28 create_zone(sample_instance_t * const inst, dns_name_t * const name,
37 REQUIRE(inst != NULL);
41 zone_argv[0] = inst->db_name;
43 CHECK(dns_zone_create(&raw, inst->mctx));
48 CHECK(dns_zonemgr_managezone(inst->zmgr, raw));
51 CHECK(dns_acl_any(inst->mctx, &acl_any));
66 dns_zonemgr_releasezone(inst->zmgr, raw);
76 * Add zone to the view defined in inst->view. This will make the zone visible
80 publish_zone(sample_instance_t *inst, dns_zone_t *zone) {
87 REQUIRE(inst != NULL);
91 result = dns_view_findzone(inst->view, dns_zone_getorigin(zone),
102 } else if (view_in_zone != inst->view) {
105 * inst->view in zone but will not be present
122 run_exclusive_enter(inst, &lock_state);
123 if (inst->view->frozen) {
125 dns_view_thaw(inst->view);
128 dns_zone_setview(zone, inst->view);
129 CHECK(dns_view_addzone(inst->view, zone));
135 dns_view_freeze(inst->view);
136 run_exclusive_exit(inst, lock_state);
171 activate_zone(sample_instance_t *inst, dns_zone_t *raw) {
179 result = publish_zone(inst, raw);