00001 #ifndef QEMU_AUDIO_PT_INT_H
00002 #define QEMU_AUDIO_PT_INT_H
00003
00004 #include <pthread.h>
00005
00006 struct audio_pt {
00007 const char *drv;
00008 pthread_t thread;
00009 pthread_cond_t cond;
00010 pthread_mutex_t mutex;
00011 };
00012
00013 int audio_pt_init (struct audio_pt *, void *(*) (void *), void *,
00014 const char *, const char *);
00015 int audio_pt_fini (struct audio_pt *, const char *);
00016 int audio_pt_lock (struct audio_pt *, const char *);
00017 int audio_pt_unlock (struct audio_pt *, const char *);
00018 int audio_pt_wait (struct audio_pt *, const char *);
00019 int audio_pt_unlock_and_signal (struct audio_pt *, const char *);
00020 int audio_pt_join (struct audio_pt *, void **, const char *);
00021
00022 #endif