mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2025-10-29 05:40:25 -04:00
Changed behaviour of poll_descriptors function (returns the filled count of fds).
Added poll_descriptors_count functions. Added snd_mixer_elem_count function.
This commit is contained in:
parent
c71b72ee27
commit
cc956312b3
11 changed files with 82 additions and 7 deletions
|
|
@ -83,6 +83,13 @@ int snd_hctl_async(snd_hctl_t *hctl, int sig, pid_t pid)
|
|||
return snd_ctl_async(hctl->ctl, sig, pid);
|
||||
}
|
||||
|
||||
int snd_hctl_poll_descriptors_count(snd_hctl_t *hctl, unsigned int *count)
|
||||
{
|
||||
assert(hctl);
|
||||
assert(count);
|
||||
return snd_ctl_poll_descriptors_count(hctl->ctl, count);
|
||||
}
|
||||
|
||||
int snd_hctl_poll_descriptors(snd_hctl_t *hctl, struct pollfd *pfds, unsigned int space)
|
||||
{
|
||||
assert(hctl);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue