Lines Matching defs:rbt
23 #include <dns/rbt.h>
175 t1_add(char *name, dns_rbt_t *rbt, isc_mem_t *mctx, isc_result_t *dns_result) {
184 *dns_result = dns_rbt_addname(rbt, dns_name, dns_name);
201 t1_delete(char *name, dns_rbt_t *rbt, isc_mem_t *mctx,
210 *dns_result = dns_rbt_deletename(rbt, dns_name,
223 t1_search(char *name, dns_rbt_t *rbt, isc_mem_t *mctx,
238 *dns_result = dns_rbt_findname(rbt, dns_searchname, 0,
254 rbt_init(char *filename, dns_rbt_t **rbt, isc_mem_t *mctx) {
266 dns_result = dns_rbt_create(mctx, delete_name, mctx, rbt);
285 t_info("adding name %s to the rbt\n", p);
287 rval = t1_add(p, *rbt, mctx, &dns_result);
290 dns_rbt_destroy(rbt);
307 dns_rbt_t *rbt;
346 rbt = NULL;
347 if (rbt_init(filename, &rbt, mctx) != 0) {
363 dns_result = dns_rbt_addname(rbt, dns_name, dns_name);
370 rval = t1_search(testname, rbt, mctx,
398 rval = t1_delete(testname, rbt, mctx, &dns_result);
401 rval = t1_search(testname, rbt, mctx,
421 rval = t1_search(testname, rbt, mctx, &dns_result);
434 dns_rbt_destroy(&rbt);
504 static const char *a1 = "dns_rbt_create creates a rbt and returns "
604 t9_walkchain(dns_rbtnodechain_t *chain, dns_rbt_t *rbt) {
624 dns_result = dns_rbtnodechain_first(chain, rbt,
756 dns_rbt_t *rbt;
804 rbt = NULL;
805 if (rbt_init(dbfile, &rbt, mctx)) {
838 dns_result = dns_rbt_findnode(rbt, dns_fixedname_name(&dns_findname),
872 dns_result = dns_rbt_findnode(rbt, dns_fixedname_name(&dns_findname),
906 dns_result = dns_rbtnodechain_first(&chain, rbt,
921 dns_result = dns_rbtnodechain_last(&chain, rbt,
936 nfails += t9_walkchain(&chain, rbt);
944 dns_rbt_destroy(&rbt);
1041 dns_rbt_t *rbt;
1092 rbt = NULL;
1093 if (rbt_init(dbfile, &rbt, mctx)) {
1104 dns_result = dns_rbtnodechain_first(&chain, rbt,
1141 dns_rbt_destroy(&rbt);
1215 "dns_rbtnodechain_first(chain, rbt, name, origin) "
1238 dns_rbt_t *rbt;
1289 rbt = NULL;
1290 if (rbt_init(dbfile, &rbt, mctx)) {
1301 dns_result = dns_rbtnodechain_last(&chain, rbt,
1338 dns_rbt_destroy(&rbt);
1414 "dns_rbtnodechain_last(chain, rbt, name, origin) "
1436 dns_rbt_t *rbt;
1481 rbt = NULL;
1482 if (rbt_init(dbfile, &rbt, mctx)) {
1512 dns_result = dns_rbt_findnode(rbt, dns_fixedname_name(&dns_findname),
1546 dns_rbt_destroy(&rbt);
1643 dns_rbt_t *rbt;
1688 rbt = NULL;
1689 if (rbt_init(dbfile, &rbt, mctx)) {
1719 dns_result = dns_rbt_findnode(rbt, dns_fixedname_name(&dns_findname),
1753 dns_rbt_destroy(&rbt);