Lines Matching refs:sdlzdb
151 #define VALID_SDLZDB(sdlzdb) ((sdlzdb) != NULL && \
152 (sdlzdb)->common.impmagic == SDLZDB_MAGIC)
1248 dns_sdlz_db_t *sdlzdb;
1258 sdlzdb = isc_mem_get(mctx, sizeof(dns_sdlz_db_t));
1259 if (sdlzdb == NULL)
1261 memset(sdlzdb, 0, sizeof(dns_sdlz_db_t));
1264 dns_name_init(&sdlzdb->common.origin, NULL);
1265 result = dns_name_dupwithoffsets(name, mctx, &sdlzdb->common.origin);
1270 result = isc_mutex_init(&sdlzdb->refcnt_lock);
1275 sdlzdb->dlzimp = imp;
1276 sdlzdb->common.methods = &sdlzdb_methods;
1277 sdlzdb->common.attributes = 0;
1278 sdlzdb->common.rdclass = rdclass;
1279 sdlzdb->common.mctx = NULL;
1280 sdlzdb->dbdata = dbdata;
1281 sdlzdb->references = 1;
1284 isc_mem_attach(mctx, &sdlzdb->common.mctx);
1287 sdlzdb->common.magic = DNS_DB_MAGIC;
1288 sdlzdb->common.impmagic = SDLZDB_MAGIC;
1289 *dbp = (dns_db_t *) sdlzdb;
1298 dns_name_free(&sdlzdb->common.origin, mctx);
1300 isc_mem_put(mctx, sdlzdb, sizeof(dns_sdlz_db_t));