root / audio / audio_pt_int.h @ 94909d9f
History | View | Annotate | Download (681 Bytes)
1 | ca9cc28c | balrog | #ifndef QEMU_AUDIO_PT_INT_H
|
---|---|---|---|
2 | ca9cc28c | balrog | #define QEMU_AUDIO_PT_INT_H
|
3 | ca9cc28c | balrog | |
4 | ca9cc28c | balrog | #include <pthread.h> |
5 | ca9cc28c | balrog | |
6 | ca9cc28c | balrog | struct audio_pt {
|
7 | ca9cc28c | balrog | const char *drv; |
8 | ca9cc28c | balrog | pthread_t thread; |
9 | ca9cc28c | balrog | pthread_cond_t cond; |
10 | ca9cc28c | balrog | pthread_mutex_t mutex; |
11 | ca9cc28c | balrog | }; |
12 | ca9cc28c | balrog | |
13 | ca9cc28c | balrog | int audio_pt_init (struct audio_pt *, void *(*) (void *), void *, |
14 | ca9cc28c | balrog | const char *, const char *); |
15 | ca9cc28c | balrog | int audio_pt_fini (struct audio_pt *, const char *); |
16 | ca9cc28c | balrog | int audio_pt_lock (struct audio_pt *, const char *); |
17 | ca9cc28c | balrog | int audio_pt_unlock (struct audio_pt *, const char *); |
18 | ca9cc28c | balrog | int audio_pt_wait (struct audio_pt *, const char *); |
19 | ca9cc28c | balrog | int audio_pt_unlock_and_signal (struct audio_pt *, const char *); |
20 | ca9cc28c | balrog | int audio_pt_join (struct audio_pt *, void **, const char *); |
21 | ca9cc28c | balrog | |
22 | ca9cc28c | balrog | #endif /* audio_pt_int.h */ |