diff options
author | Brian Paul <[email protected]> | 2009-12-31 14:46:57 -0700 |
---|---|---|
committer | Brian Paul <[email protected]> | 2009-12-31 14:46:57 -0700 |
commit | f1b382d2e66855d49354356f2d3209652aaf5987 (patch) | |
tree | b9e7f104329d846daa2fddfef542605cd15a872a /src/mesa | |
parent | 41450b03a8e8e0f94f8eefc6880d32e9b0ef6f6d (diff) |
st/mesa: move st_query_object type to header to make it public
Diffstat (limited to 'src/mesa')
-rw-r--r-- | src/mesa/state_tracker/st_cb_queryobj.c | 17 | ||||
-rw-r--r-- | src/mesa/state_tracker/st_cb_queryobj.h | 21 |
2 files changed, 21 insertions, 17 deletions
diff --git a/src/mesa/state_tracker/st_cb_queryobj.c b/src/mesa/state_tracker/st_cb_queryobj.c index dcf4c38eb61..10629e92254 100644 --- a/src/mesa/state_tracker/st_cb_queryobj.c +++ b/src/mesa/state_tracker/st_cb_queryobj.c @@ -44,23 +44,6 @@ #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) { diff --git a/src/mesa/state_tracker/st_cb_queryobj.h b/src/mesa/state_tracker/st_cb_queryobj.h index 9220a212b60..fa256b71824 100644 --- a/src/mesa/state_tracker/st_cb_queryobj.h +++ b/src/mesa/state_tracker/st_cb_queryobj.h @@ -29,6 +29,27 @@ #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); |