]> git.ipfire.org Git - thirdparty/qemu.git/blobdiff - hw/9pfs/virtio-9p.h
Move QOM typedefs and add missing includes
[thirdparty/qemu.git] / hw / 9pfs / virtio-9p.h
index e763da2c02bfa824be1f6f6a5b44b02afcfb28bc..6dd945ecda8f12e17026e1d76c10e726a275bf9f 100644 (file)
@@ -4,15 +4,16 @@
 #include "standard-headers/linux/virtio_9p.h"
 #include "hw/virtio/virtio.h"
 #include "9p.h"
+#include "qom/object.h"
 
-typedef struct V9fsVirtioState
-{
+struct V9fsVirtioState {
     VirtIODevice parent_obj;
     VirtQueue *vq;
     size_t config_size;
     VirtQueueElement *elems[MAX_REQ];
     V9fsState state;
-} V9fsVirtioState;
+};
+typedef struct V9fsVirtioState V9fsVirtioState;
 
 #define TYPE_VIRTIO_9P "virtio-9p-device"
 #define VIRTIO_9P(obj) \