@@ -49,25 +49,25 @@ struct reftable_ref_record {
49
49
50
50
/* Returns the first hash, or NULL if `rec` is not of type
51
51
* REFTABLE_REF_VAL1 or REFTABLE_REF_VAL2. */
52
- uint8_t * reftable_ref_record_val1 (struct reftable_ref_record * rec );
52
+ uint8_t * reftable_ref_record_val1 (const struct reftable_ref_record * rec );
53
53
54
54
/* Returns the second hash, or NULL if `rec` is not of type
55
55
* REFTABLE_REF_VAL2. */
56
- uint8_t * reftable_ref_record_val2 (struct reftable_ref_record * rec );
56
+ uint8_t * reftable_ref_record_val2 (const struct reftable_ref_record * rec );
57
57
58
58
/* returns whether 'ref' represents a deletion */
59
59
int reftable_ref_record_is_deletion (const struct reftable_ref_record * ref );
60
60
61
61
/* prints a reftable_ref_record onto stdout. Useful for debugging. */
62
- void reftable_ref_record_print (struct reftable_ref_record * ref ,
62
+ void reftable_ref_record_print (const struct reftable_ref_record * ref ,
63
63
uint32_t hash_id );
64
64
65
65
/* frees and nulls all pointer values inside `ref`. */
66
66
void reftable_ref_record_release (struct reftable_ref_record * ref );
67
67
68
68
/* returns whether two reftable_ref_records are the same. Useful for testing. */
69
- int reftable_ref_record_equal (struct reftable_ref_record * a ,
70
- struct reftable_ref_record * b , int hash_size );
69
+ int reftable_ref_record_equal (const struct reftable_ref_record * a ,
70
+ const struct reftable_ref_record * b , int hash_size );
71
71
72
72
/* reftable_log_record holds a reflog entry */
73
73
struct reftable_log_record {
@@ -104,8 +104,8 @@ int reftable_log_record_is_deletion(const struct reftable_log_record *log);
104
104
void reftable_log_record_release (struct reftable_log_record * log );
105
105
106
106
/* returns whether two records are equal. Useful for testing. */
107
- int reftable_log_record_equal (struct reftable_log_record * a ,
108
- struct reftable_log_record * b , int hash_size );
107
+ int reftable_log_record_equal (const struct reftable_log_record * a ,
108
+ const struct reftable_log_record * b , int hash_size );
109
109
110
110
/* dumps a reftable_log_record on stdout, for debugging/testing. */
111
111
void reftable_log_record_print (struct reftable_log_record * log ,
0 commit comments