diff options
author | Gerd Hoffmann <kraxel@redhat.com> | 2016-01-12 11:45:43 +0100 |
---|---|---|
committer | Timothy Pearson <tpearson@raptorengineering.com> | 2019-11-29 19:46:50 -0600 |
commit | 1463905ee159142f3fe72c92d48b0b26bacd7114 (patch) | |
tree | c6eb38d08167c7d7532817130f0589f9e821da77 /include | |
parent | fcad8dfe74cd71f47abf08e4bea7ad6343eeee19 (diff) | |
download | hqemu-1463905ee159142f3fe72c92d48b0b26bacd7114.zip hqemu-1463905ee159142f3fe72c92d48b0b26bacd7114.tar.gz |
console: add & use qemu_console_lookup_by_device_name
We have two places needing this, and a third one will come shortly.
So factor things out into a helper function to reduce code duplication.
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Reviewed-by: Daniel P. Berrange <berrange@redhat.com>
Reviewed-by: Markus Armbruster <armbru@redhat.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/ui/console.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/ui/console.h b/include/ui/console.h index 6631b96..f636971 100644 --- a/include/ui/console.h +++ b/include/ui/console.h @@ -378,6 +378,8 @@ void graphic_hw_gl_block(QemuConsole *con, bool block); QemuConsole *qemu_console_lookup_by_index(unsigned int index); QemuConsole *qemu_console_lookup_by_device(DeviceState *dev, uint32_t head); +QemuConsole *qemu_console_lookup_by_device_name(const char *device_id, + uint32_t head, Error **errp); bool qemu_console_is_visible(QemuConsole *con); bool qemu_console_is_graphic(QemuConsole *con); bool qemu_console_is_fixedsize(QemuConsole *con); |