Skip to content

Commit

Permalink
qom/object: Move Object typedef to 'qemu/typedefs.h'
Browse files Browse the repository at this point in the history
We use the Object type all over the place.
Forward declare it in "qemu/typedefs.h".

Signed-off-by: Philippe Mathieu-Daudé <[email protected]>
Message-Id: <[email protected]>
Signed-off-by: Paolo Bonzini <[email protected]>
  • Loading branch information
philmd authored and bonzini committed Jun 10, 2020
1 parent ce8540f commit ca27b5e
Show file tree
Hide file tree
Showing 9 changed files with 1 addition and 12 deletions.
1 change: 0 additions & 1 deletion hw/block/vhost-user-blk.c
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
#include "qapi/error.h"
#include "qemu/error-report.h"
#include "qemu/cutils.h"
#include "qom/object.h"
#include "hw/qdev-core.h"
#include "hw/qdev-properties.h"
#include "hw/virtio/vhost.h"
Expand Down
1 change: 0 additions & 1 deletion hw/pci-host/pam.c
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@
*/

#include "qemu/osdep.h"
#include "qom/object.h"
#include "hw/pci-host/pam.h"

void init_pam(DeviceState *dev, MemoryRegion *ram_memory,
Expand Down
1 change: 0 additions & 1 deletion hw/scsi/vhost-user-scsi.c
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
#include "qemu/osdep.h"
#include "qapi/error.h"
#include "qemu/error-report.h"
#include "qom/object.h"
#include "hw/fw-path-provider.h"
#include "hw/qdev-core.h"
#include "hw/qdev-properties.h"
Expand Down
3 changes: 0 additions & 3 deletions include/hw/display/edid.h
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
#ifndef EDID_H
#define EDID_H

#include "qom/object.h"
#include "hw/qdev-properties.h"

typedef struct qemu_edid_info {
const char *vendor; /* http://www.uefi.org/pnp_id_list */
const char *name;
Expand Down
1 change: 1 addition & 0 deletions include/qemu/typedefs.h
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ typedef struct NetFilterState NetFilterState;
typedef struct NICInfo NICInfo;
typedef struct NodeInfo NodeInfo;
typedef struct NumaNodeMem NumaNodeMem;
typedef struct Object Object;
typedef struct ObjectClass ObjectClass;
typedef struct PCIBridge PCIBridge;
typedef struct PCIBus PCIBus;
Expand Down
2 changes: 0 additions & 2 deletions include/qom/object.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,6 @@
struct TypeImpl;
typedef struct TypeImpl *Type;

typedef struct Object Object;

typedef struct TypeInfo TypeInfo;

typedef struct InterfaceClass InterfaceClass;
Expand Down
2 changes: 0 additions & 2 deletions include/qom/qom-qobject.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,6 @@
#ifndef QEMU_QOM_QOBJECT_H
#define QEMU_QOM_QOBJECT_H

#include "qom/object.h"

/*
* object_property_get_qobject:
* @obj: the object
Expand Down
1 change: 0 additions & 1 deletion include/sysemu/sysemu.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
#include "qemu/timer.h"
#include "qemu/notify.h"
#include "qemu/uuid.h"
#include "qom/object.h"

/* vl.c */

Expand Down
1 change: 0 additions & 1 deletion stubs/qmp_memory_device.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
#include "qemu/osdep.h"
#include "qom/object.h"
#include "hw/mem/memory-device.h"

MemoryDeviceInfoList *qmp_memory_device_list(void)
Expand Down

0 comments on commit ca27b5e

Please sign in to comment.