Lines Matching defs:sdlziter
673 sdlz_dbiterator_t *sdlziter;
693 sdlziter = isc_mem_get(sdlz->common.mctx, sizeof(sdlz_dbiterator_t));
694 if (sdlziter == NULL)
697 sdlziter->common.methods = &dbiterator_methods;
698 sdlziter->common.db = NULL;
699 dns_db_attach(db, &sdlziter->common.db);
700 sdlziter->common.relative_names = ISC_TF(options & DNS_DB_RELATIVENAMES);
701 sdlziter->common.magic = DNS_DBITERATOR_MAGIC;
702 ISC_LIST_INIT(sdlziter->nodelist);
703 sdlziter->current = NULL;
704 sdlziter->origin = NULL;
712 sdlz->dbdata, sdlziter);
715 dns_dbiterator_t *iter = &sdlziter->common;
720 if (sdlziter->origin != NULL) {
721 ISC_LIST_UNLINK(sdlziter->nodelist, sdlziter->origin, link);
722 ISC_LIST_PREPEND(sdlziter->nodelist, sdlziter->origin, link);
725 *iteratorp = (dns_dbiterator_t *)sdlziter;
1070 sdlz_dbiterator_t *sdlziter = (sdlz_dbiterator_t *)(*iteratorp);
1071 dns_sdlz_db_t *sdlz = (dns_sdlz_db_t *)sdlziter->common.db;
1073 while (!ISC_LIST_EMPTY(sdlziter->nodelist)) {
1075 node = ISC_LIST_HEAD(sdlziter->nodelist);
1076 ISC_LIST_UNLINK(sdlziter->nodelist, node, link);
1080 dns_db_detach(&sdlziter->common.db);
1081 isc_mem_put(sdlz->common.mctx, sdlziter, sizeof(sdlz_dbiterator_t));
1088 sdlz_dbiterator_t *sdlziter = (sdlz_dbiterator_t *)iterator;
1090 sdlziter->current = ISC_LIST_HEAD(sdlziter->nodelist);
1091 if (sdlziter->current == NULL)
1099 sdlz_dbiterator_t *sdlziter = (sdlz_dbiterator_t *)iterator;
1101 sdlziter->current = ISC_LIST_TAIL(sdlziter->nodelist);
1102 if (sdlziter->current == NULL)
1110 sdlz_dbiterator_t *sdlziter = (sdlz_dbiterator_t *)iterator;
1112 sdlziter->current = ISC_LIST_HEAD(sdlziter->nodelist);
1113 while (sdlziter->current != NULL) {
1114 if (dns_name_equal(sdlziter->current->name, name))
1116 sdlziter->current = ISC_LIST_NEXT(sdlziter->current, link);
1123 sdlz_dbiterator_t *sdlziter = (sdlz_dbiterator_t *)iterator;
1125 sdlziter->current = ISC_LIST_PREV(sdlziter->current, link);
1126 if (sdlziter->current == NULL)
1134 sdlz_dbiterator_t *sdlziter = (sdlz_dbiterator_t *)iterator;
1136 sdlziter->current = ISC_LIST_NEXT(sdlziter->current, link);
1137 if (sdlziter->current == NULL)
1147 sdlz_dbiterator_t *sdlziter = (sdlz_dbiterator_t *)iterator;
1149 attachnode(iterator->db, sdlziter->current, nodep);
1151 return (dns_name_copy(sdlziter->current->name, name, NULL));