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

@ -47,6 +47,9 @@ typedef struct _snd_ctl_ops {
int (*set_power_state)(snd_ctl_t *handle, unsigned int state);
int (*get_power_state)(snd_ctl_t *handle, unsigned int *state);
int (*read)(snd_ctl_t *handle, snd_ctl_event_t *event);
int (*poll_descriptors_count)(snd_ctl_t *handle);
int (*poll_descriptors)(snd_ctl_t *handle, struct pollfd *pfds, unsigned int space);
int (*poll_revents)(snd_ctl_t *handle, struct pollfd *pfds, unsigned int nfds, unsigned short *revents);
} snd_ctl_ops_t;