]> www.infradead.org Git - users/dwmw2/qemu.git/commitdiff
audio: Remove AudioState from "qemu/typedefs.h"
authorPhilippe Mathieu-Daudé <philmd@redhat.com>
Fri, 11 Jan 2019 14:08:53 +0000 (15:08 +0100)
committerThomas Huth <thuth@redhat.com>
Tue, 22 Jan 2019 04:14:33 +0000 (05:14 +0100)
Files requiring AudioState already include "audio_int.h".

To clean "qemu/typedefs.h", move the declaration to "audio_int.h"
(removing the forward declaration).

Signed-off-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Signed-off-by: Thomas Huth <thuth@redhat.com>
audio/audio_int.h
include/qemu/typedefs.h

index 244b454012c0f6ebe9185a2e1309821483a8d83b..6c451b995ccc34f4cdf9af19d5ca49268a2f73b8 100644 (file)
@@ -191,7 +191,7 @@ struct SWVoiceCap {
     QLIST_ENTRY (SWVoiceCap) entries;
 };
 
-struct AudioState {
+typedef struct AudioState {
     struct audio_driver *drv;
     void *drv_opaque;
 
@@ -203,7 +203,7 @@ struct AudioState {
     int nb_hw_voices_out;
     int nb_hw_voices_in;
     int vm_running;
-};
+} AudioState;
 
 extern const struct mixeng_volume nominal_volume;
 
index d5de58cad115cff7d2b2352a6000cf8bc9940279..1ea03d84eea60cc6cdd9a7ea0566104e32dcb4ee 100644 (file)
@@ -8,7 +8,6 @@
 typedef struct AdapterInfo AdapterInfo;
 typedef struct AddressSpace AddressSpace;
 typedef struct AioContext AioContext;
-typedef struct AudioState AudioState;
 typedef struct BdrvDirtyBitmap BdrvDirtyBitmap;
 typedef struct BdrvDirtyBitmapIter BdrvDirtyBitmapIter;
 typedef struct BlockBackend BlockBackend;