Mesa (master): st/mesa: Clean up header file inclusion in st_manager.h.

Vinson Lee vlee at kemper.freedesktop.org
Thu Aug 5 23:22:30 UTC 2010


Module: Mesa
Branch: master
Commit: 0a7cbe845fe029411ae25c4bfe60763485a760f4
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=0a7cbe845fe029411ae25c4bfe60763485a760f4

Author: Vinson Lee <vlee at vmware.com>
Date:   Thu Aug  5 16:20:07 2010 -0700

st/mesa: Clean up header file inclusion in st_manager.h.

Include mtypes.h for GLcontext, gl_buffer_index, and GLframebuffer
symbols.
Include p_compiler.h for boolean symbol.
Include st_context.h in st_cb_eglimage.c as it previously included
st_context.h indirectly through st_manager.h.

---

 src/mesa/state_tracker/st_cb_eglimage.c |    1 +
 src/mesa/state_tracker/st_manager.h     |    7 +++++--
 2 files changed, 6 insertions(+), 2 deletions(-)

diff --git a/src/mesa/state_tracker/st_cb_eglimage.c b/src/mesa/state_tracker/st_cb_eglimage.c
index 4aaf91d..037e576 100644
--- a/src/mesa/state_tracker/st_cb_eglimage.c
+++ b/src/mesa/state_tracker/st_cb_eglimage.c
@@ -33,6 +33,7 @@
 #include "util/u_format.h"
 #include "st_cb_eglimage.h"
 #include "st_cb_fbo.h"
+#include "st_context.h"
 #include "st_texture.h"
 #include "st_format.h"
 #include "st_manager.h"
diff --git a/src/mesa/state_tracker/st_manager.h b/src/mesa/state_tracker/st_manager.h
index cd2887b..48a9d4d 100644
--- a/src/mesa/state_tracker/st_manager.h
+++ b/src/mesa/state_tracker/st_manager.h
@@ -29,8 +29,11 @@
 #ifndef ST_MANAGER_H
 #define ST_MANAGER_H
 
-#include "state_tracker/st_api.h"
-#include "st_context.h"
+#include "main/mtypes.h"
+
+#include "pipe/p_compiler.h"
+
+struct st_context;
 
 struct pipe_surface *
 st_manager_get_egl_image_surface(struct st_context *st,




More information about the mesa-commit mailing list