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:
Jaroslav Kysela 2001-02-14 12:15:03 +00:00
parent c71b72ee27
commit cc956312b3
11 changed files with 82 additions and 7 deletions

View file

@ -84,14 +84,23 @@ int _snd_timer_poll_descriptor(snd_timer_t *handle)
return tmr->fd;
}
int snd_timer_poll_descriptors_count(snd_timer_t *timer, unsigned int *count)
{
assert(timer);
assert(count);
*count = 1;
return 0;
}
int snd_timer_poll_descriptors(snd_timer_t *timer, struct pollfd *pfds, unsigned int space)
{
assert(timer);
if (space >= 1) {
pfds->fd = timer->fd;
pfds->events = POLLIN;
return 1;
}
return 1;
return 0;
}
int snd_timer_next_device(snd_timer_t *handle, snd_timer_id_t * tid)