diff options
author | Gerd Hoffmann <kraxel@redhat.com> | 2014-01-24 15:35:21 +0100 |
---|---|---|
committer | Gerd Hoffmann <kraxel@redhat.com> | 2014-03-05 09:52:04 +0100 |
commit | 5643706a095044d75df1c0588aac553a595b972b (patch) | |
tree | 612d63c8cfd40d331bbfc78efd7347a5e916170c /include | |
parent | 5c07d00f1b33729b23326c57b55e71a9cd9b9310 (diff) | |
download | qemu-5643706a095044d75df1c0588aac553a595b972b.zip qemu-5643706a095044d75df1c0588aac553a595b972b.tar.gz qemu-5643706a095044d75df1c0588aac553a595b972b.tar.bz2 |
console: add head to index to qemu consoles.
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/ui/console.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/include/ui/console.h b/include/ui/console.h index 3bf69ee..b2af53e 100644 --- a/include/ui/console.h +++ b/include/ui/console.h @@ -268,7 +268,7 @@ typedef struct GraphicHwOps { void (*update_interval)(void *opaque, uint64_t interval); } GraphicHwOps; -QemuConsole *graphic_console_init(DeviceState *dev, +QemuConsole *graphic_console_init(DeviceState *dev, uint32_t head, const GraphicHwOps *ops, void *opaque); @@ -277,11 +277,12 @@ void graphic_hw_invalidate(QemuConsole *con); void graphic_hw_text_update(QemuConsole *con, console_ch_t *chardata); QemuConsole *qemu_console_lookup_by_index(unsigned int index); -QemuConsole *qemu_console_lookup_by_device(DeviceState *dev); +QemuConsole *qemu_console_lookup_by_device(DeviceState *dev, uint32_t head); bool qemu_console_is_visible(QemuConsole *con); bool qemu_console_is_graphic(QemuConsole *con); bool qemu_console_is_fixedsize(QemuConsole *con); int qemu_console_get_index(QemuConsole *con); +uint32_t qemu_console_get_head(QemuConsole *con); int qemu_console_get_width(QemuConsole *con, int fallback); int qemu_console_get_height(QemuConsole *con, int fallback); |