From: Marc-André Lureau Date: Wed, 30 Aug 2023 09:37:46 +0000 (+0400) Subject: ui/vc: move VCChardev declaration at the top X-Git-Tag: v8.2.0-rc0~142^2~40 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=8c63667b25cf377fa6ef46149ac55dc7e9e553db;p=thirdparty%2Fqemu.git ui/vc: move VCChardev declaration at the top To allow easier refactoring in following patches. Signed-off-by: Marc-André Lureau Reviewed-by: Daniel P. Berrangé Message-Id: <20230830093843.3531473-13-marcandre.lureau@redhat.com> --- diff --git a/ui/console.c b/ui/console.c index f97db295f6c..5c8e3ad1df1 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)