summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorMartin Peres <martin.peres@mupuf.org>2020-10-15 15:23:05 +0300
committerMartin Peres <martin.peres@mupuf.org>2020-10-22 07:47:28 +0300
commit4ba255dfaaf39ec9835ecb244aa7bf5a2362b5ab (patch)
tree2002b67a72722a49ca66213a0aa6976ed43431a7 /include
parentf9763b20542619bec57163ae45480626c76d4378 (diff)
dri/DRI2ConfigQueryExtension: add support for string options
This will be useful to enable extension overriding as a drirc option. v2 (Adam Jackson): - Rename from configQuerystr to configQuerys for symmetry - Increase the version number of the interface Reviewed-by: Adam Jackson <ajax@redhat.com> Reviewed-by: Ian Romanick <ian.d.romanick@intel.com> Signed-off-by: Martin Peres <martin.peres@mupuf.org> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7212>
Diffstat (limited to 'include')
-rw-r--r--include/GL/internal/dri_interface.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/GL/internal/dri_interface.h b/include/GL/internal/dri_interface.h
index e40106575c0..76c50ad334f 100644
--- a/include/GL/internal/dri_interface.h
+++ b/include/GL/internal/dri_interface.h
@@ -1795,7 +1795,7 @@ struct __DRIimageLookupExtensionRec {
* This extension allows for common DRI2 options
*/
#define __DRI2_CONFIG_QUERY "DRI_CONFIG_QUERY"
-#define __DRI2_CONFIG_QUERY_VERSION 1
+#define __DRI2_CONFIG_QUERY_VERSION 2
typedef struct __DRI2configQueryExtensionRec __DRI2configQueryExtension;
struct __DRI2configQueryExtensionRec {
@@ -1804,6 +1804,7 @@ struct __DRI2configQueryExtensionRec {
int (*configQueryb)(__DRIscreen *screen, const char *var, unsigned char *val);
int (*configQueryi)(__DRIscreen *screen, const char *var, int *val);
int (*configQueryf)(__DRIscreen *screen, const char *var, float *val);
+ int (*configQuerys)(__DRIscreen *screen, const char *var, char **val);
};
/**