summaryrefslogtreecommitdiffstats
path: root/src/mesa/main/extensions.h
diff options
context:
space:
mode:
authorNanley Chery <[email protected]>2015-10-26 15:22:24 -0700
committerNanley Chery <[email protected]>2015-11-12 13:10:37 -0800
commit5645770742d21b0a2ae0fe3ecce135933cd9b4fc (patch)
tree6d16bdc5b0ee91beb476af003801045934d3c94b /src/mesa/main/extensions.h
parentab129a44ae3a7515eb4642c068299673c890fb73 (diff)
mesa/extensions: Prefix global struct and extension type
Rename the following types and variables: * struct extension -> struct mesa_extension, like the mesa_format type. * extension_table -> _mesa_extension_table, like the _mesa_extension_override_{enables,disables} structs. Suggested-by: Marek Olšák <[email protected]> Suggested-by: Chad Versace <[email protected]> Signed-off-by: Nanley Chery <[email protected]> Reviewed-by: Chad Versace <[email protected]>
Diffstat (limited to 'src/mesa/main/extensions.h')
-rw-r--r--src/mesa/main/extensions.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mesa/main/extensions.h b/src/mesa/main/extensions.h
index 6092eca36e7..4ea2af13efc 100644
--- a/src/mesa/main/extensions.h
+++ b/src/mesa/main/extensions.h
@@ -59,7 +59,7 @@ _mesa_get_enabled_extension(struct gl_context *ctx, GLuint index);
/**
* \brief An element of the \c extension_table.
*/
-struct extension {
+struct mesa_extension {
/** Name of extension, such as "GL_ARB_depth_clamp". */
const char *name;
@@ -75,7 +75,7 @@ struct extension {
/** Year the extension was proposed or approved. Used to sort the
* extension string chronologically. */
uint16_t year;
-} extern const extension_table[];
+} extern const _mesa_extension_table[];
/* Generate enums for the functions below */
@@ -92,7 +92,7 @@ static inline bool \
_mesa_has_##name_str(const struct gl_context *ctx) \
{ \
return ctx->Extensions.driver_cap && (ctx->Version >= \
- extension_table[MESA_EXTENSION_##name_str].version[ctx->API]); \
+ _mesa_extension_table[MESA_EXTENSION_##name_str].version[ctx->API]); \
}
#include "extensions_table.h"
#undef EXT