summary refs log tree commit diff stats
path: root/include/ui/console.h
diff options
context:
space:
mode:
authorPhilippe Mathieu-Daudé <philmd@redhat.com>2019-01-11 15:08:56 +0100
committerThomas Huth <thuth@redhat.com>2019-01-22 05:14:33 +0100
commit7536587c07da34c7183142df5ef0dada350872b4 (patch)
tree4b8cccf9d9ddf7f559471ae98cb944082115e7c8 /include/ui/console.h
parentdfbb251e9f36b2e2cf2337ba5240cbd59ea35847 (diff)
downloadfocaccia-qemu-7536587c07da34c7183142df5ef0dada350872b4.tar.gz
focaccia-qemu-7536587c07da34c7183142df5ef0dada350872b4.zip
ui/console: Remove DisplayState/DisplaySurface from "qemu/typedefs.h"
Files requiring DisplayState/DisplaySurface already include "ui/console.h".

To clean "qemu/typedefs.h", move the declarations to "ui/console.h"
(removing DisplaySurface forward declaration).

Signed-off-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Signed-off-by: Thomas Huth <thuth@redhat.com>
Diffstat (limited to 'include/ui/console.h')
-rw-r--r--include/ui/console.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/include/ui/console.h b/include/ui/console.h
index c4f497cb8d..0a190370ac 100644
--- a/include/ui/console.h
+++ b/include/ui/console.h
@@ -131,7 +131,7 @@ struct PixelFormat {
     uint8_t rbits, gbits, bbits, abits;
 };
 
-struct DisplaySurface {
+typedef struct DisplaySurface {
     pixman_format_code_t format;
     pixman_image_t *image;
     uint8_t flags;
@@ -140,7 +140,7 @@ struct DisplaySurface {
     GLenum gltype;
     GLuint texture;
 #endif
-};
+} DisplaySurface;
 
 typedef struct QemuUIInfo {
     /* geometry */
@@ -189,6 +189,8 @@ typedef struct QemuDmaBuf {
     bool      y0_top;
 } QemuDmaBuf;
 
+typedef struct DisplayState DisplayState;
+
 typedef struct DisplayChangeListenerOps {
     const char *dpy_name;