ui/vc: move VCChardev declaration at the top
To allow easier refactoring in following patches. Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com> Reviewed-by: Daniel P. Berrangé <berrange@redhat.com> Message-Id: <20230830093843.3531473-13-marcandre.lureau@redhat.com>
This commit is contained in:
parent
6657e41cde
commit
8c63667b25
12
ui/console.c
12
ui/console.c
@ -127,6 +127,12 @@ struct QemuConsole {
|
|||||||
QTAILQ_ENTRY(QemuConsole) next;
|
QTAILQ_ENTRY(QemuConsole) next;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
struct VCChardev {
|
||||||
|
Chardev parent;
|
||||||
|
QemuConsole *console;
|
||||||
|
};
|
||||||
|
typedef struct VCChardev VCChardev;
|
||||||
|
|
||||||
struct DisplayState {
|
struct DisplayState {
|
||||||
QEMUTimer *gui_timer;
|
QEMUTimer *gui_timer;
|
||||||
uint64_t last_update;
|
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"
|
#define TYPE_CHARDEV_VC "chardev-vc"
|
||||||
DECLARE_INSTANCE_CHECKER(VCChardev, VC_CHARDEV,
|
DECLARE_INSTANCE_CHECKER(VCChardev, VC_CHARDEV,
|
||||||
TYPE_CHARDEV_VC)
|
TYPE_CHARDEV_VC)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user