diff options
author | Patrick Steinhardt <ps@pks.im> | 2024-01-03 07:22:26 +0100 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2024-01-03 18:54:20 +0100 |
commit | 88f59d9e310799b2da9d6ea0bd98ab325f515c9e (patch) | |
tree | 3fbd300b69e6d753b613fe8586fcd1a6bb85ca5c /reftable/reftable-record.h | |
parent | reftable/writer: fix index corruption when writing multiple indices (diff) | |
download | git-88f59d9e310799b2da9d6ea0bd98ab325f515c9e.tar.xz git-88f59d9e310799b2da9d6ea0bd98ab325f515c9e.zip |
reftable/record: constify some parts of the interface
We're about to convert reftable records to stop storing their object IDs
as allocated hashes. Prepare for this refactoring by constifying some
parts of the interface that will be impacted by this.
Signed-off-by: Patrick Steinhardt <ps@pks.im>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to '')
-rw-r--r-- | reftable/reftable-record.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/reftable/reftable-record.h b/reftable/reftable-record.h index 67104f8fbf..f7eb2d6015 100644 --- a/reftable/reftable-record.h +++ b/reftable/reftable-record.h @@ -49,11 +49,11 @@ struct reftable_ref_record { /* Returns the first hash, or NULL if `rec` is not of type * REFTABLE_REF_VAL1 or REFTABLE_REF_VAL2. */ -uint8_t *reftable_ref_record_val1(const struct reftable_ref_record *rec); +const unsigned char *reftable_ref_record_val1(const struct reftable_ref_record *rec); /* Returns the second hash, or NULL if `rec` is not of type * REFTABLE_REF_VAL2. */ -uint8_t *reftable_ref_record_val2(const struct reftable_ref_record *rec); +const unsigned char *reftable_ref_record_val2(const struct reftable_ref_record *rec); /* returns whether 'ref' represents a deletion */ int reftable_ref_record_is_deletion(const struct reftable_ref_record *ref); |