Lines Matching defs:iterator
560 static isc_result_t rdatasetiter_first(dns_rdatasetiter_t *iterator);
561 static isc_result_t rdatasetiter_next(dns_rdatasetiter_t *iterator);
562 static void rdatasetiter_current(dns_rdatasetiter_t *iterator,
578 static isc_result_t dbiterator_first(dns_dbiterator_t *iterator);
579 static isc_result_t dbiterator_last(dns_dbiterator_t *iterator);
580 static isc_result_t dbiterator_seek(dns_dbiterator_t *iterator,
582 static isc_result_t dbiterator_prev(dns_dbiterator_t *iterator);
583 static isc_result_t dbiterator_next(dns_dbiterator_t *iterator);
584 static isc_result_t dbiterator_current(dns_dbiterator_t *iterator,
587 static isc_result_t dbiterator_pause(dns_dbiterator_t *iterator);
588 static isc_result_t dbiterator_origin(dns_dbiterator_t *iterator,
2751 * Reset iterator state.
5338 rbtdb_rdatasetiter_t *iterator;
5343 iterator = isc_mem_get(rbtdb->common.mctx, sizeof(*iterator));
5344 if (iterator == NULL)
5367 iterator->common.magic = DNS_RDATASETITER_MAGIC;
5368 iterator->common.methods = &rdatasetiter_methods;
5369 iterator->common.db = db;
5370 iterator->common.node = node;
5371 iterator->common.version = (dns_dbversion_t *)rbtversion;
5372 iterator->common.now = now;
5379 iterator->current = NULL;
5383 *iteratorp = (dns_rdatasetiter_t *)iterator;
7454 * Reset iterator state.
7611 rdatasetiter_first(dns_rdatasetiter_t *iterator) {
7612 rbtdb_rdatasetiter_t *rbtiterator = (rbtdb_rdatasetiter_t *)iterator;
7668 rdatasetiter_next(dns_rdatasetiter_t *iterator) {
7669 rbtdb_rdatasetiter_t *rbtiterator = (rbtdb_rdatasetiter_t *)iterator;
7745 rdatasetiter_current(dns_rdatasetiter_t *iterator, dns_rdataset_t *rdataset) {
7746 rbtdb_rdatasetiter_t *rbtiterator = (rbtdb_rdatasetiter_t *)iterator;
7892 dbiterator_first(dns_dbiterator_t *iterator) {
7894 rbtdb_dbiterator_t *rbtdbiter = (rbtdb_dbiterator_t *)iterator;
7895 dns_rbtdb_t *rbtdb = (dns_rbtdb_t *)iterator->db;
7945 dbiterator_last(dns_dbiterator_t *iterator) {
7947 rbtdb_dbiterator_t *rbtdbiter = (rbtdb_dbiterator_t *)iterator;
7948 dns_rbtdb_t *rbtdb = (dns_rbtdb_t *)iterator->db;
7994 dbiterator_seek(dns_dbiterator_t *iterator, dns_name_t *name) {
7996 rbtdb_dbiterator_t *rbtdbiter = (rbtdb_dbiterator_t *)iterator;
7997 dns_rbtdb_t *rbtdb = (dns_rbtdb_t *)iterator->db;
8087 dbiterator_prev(dns_dbiterator_t *iterator) {
8089 rbtdb_dbiterator_t *rbtdbiter = (rbtdb_dbiterator_t *)iterator;
8091 dns_rbtdb_t *rbtdb = (dns_rbtdb_t *)iterator->db;
8132 dbiterator_next(dns_dbiterator_t *iterator) {
8134 rbtdb_dbiterator_t *rbtdbiter = (rbtdb_dbiterator_t *)iterator;
8136 dns_rbtdb_t *rbtdb = (dns_rbtdb_t *)iterator->db;
8175 dbiterator_current(dns_dbiterator_t *iterator, dns_dbnode_t **nodep,
8178 dns_rbtdb_t *rbtdb = (dns_rbtdb_t *)iterator->db;
8179 rbtdb_dbiterator_t *rbtdbiter = (rbtdb_dbiterator_t *)iterator;
8208 if (iterator->cleaning && result == ISC_R_SUCCESS) {
8219 expire_result = expirenode(iterator->db, *nodep, 0);
8239 dbiterator_pause(dns_dbiterator_t *iterator) {
8240 dns_rbtdb_t *rbtdb = (dns_rbtdb_t *)iterator->db;
8241 rbtdb_dbiterator_t *rbtdbiter = (rbtdb_dbiterator_t *)iterator;
8264 dbiterator_origin(dns_dbiterator_t *iterator, dns_name_t *name) {
8265 rbtdb_dbiterator_t *rbtdbiter = (rbtdb_dbiterator_t *)iterator;