| 17 | #include "reftable-error.h" |
| 18 | |
| 19 | static struct reftable_table_offsets * |
| 20 | table_offsets_for(struct reftable_table *t, uint8_t typ) |
| 21 | { |
| 22 | switch (typ) { |
| 23 | case REFTABLE_BLOCK_TYPE_REF: |
| 24 | return &t->ref_offsets; |
| 25 | case REFTABLE_BLOCK_TYPE_LOG: |
| 26 | return &t->log_offsets; |
| 27 | case REFTABLE_BLOCK_TYPE_OBJ: |
| 28 | return &t->obj_offsets; |
| 29 | } |
| 30 | abort(); |
| 31 | } |
| 32 | |
| 33 | enum reftable_hash reftable_table_hash_id(struct reftable_table *t) |
| 34 | { |
no outgoing calls
no test coverage detected