diff options
Diffstat (limited to 'src/mesa/drivers/ggi/include/ggi/mesa/ggimesa_int.h')
-rw-r--r-- | src/mesa/drivers/ggi/include/ggi/mesa/ggimesa_int.h | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/src/mesa/drivers/ggi/include/ggi/mesa/ggimesa_int.h b/src/mesa/drivers/ggi/include/ggi/mesa/ggimesa_int.h new file mode 100644 index 00000000000..0589991ce9d --- /dev/null +++ b/src/mesa/drivers/ggi/include/ggi/mesa/ggimesa_int.h @@ -0,0 +1,22 @@ +#ifndef _GGI_MESA_INT_H +#define _GGI_MESA_INT_H + +#include <ggi/internal/internal.h> +#include "ggimesa.h" + +extern ggi_extid ggiMesaID; + +ggifunc_setmode GGIMesa_setmode; +ggifunc_getapi GGIMesa_getapi; + +typedef struct mesa_ext +{ + void (*update_state)(GLcontext *ctx); + int (*setup_driver)(GGIMesaContext ctx, struct ggi_mesa_info *info); + void *private; +} mesaext; + +#define LIBGGI_MESAEXT(vis) ((mesaext *)LIBGGI_EXT(vis,ggiMesaID)) +#define GGIMESA_PRIVATE(vis) ((LIBGGI_MESAEXT(vis)->private)) + +#endif /* _GGI_MISC_INT_H */ |