Add external shared object support

- Add external shared object support
- Add poll_* internal ops
- Allow multiple poll_fds
This commit is contained in:
Takashi Iwai 2005-06-09 17:09:24 +00:00
parent 3c144ca078
commit 36f715c59a
3 changed files with 96 additions and 11 deletions

View file

@ -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)