Lines Matching defs:zone
27 #include <dns/zone.h>
41 count_zone(dns_zone_t *zone, void *uap) {
44 UNUSED(zone);
51 load_done(dns_zt_t *zt, dns_zone_t *zone, isc_task_t *task) {
55 UNUSED(zone);
98 atf_tc_set_md_var(tc, "descr", "apply a function to a zone table");
102 dns_zone_t *zone = NULL;
111 result = dns_test_makezone("foo", &zone, NULL, ISC_TRUE);
114 view = dns_zone_getview(zone);
122 /* These steps are necessary so the zone can be detached properly */
125 result = dns_test_managezone(zone);
127 dns_test_releasezone(zone);
132 dns_zone_detach(&zone);
139 atf_tc_set_md_var(tc, "descr", "asynchronous zone load");
143 dns_zone_t *zone = NULL;
155 result = dns_test_makezone("foo", &zone, NULL, ISC_TRUE);
160 result = dns_test_managezone(zone);
163 view = dns_zone_getview(zone);
166 ATF_CHECK(!dns__zone_loadpending(zone));
168 dns_zone_setfile(zone, "testdata/zt/zone1.db");
170 args.arg1 = zone;
175 while (dns__zone_loadpending(zone) && i++ < 5000)
179 /* The zone should now be loaded; test it */
180 result = dns_zone_getdb(zone, &db);
186 dns_test_releasezone(zone);
189 dns_zone_detach(&zone);
197 atf_tc_set_md_var(tc, "descr", "asynchronous zone table load");