mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2026-02-07 04:06:06 -05:00
Add external shared object support
- Add external shared object support - Add poll_* internal ops - Allow multiple poll_fds
This commit is contained in:
parent
3c144ca078
commit
36f715c59a
3 changed files with 96 additions and 11 deletions
|
|
@ -665,6 +665,10 @@ int snd_hctl_wait(snd_hctl_t *hctl, int timeout)
|
|||
struct pollfd pfd;
|
||||
int err;
|
||||
err = snd_hctl_poll_descriptors(hctl, &pfd, 1);
|
||||
if (err < 0)
|
||||
return err;
|
||||
if (! err)
|
||||
return 0;
|
||||
assert(err == 1);
|
||||
err = poll(&pfd, 1, timeout);
|
||||
if (err < 0)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue