[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 12/67] ui/vc: move VCChardev declaration at the top
From: |
marcandre . lureau |
Subject: |
[PATCH 12/67] ui/vc: move VCChardev declaration at the top |
Date: |
Wed, 30 Aug 2023 13:37:46 +0400 |
From: Marc-André Lureau <marcandre.lureau@redhat.com>
To allow easier refactoring in following patches.
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
---
ui/console.c | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/ui/console.c b/ui/console.c
index 2b8022dfbe..ad6fbb1d0f 100644
--- a/ui/console.c
+++ b/ui/console.c
@@ -127,6 +127,12 @@ struct QemuConsole {
QTAILQ_ENTRY(QemuConsole) next;
};
+struct VCChardev {
+ Chardev parent;
+ QemuConsole *console;
+};
+typedef struct VCChardev VCChardev;
+
struct DisplayState {
QEMUTimer *gui_timer;
uint64_t last_update;
@@ -1051,12 +1057,6 @@ void console_select(unsigned int index)
}
}
-struct VCChardev {
- Chardev parent;
- QemuConsole *console;
-};
-typedef struct VCChardev VCChardev;
-
#define TYPE_CHARDEV_VC "chardev-vc"
DECLARE_INSTANCE_CHECKER(VCChardev, VC_CHARDEV,
TYPE_CHARDEV_VC)
--
2.41.0
- [PATCH 06/67] ui/console: console_select() regardless of have_gfx, (continued)
- [PATCH 06/67] ui/console: console_select() regardless of have_gfx, marcandre . lureau, 2023/08/30
- [PATCH 07/67] ui/console: call dpy_gfx_update() regardless of have_gfx, marcandre . lureau, 2023/08/30
- [PATCH 08/67] ui/console: drop have_gfx, marcandre . lureau, 2023/08/30
- [PATCH 09/67] ui/console: get the DisplayState from new_console(), marcandre . lureau, 2023/08/30
- [PATCH 10/67] ui/console: new_console() cannot fail, marcandre . lureau, 2023/08/30
- [PATCH 11/67] ui/vc: VC always has a DisplayState now, marcandre . lureau, 2023/08/30
- [PATCH 12/67] ui/vc: move VCChardev declaration at the top,
marcandre . lureau <=
- [PATCH 13/67] ui/vc: replace variable with static text attributes default, marcandre . lureau, 2023/08/30
- [PATCH 14/67] ui/vc: fold text_update_xy(), marcandre . lureau, 2023/08/30
- [PATCH 15/67] ui/vc: pass VCCharDev to VC-specific functions, marcandre . lureau, 2023/08/30
- [PATCH 16/67] ui/vc: move VCCharDev specific fields out of QemuConsole, marcandre . lureau, 2023/08/30
- [PATCH 17/67] ui/console: use OBJECT_DEFINE_TYPE for QemuConsole, marcandre . lureau, 2023/08/30
- [PATCH 18/67] ui/console: change new_console() to use object initialization, marcandre . lureau, 2023/08/30
- [PATCH 20/67] ui/console: instantiate a specific console type, marcandre . lureau, 2023/08/30