summaryrefslogtreecommitdiffstats
path: root/include/GL/internal
diff options
context:
space:
mode:
authorJesse Barnes <[email protected]>2010-04-22 12:47:41 -0700
committerJesse Barnes <[email protected]>2010-04-22 12:49:45 -0700
commit234286c0f8b7d30ed49223c648d4c73c1a517ab3 (patch)
treec33912a53cc0444f5cf2df895366f90b9669a25b /include/GL/internal
parentc059565054e80bd6306e1c3a2c7b85ef33082d9f (diff)
DRI2: add config query extension
Add a new DRI2 configuration query extension. Allows for DRI2 client code to query for common DRI2 configuration options.
Diffstat (limited to 'include/GL/internal')
-rw-r--r--include/GL/internal/dri_interface.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/include/GL/internal/dri_interface.h b/include/GL/internal/dri_interface.h
index fa9b7c4bf21..a952a1db9b3 100644
--- a/include/GL/internal/dri_interface.h
+++ b/include/GL/internal/dri_interface.h
@@ -812,4 +812,18 @@ struct __DRIimageLookupExtensionRec {
void *loaderPrivate);
};
+/**
+ * This extension allows for common DRI2 options
+ */
+#define __DRI2_CONFIG_QUERY "DRI_CONFIG_QUERY"
+#define __DRI2_CONFIG_QUERY_VERSION 1
+
+typedef struct __DRI2configQueryExtensionRec __DRI2configQueryExtension;
+struct __DRI2configQueryExtensionRec {
+ __DRIextension base;
+
+ int (*configQueryb)(__DRIscreen *screen, const char *var, GLboolean *val);
+ int (*configQueryi)(__DRIscreen *screen, const char *var, GLint *val);
+ int (*configQueryf)(__DRIscreen *screen, const char *var, GLfloat *val);
+};
#endif