| 255 | } |
| 256 | |
| 257 | int reftable_iterator_next_ref(struct reftable_iterator *it, |
| 258 | struct reftable_ref_record *ref) |
| 259 | { |
| 260 | struct reftable_record rec = { |
| 261 | .type = REFTABLE_BLOCK_TYPE_REF, |
| 262 | .u = { |
| 263 | .ref = *ref |
| 264 | }, |
| 265 | }; |
| 266 | int err = iterator_next(it, &rec); |
| 267 | *ref = rec.u.ref; |
| 268 | return err; |
| 269 | } |
| 270 | |
| 271 | int reftable_iterator_seek_log_at(struct reftable_iterator *it, |
| 272 | const char *name, uint64_t update_index) |