[Spice-devel] [PATCH 3/9] qxl_surface: move to using struct to avoid ordering issues with typedef.

Dave Airlie airlied at gmail.com
Mon Feb 25 20:32:06 PST 2013


Signed-off-by: Dave Airlie <airlied at redhat.com>
---
 src/qxl_surface.h | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/src/qxl_surface.h b/src/qxl_surface.h
index 450a563..e57d282 100644
--- a/src/qxl_surface.h
+++ b/src/qxl_surface.h
@@ -18,8 +18,8 @@ struct qxl_surface_t
     void *		address;
     void *		end;
     
-    qxl_surface_t *	next;
-    qxl_surface_t *	prev;	/* Only used in the 'live'
+    struct qxl_surface_t *	next;
+    struct qxl_surface_t *	prev;	/* Only used in the 'live'
 				 * chain in the surface cache
 				 */
 
@@ -33,7 +33,7 @@ struct qxl_surface_t
 
     union
     {
-	qxl_surface_t *copy_src;
+	struct qxl_surface_t *copy_src;
 	Pixel	       solid_pixel;
 
 	struct
@@ -42,9 +42,9 @@ struct qxl_surface_t
 	    PicturePtr		src_picture;
 	    PicturePtr		mask_picture;
 	    PicturePtr		dest_picture;
-	    qxl_surface_t	*src;
-	    qxl_surface_t	*mask;
-	    qxl_surface_t	*dest;
+	    struct qxl_surface_t	*src;
+	    struct qxl_surface_t	*mask;
+	    struct qxl_surface_t	*dest;
 	} composite;
     } u;
 };
-- 
1.8.1.2



More information about the Spice-devel mailing list