aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorWen, Jianxian <Jianxian.Wen@verisilicon.com>2022-06-15 06:35:14 +0000
committerGerd Hoffmann <kraxel@redhat.com>2022-07-01 12:33:51 +0200
commit839a482695616c87c7663062f60b7afe48d023a7 (patch)
tree6b415f7ea7d08a2cbd491d347d09f041188c3850 /include
parent701caa3d6a8b4b28d7b45b6d8ac6aadc640bbe43 (diff)
downloadqemu-839a482695616c87c7663062f60b7afe48d023a7.zip
qemu-839a482695616c87c7663062f60b7afe48d023a7.tar.gz
qemu-839a482695616c87c7663062f60b7afe48d023a7.tar.bz2
ui/console: allow display device to be labeled with given id
The update makes it easier to find and specify devices. They can only be found by device type name without the id field, for example, devices of the same type have the same label. The update also adds a head field, which is useful for devices that support multiple heads, such as virtio-gpu. Signed-off-by: Jianxian Wen <jianxian.wen@verisilicon.com> Signed-off-by: Lu Gao <lu.gao@verisilicon.com> Message-Id: <4C23C17B8E87E74E906A25A3254A03F4018FC045B0@SHASXM06.verisilicon.com> Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Diffstat (limited to 'include')
-rw-r--r--include/ui/console.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/ui/console.h b/include/ui/console.h
index b64d824..c0520c6 100644
--- a/include/ui/console.h
+++ b/include/ui/console.h
@@ -463,6 +463,7 @@ bool qemu_console_is_visible(QemuConsole *con);
bool qemu_console_is_graphic(QemuConsole *con);
bool qemu_console_is_fixedsize(QemuConsole *con);
bool qemu_console_is_gl_blocked(QemuConsole *con);
+bool qemu_console_is_multihead(DeviceState *dev);
char *qemu_console_get_label(QemuConsole *con);
int qemu_console_get_index(QemuConsole *con);
uint32_t qemu_console_get_head(QemuConsole *con);