diff options
author | Axel Davy <[email protected]> | 2014-03-06 12:02:44 +0100 |
---|---|---|
committer | Dave Airlie <[email protected]> | 2014-07-01 13:06:51 +1000 |
commit | da3a47d6824b63621a7d865112558a6e8026688b (patch) | |
tree | 468c84c5d1a2dd481d673d93711617af683ad588 /src/mesa/drivers/dri/common/xmlconfig.h | |
parent | 29800e6a3e7965bc9a7a77c968fe724f9d4d3ba5 (diff) |
drirc: Add string support
Reviewed-by: Dave Airlie <[email protected]>
Signed-off-by: Axel Davy <[email protected]>
Diffstat (limited to 'src/mesa/drivers/dri/common/xmlconfig.h')
-rw-r--r-- | src/mesa/drivers/dri/common/xmlconfig.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/mesa/drivers/dri/common/xmlconfig.h b/src/mesa/drivers/dri/common/xmlconfig.h index 5ac88019cd4..386ddf19de6 100644 --- a/src/mesa/drivers/dri/common/xmlconfig.h +++ b/src/mesa/drivers/dri/common/xmlconfig.h @@ -32,9 +32,11 @@ #include <stdbool.h> +#define STRING_CONF_MAXLEN 25 + /** \brief Option data types */ typedef enum driOptionType { - DRI_BOOL, DRI_ENUM, DRI_INT, DRI_FLOAT + DRI_BOOL, DRI_ENUM, DRI_INT, DRI_FLOAT, DRI_STRING } driOptionType; /** \brief Option value */ @@ -42,6 +44,7 @@ typedef union driOptionValue { bool _bool; /**< \brief Boolean */ int _int; /**< \brief Integer or Enum */ float _float; /**< \brief Floating-point */ + char *_string; /**< \brief String */ } driOptionValue; /** \brief Single range of valid values @@ -120,5 +123,7 @@ bool driQueryOptionb (const driOptionCache *cache, const char *name); int driQueryOptioni (const driOptionCache *cache, const char *name); /** \brief Query a floating-point option value */ float driQueryOptionf (const driOptionCache *cache, const char *name); +/** \brief Query a string option value */ +char *driQueryOptionstr (const driOptionCache *cache, const char *name); #endif |