st/mesa: move st_query_object type to header to make it public
authorBrian Paul <brianp@vmware.com>
Thu, 31 Dec 2009 21:46:57 +0000 (14:46 -0700)
committerBrian Paul <brianp@vmware.com>
Thu, 31 Dec 2009 21:46:57 +0000 (14:46 -0700)
src/mesa/state_tracker/st_cb_queryobj.c
src/mesa/state_tracker/st_cb_queryobj.h

index dcf4c38eb615d22f6f66bfcbecc253041edb9f34..10629e92254453e2f2f5a6049195ae1a5a1cce59 100644 (file)
 #include "st_public.h"
 
 
-struct st_query_object
-{
-   struct gl_query_object base;
-   struct pipe_query *pq;
-};
-
-
-/**
- * Cast wrapper
- */
-static struct st_query_object *
-st_query_object(struct gl_query_object *q)
-{
-   return (struct st_query_object *) q;
-}
-
-
 static struct gl_query_object *
 st_NewQueryObject(GLcontext *ctx, GLuint id)
 {
index 9220a212b60c7af3cde7195fd8328622938539a6..fa256b71824606ca0bdd8086c43b2b0865789b08 100644 (file)
 #define ST_CB_QUERYOBJ_H
 
 
+/**
+ * Subclass of gl_query_object
+ */
+struct st_query_object
+{
+   struct gl_query_object base;
+   struct pipe_query *pq;
+};
+
+
+/**
+ * Cast wrapper
+ */
+static INLINE struct st_query_object *
+st_query_object(struct gl_query_object *q)
+{
+   return (struct st_query_object *) q;
+}
+
+
+
 extern void
 st_init_query_functions(struct dd_function_table *functions);