diff options
author | Marc-André Lureau <marcandre.lureau@redhat.com> | 2020-09-27 18:57:48 +0400 |
---|---|---|
committer | Gerd Hoffmann <kraxel@redhat.com> | 2020-09-29 10:08:25 +0200 |
commit | 5eaf1e48ff397185ec2f702f9968787d4d29e3c4 (patch) | |
tree | f97362445092488aae53b33ff0ab1c78424c708d /ui/console.c | |
parent | fd36eade0187a4efe0507b41fae22277300d1c7a (diff) |
ui: add getter for UIInfo
The following patch is going to introduce extra fields / details to
UIInfo. Add a getter and keep the current values, instead of memset(0)
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Message-id: 20200927145751.365446-4-marcandre.lureau@redhat.com
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Diffstat (limited to 'ui/console.c')
-rw-r--r-- | ui/console.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/ui/console.c b/ui/console.c index 7592c3c324..54a74c0b16 100644 --- a/ui/console.c +++ b/ui/console.c @@ -1516,6 +1516,13 @@ bool dpy_ui_info_supported(QemuConsole *con) return con->hw_ops->ui_info != NULL; } +const QemuUIInfo *dpy_get_ui_info(const QemuConsole *con) +{ + assert(con != NULL); + + return &con->ui_info; +} + int dpy_set_ui_info(QemuConsole *con, QemuUIInfo *info) { assert(con != NULL); |