summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorGerd Hoffmann <kraxel@redhat.com>2015-02-17 10:41:08 +0100
committerGerd Hoffmann <kraxel@redhat.com>2015-04-22 13:21:16 +0200
commit779ce88fbd3f977112bc77ccb028b0ace762105e (patch)
tree3d913e151e1c41be977928b6dfc4de603cd99986 /include
parentf8c223f69ac58488ea830597281b7ddd33037c4c (diff)
downloadhqemu-779ce88fbd3f977112bc77ccb028b0ace762105e.zip
hqemu-779ce88fbd3f977112bc77ccb028b0ace762105e.tar.gz
console/gtk: add qemu_console_get_label
Add a new function to get a nice label for a given QemuConsole. Drop the labeling code in gtk.c and use the new function instead. 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 2f5b9f0..03cd665 100644
--- a/include/ui/console.h
+++ b/include/ui/console.h
@@ -307,6 +307,7 @@ 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);
+char *qemu_console_get_label(QemuConsole *con);
int qemu_console_get_index(QemuConsole *con);
uint32_t qemu_console_get_head(QemuConsole *con);
QemuUIInfo *qemu_console_get_ui_info(QemuConsole *con);
OpenPOWER on IntegriCloud