| 589 | } |
| 590 | |
| 591 | static int block_iter_seek_void(void *it, struct reftable_record *want) |
| 592 | { |
| 593 | struct reftable_buf buf = REFTABLE_BUF_INIT; |
| 594 | struct block_iter *bi = it; |
| 595 | int err; |
| 596 | |
| 597 | if (bi->block->block_type != want->type) |
| 598 | return REFTABLE_API_ERROR; |
| 599 | |
| 600 | err = reftable_record_key(want, &buf); |
| 601 | if (err < 0) |
| 602 | goto out; |
| 603 | |
| 604 | err = block_iter_seek_key(it, &buf); |
| 605 | if (err < 0) |
| 606 | goto out; |
| 607 | |
| 608 | err = 0; |
| 609 | |
| 610 | out: |
| 611 | reftable_buf_release(&buf); |
| 612 | return err; |
| 613 | } |
| 614 | |
| 615 | static int block_iter_next_void(void *it, struct reftable_record *rec) |
| 616 | { |
nothing calls this directly
no test coverage detected