qemu/hw/virtio
Eduardo Habkost db1015e92e Move QOM typedefs and add missing includes
Some typedefs and macros are defined after the type check macros.
This makes it difficult to automatically replace their
definitions with OBJECT_DECLARE_TYPE.

Patch generated using:

 $ ./scripts/codeconverter/converter.py -i \
   --pattern=QOMStructTypedefSplit $(git grep -l '' -- '*.[ch]')

which will split "typdef struct { ... } TypedefName"
declarations.

Followed by:

 $ ./scripts/codeconverter/converter.py -i --pattern=MoveSymbols \
    $(git grep -l '' -- '*.[ch]')

which will:
- move the typedefs and #defines above the type check macros
- add missing #include "qom/object.h" lines if necessary

Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
Reviewed-by: Juan Quintela <quintela@redhat.com>
Message-Id: <20200831210740.126168-9-ehabkost@redhat.com>
Reviewed-by: Juan Quintela <quintela@redhat.com>
Message-Id: <20200831210740.126168-10-ehabkost@redhat.com>
Message-Id: <20200831210740.126168-11-ehabkost@redhat.com>
Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
2020-09-09 09:26:43 -04:00
..
Kconfig virtio-mem: Paravirtualized memory hot(un)plug 2020-07-03 07:57:04 -04:00
meson.build meson: convert hw/virtio 2020-08-21 06:30:26 -04:00
trace-events virtio,acpi: features, fixes, cleanups. 2020-07-07 17:37:44 +01:00
trace.h trace: switch position of headers to what Meson requires 2020-08-21 06:18:24 -04:00
vhost-backend.c vhost-vdpa: introduce vhost-vdpa backend 2020-07-07 07:59:51 -04:00
vhost-scsi-pci.c Move QOM typedefs and add missing includes 2020-09-09 09:26:43 -04:00
vhost-stub.c vhost-user: simplify vhost_user_init/vhost_user_cleanup 2019-03-12 21:22:31 -04:00
vhost-user-blk-pci.c Move QOM typedefs and add missing includes 2020-09-09 09:26:43 -04:00
vhost-user-fs-pci.c Move QOM typedefs and add missing includes 2020-09-09 09:26:43 -04:00
vhost-user-fs.c qdev: Unrealize must not fail 2020-05-15 07:08:14 +02:00
vhost-user-input-pci.c Move QOM typedefs and add missing includes 2020-09-09 09:26:43 -04:00
vhost-user-scsi-pci.c Move QOM typedefs and add missing includes 2020-09-09 09:26:43 -04:00
vhost-user-vsock-pci.c Move QOM typedefs and add missing includes 2020-09-09 09:26:43 -04:00
vhost-user-vsock.c virtio: add vhost-user-vsock base device 2020-06-12 10:17:06 -04:00
vhost-user.c hw/virtio/vhost-user:Remove dead assignment in scrub_shadow_regions() 2020-09-01 11:58:32 +02:00
vhost-vdpa.c vhost-vdpa :Fix Coverity CID 1430270 / CID 1420267 2020-07-27 10:28:28 -04:00
vhost-vsock-common.c vhost-vsock: add vhost-vsock-common abstraction 2020-06-12 10:17:06 -04:00
vhost-vsock-pci.c Move QOM typedefs and add missing includes 2020-09-09 09:26:43 -04:00
vhost-vsock.c vhost-vsock: add vhost-vsock-common abstraction 2020-06-12 10:17:06 -04:00
vhost.c vhost: implement vhost_force_iommu method 2020-07-03 07:57:04 -04:00
virtio-9p-pci.c Move QOM typedefs and add missing includes 2020-09-09 09:26:43 -04:00
virtio-balloon-pci.c Move QOM typedefs and add missing includes 2020-09-09 09:26:43 -04:00
virtio-balloon.c virtio-balloon: Replace free page hinting references to 'report' with 'hint' 2020-07-22 07:57:07 -04:00
virtio-blk-pci.c Move QOM typedefs and add missing includes 2020-09-09 09:26:43 -04:00
virtio-bus.c virtio: notify virtqueue via host notifier when available 2019-11-06 06:35:00 -05:00
virtio-crypto-pci.c Move QOM typedefs and add missing includes 2020-09-09 09:26:43 -04:00
virtio-crypto.c qom: Change object_get_canonical_path_component() not to malloc 2020-07-21 16:23:43 +02:00
virtio-input-host-pci.c Move QOM typedefs and add missing includes 2020-09-09 09:26:43 -04:00
virtio-input-pci.c Move QOM typedefs and add missing includes 2020-09-09 09:26:43 -04:00
virtio-iommu-pci.c Move QOM typedefs and add missing includes 2020-09-09 09:26:43 -04:00
virtio-iommu.c virtio-iommu: Fix coverity issue in virtio_iommu_handle_command() 2020-07-13 14:36:08 +01:00
virtio-mem-pci.c virtio-mem-pci: force virtio version 1 2020-07-27 09:38:33 -04:00
virtio-mem-pci.h Move QOM typedefs and add missing includes 2020-09-09 09:26:43 -04:00
virtio-mem.c meson: infrastructure for building emulators 2020-08-21 06:30:17 -04:00
virtio-mmio.c qdev: set properties with device_class_set_props() 2020-01-24 20:59:15 +01:00
virtio-net-pci.c Move QOM typedefs and add missing includes 2020-09-09 09:26:43 -04:00
virtio-pci.c virtio: add Virtio*BusClass sizes 2020-09-02 07:29:26 -04:00
virtio-pci.h Move QOM typedefs and add missing includes 2020-09-09 09:26:43 -04:00
virtio-pmem-pci.c qom: Put name parameter before value / visitor parameter 2020-07-10 15:18:08 +02:00
virtio-pmem-pci.h Move QOM typedefs and add missing includes 2020-09-09 09:26:43 -04:00
virtio-pmem.c qom: Change object_get_canonical_path_component() not to malloc 2020-07-21 16:23:43 +02:00
virtio-rng-pci.c Move QOM typedefs and add missing includes 2020-09-09 09:26:43 -04:00
virtio-rng.c error: Eliminate error_propagate() with Coccinelle, part 1 2020-07-10 15:18:08 +02:00
virtio-scsi-pci.c Move QOM typedefs and add missing includes 2020-09-09 09:26:43 -04:00
virtio-serial-pci.c Move QOM typedefs and add missing includes 2020-09-09 09:26:43 -04:00
virtio.c virtio-pci: fix virtio_pci_queue_enabled() 2020-07-27 11:34:50 -04:00