On Tue, Mar 17, 2026 at 12:50:28PM +0400, Marc-André Lureau wrote: > Replace the type-checking chain in qemu_console_get_label() (using > QEMU_IS_GRAPHIC_CONSOLE/QEMU_IS_TEXT_CONSOLE) with a QemuConsoleClass > virtual method, allowing each console subclass to provide its own > get_label implementation. > > Signed-off-by: Marc-André Lureau <[email protected]> > --- > include/ui/console.h | 2 + > ui/console-priv.h | 1 - > ui/console-vc-stubs.c | 6 --- > ui/console-vc.c | 12 ++++-- > ui/console.c | 101 > +++++++++++++++++++++++++++----------------------- > 5 files changed, 65 insertions(+), 57 deletions(-)
Reviewed-by: Daniel P. Berrangé <[email protected]> With regards, Daniel -- |: https://berrange.com ~~ https://hachyderm.io/@berrange :| |: https://libvirt.org ~~ https://entangle-photo.org :| |: https://pixelfed.art/berrange ~~ https://fstop138.berrange.com :|
