mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2025-10-29 05:40:25 -04:00
Another API cleanups.
Added setup functions for rawmidi and timer interfaces.
This commit is contained in:
parent
40fd003a4d
commit
986c1500d2
4 changed files with 25 additions and 0 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue