From 1c1f94984430f5b9e91b01b75be23385122039f6 Mon Sep 17 00:00:00 2001 From: Gerd Hoffmann Date: Wed, 24 Sep 2014 17:05:27 +0200 Subject: console: add graphic_console_set_hwops Add a function to allow display emulations to switch the hwops function pointers. This is useful for devices which have two completely different operation modes. Typical case is the vga compatibility mode vs. native mode in qxl and the upcoming virtio-vga device. Signed-off-by: Gerd Hoffmann --- include/ui/console.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'include/ui') diff --git a/include/ui/console.h b/include/ui/console.h index cde0faf..22ef8ca 100644 --- a/include/ui/console.h +++ b/include/ui/console.h @@ -292,6 +292,9 @@ typedef struct GraphicHwOps { QemuConsole *graphic_console_init(DeviceState *dev, uint32_t head, const GraphicHwOps *ops, void *opaque); +void graphic_console_set_hwops(QemuConsole *con, + const GraphicHwOps *hw_ops, + void *opaque); void graphic_hw_update(QemuConsole *con); void graphic_hw_invalidate(QemuConsole *con); -- cgit v1.1