added full async interface to timer API

- added snd_async_add_timer_handler and snd_async_handler_get_timer functions
- added async command to test/timer.c
This commit is contained in:
Jaroslav Kysela 2005-05-11 12:18:51 +00:00
parent a022bc1fbc
commit 8ec3e4ea6c
7 changed files with 99 additions and 3 deletions

View file

@ -129,13 +129,15 @@ typedef struct sndrv_seq_event snd_seq_event_t;
struct _snd_async_handler {
enum {
SND_ASYNC_HANDLER_GENERIC,
SND_ASYNC_HANDLER_PCM,
SND_ASYNC_HANDLER_CTL,
SND_ASYNC_HANDLER_PCM,
SND_ASYNC_HANDLER_TIMER,
} type;
int fd;
union {
snd_pcm_t *pcm;
snd_ctl_t *ctl;
snd_pcm_t *pcm;
snd_timer_t *timer;
} u;
snd_async_callback_t callback;
void *private_data;