diff options
author | Gerd Hoffmann <kraxel@redhat.com> | 2014-09-24 17:05:27 +0200 |
---|---|---|
committer | Gerd Hoffmann <kraxel@redhat.com> | 2014-09-29 10:20:09 +0200 |
commit | 1c1f94984430f5b9e91b01b75be23385122039f6 (patch) | |
tree | c0df378d7e70db3f077f51fb681d58c7c5ea8a05 /include | |
parent | 81ab11a7a524d12412a59ef49c6b270671e62ea0 (diff) | |
download | qemu-1c1f94984430f5b9e91b01b75be23385122039f6.zip qemu-1c1f94984430f5b9e91b01b75be23385122039f6.tar.gz qemu-1c1f94984430f5b9e91b01b75be23385122039f6.tar.bz2 |
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 <kraxel@redhat.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/ui/console.h | 3 |
1 files changed, 3 insertions, 0 deletions
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); |