mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2025-10-31 22:25:35 -04:00
add snd_seq_unset_bit()
Added snd_seq_unset_bit() to alsa sequencer API Signed-off-by: Aldrin Martoq <amartoq@dcc.uchile.cl>
This commit is contained in:
parent
0e5b2a006a
commit
882f93ac26
2 changed files with 9 additions and 0 deletions
|
|
@ -575,6 +575,7 @@ int snd_seq_remove_events(snd_seq_t *handle, snd_seq_remove_events_t *info);
|
|||
*/
|
||||
|
||||
void snd_seq_set_bit(int nr, void *array);
|
||||
void snd_seq_unset_bit(int nr, void *array);
|
||||
int snd_seq_change_bit(int nr, void *array);
|
||||
int snd_seq_get_bit(int nr, void *array);
|
||||
|
||||
|
|
|
|||
|
|
@ -4662,6 +4662,14 @@ void snd_seq_set_bit(int nr, void *array)
|
|||
((unsigned int *)array)[nr >> 5] |= 1UL << (nr & 31);
|
||||
}
|
||||
|
||||
/**
|
||||
* \brief unset a bit flag
|
||||
*/
|
||||
void snd_seq_unset_bit(int nr, void *array)
|
||||
{
|
||||
((unsigned int *)array)[nr >> 5] &= ~(1UL << (nr & 31));
|
||||
}
|
||||
|
||||
/**
|
||||
* \brief change a bit flag
|
||||
*/
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue