Another API cleanups.

Added setup functions for rawmidi and timer interfaces.
This commit is contained in:
Jaroslav Kysela 2000-04-18 15:20:12 +00:00
parent 40fd003a4d
commit 986c1500d2
4 changed files with 25 additions and 0 deletions

View file

@ -136,6 +136,18 @@ int snd_timer_params(snd_timer_t *handle, snd_timer_params_t * params)
return 0;
}
int snd_timer_setup(snd_timer_t *handle, snd_timer_setup_t * setup)
{
snd_timer_t *tmr;
tmr = handle;
if (!tmr || !setup)
return -EINVAL;
if (ioctl(tmr->fd, SND_TIMER_IOCTL_SETUP, setup) < 0)
return -errno;
return 0;
}
int snd_timer_status(snd_timer_t *handle, snd_timer_status_t * status)
{
snd_timer_t *tmr;