constness

This commit is contained in:
derselbst 2019-10-10 18:16:13 +02:00
parent c46e910887
commit 0637e7086b
2 changed files with 2 additions and 2 deletions

View file

@ -164,7 +164,7 @@ fluid_mod_get_amount(const fluid_mod_t *mod)
* @return number of modulators.
* Must be > 1 for complex modulator and 1 for unlinked modulator.
*/
unsigned char fluid_get_num_mod(fluid_mod_t *mod)
unsigned char fluid_get_num_mod(const fluid_mod_t *mod)
{
unsigned char count =0;
do

View file

@ -50,7 +50,7 @@ struct _fluid_mod_t
/* bit link of destination in fluidsynth modulators */
#define FLUID_MOD_LINK_DEST (1 << 7) /* Link is bit 7 of destination */
unsigned char fluid_get_num_mod(fluid_mod_t *mod);
unsigned char fluid_get_num_mod(const fluid_mod_t *mod);
int fluid_get_count_mod(const fluid_mod_t *mod);
fluid_mod_t *fluid_get_next_mod(fluid_mod_t *mod);