From 839a482695616c87c7663062f60b7afe48d023a7 Mon Sep 17 00:00:00 2001 From: Wen, Jianxian Date: Wed, 15 Jun 2022 06:35:14 +0000 Subject: 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 Signed-off-by: Lu Gao Message-Id: <4C23C17B8E87E74E906A25A3254A03F4018FC045B0@SHASXM06.verisilicon.com> Signed-off-by: Gerd Hoffmann --- include/ui/console.h | 1 + 1 file changed, 1 insertion(+) (limited to 'include/ui') diff --git a/include/ui/console.h b/include/ui/console.h index b64d824360..c0520c694c 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); -- cgit v1.2.3-55-g7522