mirror of
https://github.com/ultravideo/uvg266.git
synced 2024-11-28 03:34:06 +00:00
Add const and more const
This commit is contained in:
parent
6cda8036c9
commit
5beb23d91c
|
@ -26,7 +26,7 @@
|
||||||
* \param state encoder state
|
* \param state encoder state
|
||||||
* \return the pointer of constraint_t structure
|
* \return the pointer of constraint_t structure
|
||||||
*/
|
*/
|
||||||
void * kvz_init_constraint(encoder_state_t* state, encoder_control_t * encoder) {
|
void * kvz_init_constraint(encoder_state_t* state, const encoder_control_t * const encoder) {
|
||||||
constraint_t* constr = NULL;
|
constraint_t* constr = NULL;
|
||||||
// Allocate the constraint_t strucutre
|
// Allocate the constraint_t strucutre
|
||||||
constr = MALLOC(constraint_t, 1);
|
constr = MALLOC(constraint_t, 1);
|
||||||
|
|
|
@ -34,7 +34,7 @@ typedef struct {
|
||||||
} constraint_t;
|
} constraint_t;
|
||||||
|
|
||||||
|
|
||||||
void * kvz_init_constraint(encoder_state_t* state, encoder_control_t * encoder);
|
void * kvz_init_constraint(encoder_state_t* state, const encoder_control_t * const);
|
||||||
void kvz_constraint_free(encoder_state_t* state);
|
void kvz_constraint_free(encoder_state_t* state);
|
||||||
|
|
||||||
#endif
|
#endif
|
Loading…
Reference in a new issue