aboutsummaryrefslogtreecommitdiff
path: root/include/ui
diff options
context:
space:
mode:
authorGerd Hoffmann <kraxel@redhat.com>2014-06-19 08:46:08 +0200
committerGerd Hoffmann <kraxel@redhat.com>2014-09-05 13:27:11 +0200
commita77549b3ffcc24c32ee4e8b5ec32049186120360 (patch)
treee0be32d88d5d3c4f1361cf525aa05112b5a3a87d /include/ui
parent30f1e661b640de58ba1e8178f7f2290179a7e01c (diff)
downloadqemu-a77549b3ffcc24c32ee4e8b5ec32049186120360.zip
qemu-a77549b3ffcc24c32ee4e8b5ec32049186120360.tar.gz
qemu-a77549b3ffcc24c32ee4e8b5ec32049186120360.tar.bz2
console: add qemu_create_displaysurface_guestmem
This patch adds a qemu_create_displaysurface_guestmem helper function. Works simliar to qemu_create_displaysurface_from, but accepts a guest address instead of a host pointer and it handles cpu_physical_memory_{map,unmap} for you. Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Diffstat (limited to 'include/ui')
-rw-r--r--include/ui/console.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/ui/console.h b/include/ui/console.h
index 68ac362..61901f7 100644
--- a/include/ui/console.h
+++ b/include/ui/console.h
@@ -189,6 +189,10 @@ DisplayState *init_displaystate(void);
DisplaySurface *qemu_create_displaysurface_from(int width, int height,
pixman_format_code_t format,
int linesize, uint8_t *data);
+DisplaySurface *qemu_create_displaysurface_guestmem(int width, int height,
+ pixman_format_code_t format,
+ int linesize,
+ uint64_t addr);
PixelFormat qemu_different_endianness_pixelformat(int bpp);
PixelFormat qemu_default_pixelformat(int bpp);