| 1191 | } |
| 1192 | |
| 1193 | int reftable_record_cmp(struct reftable_record *a, struct reftable_record *b, |
| 1194 | int *cmp) |
| 1195 | { |
| 1196 | if (a->type != b->type) |
| 1197 | return -1; |
| 1198 | *cmp = reftable_record_vtable(a)->cmp(reftable_record_data(a), |
| 1199 | reftable_record_data(b)); |
| 1200 | return 0; |
| 1201 | } |
| 1202 | |
| 1203 | int reftable_record_equal(struct reftable_record *a, struct reftable_record *b, uint32_t hash_size) |
| 1204 | { |