Lines Matching defs:iterator

168 static isc_result_t	dbiterator_first(dns_dbiterator_t *iterator);
169 static isc_result_t dbiterator_last(dns_dbiterator_t *iterator);
170 static isc_result_t dbiterator_seek(dns_dbiterator_t *iterator,
172 static isc_result_t dbiterator_prev(dns_dbiterator_t *iterator);
173 static isc_result_t dbiterator_next(dns_dbiterator_t *iterator);
174 static isc_result_t dbiterator_current(dns_dbiterator_t *iterator,
177 static isc_result_t dbiterator_pause(dns_dbiterator_t *iterator);
178 static isc_result_t dbiterator_origin(dns_dbiterator_t *iterator,
194 static isc_result_t rdatasetiter_first(dns_rdatasetiter_t *iterator);
195 static isc_result_t rdatasetiter_next(dns_rdatasetiter_t *iterator);
196 static void rdatasetiter_current(dns_rdatasetiter_t *iterator,
1126 sdb_rdatasetiter_t *iterator;
1133 iterator = isc_mem_get(db->mctx, sizeof(sdb_rdatasetiter_t));
1134 if (iterator == NULL)
1137 iterator->common.magic = DNS_RDATASETITER_MAGIC;
1138 iterator->common.methods = &rdatasetiter_methods;
1139 iterator->common.db = db;
1140 iterator->common.node = NULL;
1141 attachnode(db, node, &iterator->common.node);
1142 iterator->common.version = version;
1143 iterator->common.now = now;
1145 *iteratorp = (dns_rdatasetiter_t *)iterator;
1437 dbiterator_first(dns_dbiterator_t *iterator) {
1438 sdb_dbiterator_t *sdbiter = (sdb_dbiterator_t *)iterator;
1448 dbiterator_last(dns_dbiterator_t *iterator) {
1449 sdb_dbiterator_t *sdbiter = (sdb_dbiterator_t *)iterator;
1459 dbiterator_seek(dns_dbiterator_t *iterator, dns_name_t *name) {
1460 sdb_dbiterator_t *sdbiter = (sdb_dbiterator_t *)iterator;
1472 dbiterator_prev(dns_dbiterator_t *iterator) {
1473 sdb_dbiterator_t *sdbiter = (sdb_dbiterator_t *)iterator;
1483 dbiterator_next(dns_dbiterator_t *iterator) {
1484 sdb_dbiterator_t *sdbiter = (sdb_dbiterator_t *)iterator;
1494 dbiterator_current(dns_dbiterator_t *iterator, dns_dbnode_t **nodep,
1497 sdb_dbiterator_t *sdbiter = (sdb_dbiterator_t *)iterator;
1499 attachnode(iterator->db, sdbiter->current, nodep);
1506 dbiterator_pause(dns_dbiterator_t *iterator) {
1507 UNUSED(iterator);
1512 dbiterator_origin(dns_dbiterator_t *iterator, dns_name_t *name) {
1513 UNUSED(iterator);
1531 rdatasetiter_first(dns_rdatasetiter_t *iterator) {
1532 sdb_rdatasetiter_t *sdbiterator = (sdb_rdatasetiter_t *)iterator;
1533 dns_sdbnode_t *sdbnode = (dns_sdbnode_t *)iterator->node;
1542 rdatasetiter_next(dns_rdatasetiter_t *iterator) {
1543 sdb_rdatasetiter_t *sdbiterator = (sdb_rdatasetiter_t *)iterator;
1553 rdatasetiter_current(dns_rdatasetiter_t *iterator, dns_rdataset_t *rdataset) {
1554 sdb_rdatasetiter_t *sdbiterator = (sdb_rdatasetiter_t *)iterator;
1556 list_tordataset(sdbiterator->current, iterator->db, iterator->node,