move fluid_get_count_mod to fluid_mod.c

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

View file

@ -1480,22 +1480,6 @@ fluid_zone_is_mod_identic(const fluid_mod_t *mod, char *name)
return FALSE;
}
/*
* returns the number of modulators inside a list.
* @param mod, pointer on modulator list.
* @return number of modulators.
*/
int fluid_get_count_mod(const fluid_mod_t *mod)
{
int count =0;
while(mod)
{
count++;
mod = mod->next;
}
return count;
}
/* description of bit flags set in path variable by fluid_check_linked_mod_path()
These flags indicates if a modulator belongs to a linked path.

View file

@ -176,6 +176,22 @@ unsigned char fluid_get_num_mod(fluid_mod_t *mod)
return count;
}
/*
* returns the number of modulators inside a list.
* @param mod, pointer on modulator list.
* @return number of modulators.
*/
int fluid_get_count_mod(const fluid_mod_t *mod)
{
int count =0;
while(mod)
{
count++;
mod = mod->next;
}
return count;
}
/*
* returns next modulator following current modulator.
* If mod is a complex linked modulator all members are skipped