[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 04/13] net: remove AnnounceTimer from typedefs.h
From: |
Paolo Bonzini |
Subject: |
[PATCH 04/13] net: remove AnnounceTimer from typedefs.h |
Date: |
Thu, 2 May 2024 17:53:22 +0200 |
Exactly nobody needs it there. Place the typedef in the header
that defines the struct.
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
---
include/net/announce.h | 4 ++--
include/qemu/typedefs.h | 1 -
2 files changed, 2 insertions(+), 3 deletions(-)
diff --git a/include/net/announce.h b/include/net/announce.h
index 3d90c83c237..72e7e501f7e 100644
--- a/include/net/announce.h
+++ b/include/net/announce.h
@@ -12,12 +12,12 @@
#include "qapi/qapi-types-net.h"
#include "qemu/timer.h"
-struct AnnounceTimer {
+typedef struct AnnounceTimer {
QEMUTimer *tm;
AnnounceParameters params;
QEMUClockType type;
int round;
-};
+} AnnounceTimer;
/* Returns: update the timer to the next time point */
int64_t qemu_announce_timer_step(AnnounceTimer *timer);
diff --git a/include/qemu/typedefs.h b/include/qemu/typedefs.h
index e0a0bc31e7f..520f421397b 100644
--- a/include/qemu/typedefs.h
+++ b/include/qemu/typedefs.h
@@ -27,7 +27,6 @@ typedef struct AdapterInfo AdapterInfo;
typedef struct AddressSpace AddressSpace;
typedef struct AioContext AioContext;
typedef struct Aml Aml;
-typedef struct AnnounceTimer AnnounceTimer;
typedef struct ArchCPU ArchCPU;
typedef struct BdrvDirtyBitmap BdrvDirtyBitmap;
typedef struct BdrvDirtyBitmapIter BdrvDirtyBitmapIter;
--
2.44.0
- [PATCH 01/13] fw_cfg: remove useless declarations from typedefs.h, (continued)
- [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, 2024/05/02
- [PATCH 04/13] net: remove AnnounceTimer from typedefs.h,
Paolo Bonzini <=
- [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
- [PATCH 11/13] display: remove GraphicHwOps from typedefs.h, Paolo Bonzini, 2024/05/02