sw/hgl: struct haiku_displaytarget is not public struct
authorEmil Velikov <emil.l.velikov@gmail.com>
Thu, 28 Aug 2014 21:22:20 +0000 (22:22 +0100)
committerAlexander von Gluck IV <kallisti5@unixzen.com>
Fri, 29 Aug 2014 01:41:46 +0000 (21:41 -0400)
It is meant to be private within the actual winsys. Remove it from
the exported header, and fold it into it's only user.

Cc: Alexander von Gluck IV <kallisti5@unixzen.com>
Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
src/gallium/winsys/sw/hgl/hgl_sw_winsys.c
src/gallium/winsys/sw/hgl/hgl_sw_winsys.h

index 27eca2ba2804842f0866948d54f2fbd4521e85e4..8e8413bbb972ba22895a27f3442f434bad90c7a0 100644 (file)
 
 
 #include "pipe/p_compiler.h"
+#include "pipe/p_defines.h"
 #include "pipe/p_format.h"
 #include "util/u_inlines.h"
 #include "util/u_format.h"
 #include "util/u_math.h"
 #include "util/u_memory.h"
+#include "state_tracker/st_api.h"
+#include "state_tracker/sw_winsys.h"
 
+#include "bitmap_wrapper.h"
 #include "hgl_sw_winsys.h"
 
 
+struct haiku_displaytarget
+{
+       enum pipe_format format;
+       color_space colorSpace;
+
+       unsigned width;
+       unsigned height;
+       unsigned stride;
+
+       unsigned size;
+
+       void* data;
+};
+
+
 // Cast
 static INLINE struct haiku_displaytarget*
 hgl_sw_displaytarget(struct sw_displaytarget* target)
index 5a2bef7ac7fd1d190b0b288b40a14d341eaa5111..bdcddfb4f2b3234d7c6aee17c5c1b664a92305d1 100644 (file)
 #ifndef _HGL_SOFTWAREWINSYS_H
 #define _HGL_SOFTWAREWINSYS_H
 
+struct sw_winsys;
 
-#include "pipe/p_defines.h"
-#include "state_tracker/st_api.h"
-#include "state_tracker/sw_winsys.h"
-
-#include "bitmap_wrapper.h"
-
-
-struct haiku_displaytarget
-{
-       enum pipe_format format;
-       color_space colorSpace;
-
-       unsigned width;
-       unsigned height;
-       unsigned stride;
-
-       unsigned size;
-
-       void* data;
-};
-
-
-struct sw_winsys* hgl_create_sw_winsys();
+struct sw_winsys* hgl_create_sw_winsys(void);
 
 
 #endif