similarity index 100%
rename from audio/audio.h
rename to include/audio/audio.h
@@ -95,6 +95,7 @@ void AUD_log (const char *cap, const char *fmt, ...) GCC_FMT_ATTR(2, 3);
void AUD_register_card (const char *name, QEMUSoundCard *card);
void AUD_remove_card (QEMUSoundCard *card);
+
CaptureVoiceOut *AUD_add_capture(
AudioState *s,
struct audsettings *as,
@@ -111,7 +112,6 @@ SWVoiceOut *AUD_open_out (
audio_callback_fn callback_fn,
struct audsettings *settings
);
-
void AUD_close_out (QEMUSoundCard *card, SWVoiceOut *sw);
size_t AUD_write (SWVoiceOut *sw, const void *pcm_buf, size_t size);
int AUD_get_buffer_size_out (SWVoiceOut *sw);
@@ -26,7 +26,7 @@
#include <alsa/asoundlib.h>
#include "qemu/main-loop.h"
#include "qemu/module.h"
-#include "audio.h"
+#include "audio/audio.h"
#include "trace.h"
#pragma GCC diagnostic ignored "-Waddress"
@@ -23,7 +23,7 @@
*/
#include "qemu/osdep.h"
-#include "audio.h"
+#include "audio/audio.h"
#include "migration/vmstate.h"
#include "monitor/monitor.h"
#include "qemu/timer.h"
@@ -22,7 +22,7 @@
* THE SOFTWARE.
*/
#include "qemu/osdep.h"
-#include "audio.h"
+#include "audio/audio.h"
#include "audio_int.h"
#include "qemu/cutils.h"
#include "qemu/timer.h"
@@ -7,7 +7,7 @@
#include <windows.h>
#include <mmsystem.h>
-#include "audio.h"
+#include "audio/audio.h"
#include "audio_int.h"
#include "audio_win_int.h"
@@ -27,7 +27,7 @@
#include <pthread.h> /* pthread_X */
#include "qemu/module.h"
-#include "audio.h"
+#include "audio/audio.h"
#define AUDIO_CAP "coreaudio"
#include "audio_int.h"
@@ -27,7 +27,7 @@
*/
#include "qemu/osdep.h"
-#include "audio.h"
+#include "audio/audio.h"
#define AUDIO_CAP "dsound"
#include "audio_int.h"
@@ -25,7 +25,7 @@
#include "qemu/osdep.h"
#include "qemu/bswap.h"
#include "qemu/error-report.h"
-#include "audio.h"
+#include "audio/audio.h"
#define AUDIO_CAP "mixeng"
#include "audio_int.h"
@@ -25,7 +25,7 @@
#include "qemu/osdep.h"
#include "qemu/host-utils.h"
#include "qemu/module.h"
-#include "audio.h"
+#include "audio/audio.h"
#include "qemu/timer.h"
#define AUDIO_CAP "noaudio"
@@ -28,7 +28,7 @@
#include "qemu/main-loop.h"
#include "qemu/module.h"
#include "qemu/host-utils.h"
-#include "audio.h"
+#include "audio/audio.h"
#include "trace.h"
#define AUDIO_CAP "oss"
@@ -3,7 +3,7 @@
#include "qemu/osdep.h"
#include "qemu/module.h"
#include "qemu-common.h"
-#include "audio.h"
+#include "audio/audio.h"
#include "qapi/opts-visitor.h"
#include <pulse/pulseaudio.h>
@@ -26,7 +26,7 @@
#include <SDL.h>
#include <SDL_thread.h>
#include "qemu/module.h"
-#include "audio.h"
+#include "audio/audio.h"
#ifndef _WIN32
#ifdef __sun__
@@ -25,7 +25,7 @@
#include "ui/qemu-spice.h"
#define AUDIO_CAP "spice"
-#include "audio.h"
+#include "audio/audio.h"
#include "audio_int.h"
#if SPICE_INTERFACE_PLAYBACK_MAJOR > 1 || SPICE_INTERFACE_PLAYBACK_MINOR >= 3
@@ -27,7 +27,7 @@
#include "qemu/module.h"
#include "qemu/timer.h"
#include "qapi/opts-visitor.h"
-#include "audio.h"
+#include "audio/audio.h"
#define AUDIO_CAP "wav"
#include "audio_int.h"
@@ -2,7 +2,7 @@
#include "monitor/monitor.h"
#include "qapi/error.h"
#include "qemu/error-report.h"
-#include "audio.h"
+#include "audio/audio.h"
typedef struct {
FILE *f;
@@ -1927,6 +1927,7 @@ M: Gerd Hoffmann <kraxel@redhat.com>
S: Maintained
F: audio/
F: hw/audio/
+F: include/audio/
F: include/hw/audio/
F: tests/qtest/ac97-test.c
F: tests/qtest/es1370-test.c
The 'audio/audio.h' header is consumed by the hardware models: $ git grep -l audio/audio.h hw/ hw/arm/omap2.c hw/arm/palm.c hw/arm/spitz.c hw/arm/z2.c hw/audio/ac97.c hw/audio/adlib.c hw/audio/cs4231a.c hw/audio/es1370.c hw/audio/gus.c hw/audio/hda-codec.c hw/audio/lm4549.c hw/audio/lm4549.h hw/audio/marvell_88w8618.c hw/audio/milkymist-ac97.c hw/audio/pcspk.c hw/audio/sb16.c hw/audio/wm8750.c hw/core/qdev-properties-system.c hw/input/tsc210x.c hw/mips/mips_fulong2e.c hw/usb/dev-audio.c Move it to the public include/ directory. Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org> --- {audio => include/audio}/audio.h | 2 +- audio/alsaaudio.c | 2 +- audio/audio.c | 2 +- audio/audio_legacy.c | 2 +- audio/audio_win_int.c | 2 +- audio/coreaudio.c | 2 +- audio/dsoundaudio.c | 2 +- audio/mixeng.c | 2 +- audio/noaudio.c | 2 +- audio/ossaudio.c | 2 +- audio/paaudio.c | 2 +- audio/sdlaudio.c | 2 +- audio/spiceaudio.c | 2 +- audio/wavaudio.c | 2 +- audio/wavcapture.c | 2 +- MAINTAINERS | 1 + 16 files changed, 16 insertions(+), 15 deletions(-) rename {audio => include/audio}/audio.h (100%)