]> git.proxmox.com Git - mirror_qemu.git/blobdiff - include/chardev/spice.h
Move QOM typedefs and add missing includes
[mirror_qemu.git] / include / chardev / spice.h
index 1f7339b649dc066fb6e138a16187ef44e4e26a7f..5bccc473925a435218a7fa00dc9d0b05f0731b6c 100644 (file)
@@ -3,8 +3,9 @@
 
 #include <spice.h>
 #include "chardev/char-fe.h"
+#include "qom/object.h"
 
-typedef struct SpiceChardev {
+struct SpiceChardev {
     Chardev               parent;
 
     SpiceCharDeviceInstance sin;
@@ -13,7 +14,8 @@ typedef struct SpiceChardev {
     const uint8_t         *datapos;
     int                   datalen;
     QLIST_ENTRY(SpiceChardev) next;
-} SpiceChardev;
+};
+typedef struct SpiceChardev SpiceChardev;
 
 #define TYPE_CHARDEV_SPICE "chardev-spice"
 #define TYPE_CHARDEV_SPICEVMC "chardev-spicevmc"