diff options
author | Martin Peres <martin.peres@mupuf.org> | 2020-10-15 15:23:05 +0300 |
---|---|---|
committer | Martin Peres <martin.peres@mupuf.org> | 2020-10-22 07:47:28 +0300 |
commit | 4ba255dfaaf39ec9835ecb244aa7bf5a2362b5ab (patch) | |
tree | 2002b67a72722a49ca66213a0aa6976ed43431a7 /include | |
parent | f9763b20542619bec57163ae45480626c76d4378 (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.h | 3 |
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); }; /** |