]> Git Repo - qemu.git/commitdiff
ui/console: Remove DisplayState/DisplaySurface from "qemu/typedefs.h"
authorPhilippe Mathieu-Daudé <[email protected]>
Fri, 11 Jan 2019 14:08:56 +0000 (15:08 +0100)
committerThomas Huth <[email protected]>
Tue, 22 Jan 2019 04:14:33 +0000 (05:14 +0100)
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é <[email protected]>
Signed-off-by: Thomas Huth <[email protected]>
include/qemu/typedefs.h
include/ui/console.h

index 8bab07bd5d5e250c1e66aed97e558e05df992a27..3a57dfd98eb3360d49774e7d608a62e72158bc45 100644 (file)
@@ -24,8 +24,6 @@ typedef struct DeviceListener DeviceListener;
 typedef struct DeviceState DeviceState;
 typedef struct DirtyBitmapSnapshot DirtyBitmapSnapshot;
 typedef struct DisplayChangeListener DisplayChangeListener;
-typedef struct DisplayState DisplayState;
-typedef struct DisplaySurface DisplaySurface;
 typedef struct DriveInfo DriveInfo;
 typedef struct Error Error;
 typedef struct EventNotifier EventNotifier;
index c4f497cb8d2a1f25bf85a27935d628e5e150e465..0a190370ac73eed62c8e9e56486318a0a8c6cedb 100644 (file)
@@ -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;
 
This page took 0.028785 seconds and 4 git commands to generate.