From: John Baboval <john.baboval@citrix.com>
To: qemu-devel@nongnu.org
Cc: "John V. Baboval" <john.baboval@citrix.com>
Subject: [Qemu-devel] [PATCH 3/7] console: Add graphic_hw_add_display()
Date: Thu, 19 Dec 2013 13:40:13 -0500 [thread overview]
Message-ID: <c22bcbda1cc986475ec5f81d5cebbed33e5409ee.1387475144.git.john.baboval@citrix.com> (raw)
In-Reply-To: <cover.1387475144.git.john.baboval@citrix.com>
From: "John V. Baboval" <john.baboval@citrix.com>
Hook for adding another QemuConsole to the active display adapter.
Signed-off-by: John V. Baboval <john.baboval@citrix.com>
---
include/ui/console.h | 2 ++
ui/console.c | 8 ++++++++
2 files changed, 10 insertions(+)
diff --git a/include/ui/console.h b/include/ui/console.h
index 61455d6..95ed12a 100644
--- a/include/ui/console.h
+++ b/include/ui/console.h
@@ -275,6 +275,7 @@ typedef struct GraphicHwOps {
void (*text_update)(void *opaque, console_ch_t *text);
void (*update_interval)(void *opaque, uint64_t interval);
void (*store_edid)(void *opaque, uint8_t *edid, size_t edid_size);
+ QemuConsole *(*add_display)(void *opaque);
void (*set_orientation)(void *opaque, uint32_t x, uint32_t y, uint32_t r);
} GraphicHwOps;
@@ -287,6 +288,7 @@ void graphic_hw_store_edid(QemuConsole *con, uint8_t *edid, size_t edid_size);
void graphic_hw_set_orientation(QemuConsole *con, uint32_t x, uint32_t y, uint32_t r);
void graphic_hw_invalidate(QemuConsole *con);
void graphic_hw_text_update(QemuConsole *con, console_ch_t *chardata);
+QemuConsole *graphic_hw_add_display(void);
QemuConsole *qemu_console_lookup_by_index(unsigned int index);
QemuConsole *qemu_console_lookup_by_device(DeviceState *dev);
diff --git a/ui/console.c b/ui/console.c
index 22de32c..fc60570 100644
--- a/ui/console.c
+++ b/ui/console.c
@@ -285,6 +285,15 @@ void graphic_hw_invalidate(QemuConsole *con)
}
}
+QemuConsole *graphic_hw_add_display(void)
+{
+ if (active_console && active_console->hw_ops->add_display) {
+ return active_console->hw_ops->add_display(active_console->hw);
+ }
+
+ return NULL;
+}
+
static void ppm_save(const char *filename, struct DisplaySurface *ds,
Error **errp)
{
--
1.7.9.5
next prev parent reply other threads:[~2013-12-19 18:41 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-12-19 18:40 [Qemu-devel] [PATCH 0/7] Multi-head support infrastructure John Baboval
2013-12-19 18:40 ` [Qemu-devel] [PATCH 1/7] console: Add graphic_hw_store_edid() John Baboval
2013-12-19 18:40 ` [Qemu-devel] [PATCH 2/7] console: Add graphic_hw_set_orientation() John Baboval
2013-12-19 18:40 ` John Baboval [this message]
2013-12-19 18:40 ` [Qemu-devel] [PATCH 4/7] console: Add graphic_hw_notify() John Baboval
2013-12-19 18:40 ` [Qemu-devel] [PATCH 5/7] ui: Add dpy_reset() John Baboval
2013-12-19 18:40 ` [Qemu-devel] [PATCH 6/7] ui: Add dpy_cursor_enable() John Baboval
2013-12-19 18:40 ` [Qemu-devel] [PATCH 7/7] ui: Add an opaque pointer to the DisplayChangeListener John Baboval
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=c22bcbda1cc986475ec5f81d5cebbed33e5409ee.1387475144.git.john.baboval@citrix.com \
--to=john.baboval@citrix.com \
--cc=qemu-devel@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).