qemu with hax to log dma reads & writes jcs.org/2018/11/12/vfio

qom/object: Move Object typedef to 'qemu/typedefs.h'

We use the Object type all over the place.
Forward declare it in "qemu/typedefs.h".

Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Message-Id: <20200504115656.6045-2-f4bug@amsat.org>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>

authored by

Philippe Mathieu-Daudé and committed by
Paolo Bonzini
ca27b5eb ce8540fd

+1 -12
-1
hw/block/vhost-user-blk.c
··· 20 20 #include "qapi/error.h" 21 21 #include "qemu/error-report.h" 22 22 #include "qemu/cutils.h" 23 - #include "qom/object.h" 24 23 #include "hw/qdev-core.h" 25 24 #include "hw/qdev-properties.h" 26 25 #include "hw/virtio/vhost.h"
-1
hw/pci-host/pam.c
··· 28 28 */ 29 29 30 30 #include "qemu/osdep.h" 31 - #include "qom/object.h" 32 31 #include "hw/pci-host/pam.h" 33 32 34 33 void init_pam(DeviceState *dev, MemoryRegion *ram_memory,
-1
hw/scsi/vhost-user-scsi.c
··· 18 18 #include "qemu/osdep.h" 19 19 #include "qapi/error.h" 20 20 #include "qemu/error-report.h" 21 - #include "qom/object.h" 22 21 #include "hw/fw-path-provider.h" 23 22 #include "hw/qdev-core.h" 24 23 #include "hw/qdev-properties.h"
-3
include/hw/display/edid.h
··· 1 1 #ifndef EDID_H 2 2 #define EDID_H 3 3 4 - #include "qom/object.h" 5 - #include "hw/qdev-properties.h" 6 - 7 4 typedef struct qemu_edid_info { 8 5 const char *vendor; /* http://www.uefi.org/pnp_id_list */ 9 6 const char *name;
+1
include/qemu/typedefs.h
··· 76 76 typedef struct NICInfo NICInfo; 77 77 typedef struct NodeInfo NodeInfo; 78 78 typedef struct NumaNodeMem NumaNodeMem; 79 + typedef struct Object Object; 79 80 typedef struct ObjectClass ObjectClass; 80 81 typedef struct PCIBridge PCIBridge; 81 82 typedef struct PCIBus PCIBus;
-2
include/qom/object.h
··· 20 20 struct TypeImpl; 21 21 typedef struct TypeImpl *Type; 22 22 23 - typedef struct Object Object; 24 - 25 23 typedef struct TypeInfo TypeInfo; 26 24 27 25 typedef struct InterfaceClass InterfaceClass;
-2
include/qom/qom-qobject.h
··· 13 13 #ifndef QEMU_QOM_QOBJECT_H 14 14 #define QEMU_QOM_QOBJECT_H 15 15 16 - #include "qom/object.h" 17 - 18 16 /* 19 17 * object_property_get_qobject: 20 18 * @obj: the object
-1
include/sysemu/sysemu.h
··· 5 5 #include "qemu/timer.h" 6 6 #include "qemu/notify.h" 7 7 #include "qemu/uuid.h" 8 - #include "qom/object.h" 9 8 10 9 /* vl.c */ 11 10
-1
stubs/qmp_memory_device.c
··· 1 1 #include "qemu/osdep.h" 2 - #include "qom/object.h" 3 2 #include "hw/mem/memory-device.h" 4 3 5 4 MemoryDeviceInfoList *qmp_memory_device_list(void)