st/dri: Headers and public symbols clean up.
authorChia-I Wu <olv@lunarg.com>
Tue, 16 Mar 2010 02:55:40 +0000 (10:55 +0800)
committerChia-I Wu <olv@lunarg.com>
Thu, 18 Mar 2010 00:48:13 +0000 (08:48 +0800)
Remove unused headers and stop marking driDriverAPI as PUBLIC.

src/gallium/state_trackers/dri/dri1.c
src/gallium/state_trackers/dri/dri1.h
src/gallium/state_trackers/dri/dri_context.c
src/gallium/state_trackers/dri/dri_drawable.c
src/gallium/state_trackers/dri/dri_screen.c

index a4284f6fe7ae53dfa31aba0c56fa82e4d415f1c9..543891f813b966e63f4baed642571afc20ab0bd8 100644 (file)
@@ -34,6 +34,7 @@
 #include "pipe/p_context.h"
 #include "state_tracker/st_context.h"
 #include "state_tracker/st_public.h"
+#include "state_tracker/dri1_api.h"
 
 #include "dri_screen.h"
 #include "dri_context.h"
index b2304af7e1a0bce3b15c1bd3c755299d8443e6a5..e525ce64c3f0b09f17764f80b5eb4061151b32bd 100644 (file)
@@ -32,7 +32,8 @@
 #ifndef DRI1_H
 #define DRI1_H
 
-#include "state_tracker/dri1_api.h"
+#include "dri_context.h"
+#include "dri_drawable.h"
 #include "dri_util.h"
 
 extern struct dri1_api *__dri1_api_hooks;
index 58f2b17585db063f172683e91f6447302d5bf6fe..8e74d3b9bf1cddf4e5c222905b3a36787505007e 100644 (file)
  */
 
 #include "dri_screen.h"
-
 #include "dri_drawable.h"
-#include "state_tracker/drm_api.h"
-#include "state_tracker/dri1_api.h"
-#include "state_tracker/st_public.h"
-#include "pipe/p_context.h"
-
 #include "dri_context.h"
 #include "dri1.h"
 
+#include "state_tracker/st_public.h"
+#include "pipe/p_context.h"
 #include "util/u_memory.h"
 
 GLboolean
index 6c4de71c89fef85d56d74f02fc1318c0ae2568bc..9238f94299958856d0b2b3e151e217a35e0b25f2 100644 (file)
 #include "dri_drawable.h"
 #include "dri1.h"
 
-#include "pipe/p_context.h"
-#include "pipe/p_screen.h"
 #include "main/mtypes.h"
 #include "main/renderbuffer.h"
-#include "state_tracker/drm_api.h"
-#include "state_tracker/dri1_api.h"
 #include "state_tracker/st_context.h"
 #include "state_tracker/st_public.h"
 #include "state_tracker/st_cb_fbo.h"
+#include "state_tracker/drm_api.h"
 
+#include "pipe/p_screen.h"
 #include "util/u_format.h"
 #include "util/u_memory.h"
-#include "util/u_rect.h"
 #include "util/u_inlines.h"
  
 static struct pipe_surface *
index b6cd92d0f85285a3391b3fa4e4d02bdd60b54a78..cffe3b33b2f6e59f35b596547aadc83184961b43 100644 (file)
@@ -41,7 +41,6 @@
 #include "pipe/p_screen.h"
 #include "pipe/p_format.h"
 #include "state_tracker/drm_api.h"
-#include "state_tracker/dri1_api.h"
 
 #include "util/u_debug.h"
 
@@ -304,7 +303,7 @@ dri_destroy_screen(__DRIscreen * sPriv)
    sPriv->private = NULL;
 }
 
-PUBLIC const struct __DriverAPIRec driDriverAPI = {
+const struct __DriverAPIRec driDriverAPI = {
    .DestroyScreen = dri_destroy_screen,
    .CreateContext = dri_create_context,
    .DestroyContext = dri_destroy_context,