[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 02/13] qdev-core: remove DeviceListener from typedefs.h
From: |
Paolo Bonzini |
Subject: |
[PATCH 02/13] qdev-core: remove DeviceListener from typedefs.h |
Date: |
Thu, 2 May 2024 17:53:20 +0200 |
It is needed in very few places, which already depend on other parts of
qdev-core.h files. The benefit of having it in typedefs.h is small.
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
---
include/hw/qdev-core.h | 1 +
include/qemu/typedefs.h | 1 -
2 files changed, 1 insertion(+), 1 deletion(-)
diff --git a/include/hw/qdev-core.h b/include/hw/qdev-core.h
index 9228e96c87e..5336728a23f 100644
--- a/include/hw/qdev-core.h
+++ b/include/hw/qdev-core.h
@@ -294,6 +294,7 @@ struct DeviceState {
MemReentrancyGuard mem_reentrancy_guard;
};
+typedef struct DeviceListener DeviceListener;
struct DeviceListener {
void (*realize)(DeviceListener *listener, DeviceState *dev);
void (*unrealize)(DeviceListener *listener, DeviceState *dev);
diff --git a/include/qemu/typedefs.h b/include/qemu/typedefs.h
index 949d3e1daf9..66f0b146c8c 100644
--- a/include/qemu/typedefs.h
+++ b/include/qemu/typedefs.h
@@ -47,7 +47,6 @@ typedef struct CpuInfoFast CpuInfoFast;
typedef struct CPUJumpCache CPUJumpCache;
typedef struct CPUState CPUState;
typedef struct CPUTLBEntryFull CPUTLBEntryFull;
-typedef struct DeviceListener DeviceListener;
typedef struct DeviceState DeviceState;
typedef struct DirtyBitmapSnapshot DirtyBitmapSnapshot;
typedef struct DisplayChangeListener DisplayChangeListener;
--
2.44.0
- [PATCH 00/13] remove some types from typedefs.h, Paolo Bonzini, 2024/05/02
- [PATCH 01/13] fw_cfg: remove useless declarations from typedefs.h, Paolo Bonzini, 2024/05/02
- [PATCH 03/13] numa: remove types from typedefs.h, Paolo Bonzini, 2024/05/02
- [PATCH 05/13] qemu-option: remove QemuOpt from typedefs.h, Paolo Bonzini, 2024/05/02
- [PATCH 06/13] intc: remove PICCommonState from typedefs.h, Paolo Bonzini, 2024/05/02
- [PATCH 02/13] qdev-core: remove DeviceListener from typedefs.h,
Paolo Bonzini <=
- [PATCH 04/13] net: remove AnnounceTimer from typedefs.h, Paolo Bonzini, 2024/05/02
- [PATCH 08/13] migration: remove PostcopyDiscardState from typedefs.h, Paolo Bonzini, 2024/05/02
- [PATCH 09/13] monitor: remove MonitorDef from typedefs.h, Paolo Bonzini, 2024/05/02
- [PATCH 07/13] lockable: remove QemuLockable from typedefs.h, Paolo Bonzini, 2024/05/02
- [PATCH 10/13] qapi/machine: remove types from typedefs.h, Paolo Bonzini, 2024/05/02