2 * XML DRI client-side driver configuration
3 * Copyright (C) 2003 Felix Kuehling
5 * Permission is hereby granted, free of charge, to any person obtaining a
6 * copy of this software and associated documentation files (the "Software"),
7 * to deal in the Software without restriction, including without limitation
8 * the rights to use, copy, modify, merge, publish, distribute, sublicense,
9 * and/or sell copies of the Software, and to permit persons to whom the
10 * Software is furnished to do so, subject to the following conditions:
12 * The above copyright notice and this permission notice shall be included
13 * in all copies or substantial portions of the Software.
15 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
16 * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
18 * FELIX KUEHLING, OR ANY OTHER CONTRIBUTORS BE LIABLE FOR ANY CLAIM,
19 * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
20 * OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE
21 * OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
26 * \brief Pool of common options
27 * \author Felix Kuehling
29 * This file defines macros that can be used to construct
30 * driConfigOptions in the drivers. Common options are defined in
31 * xmlpool/t_options.h from which xmlpool/options.h is generated with
32 * translations. This file defines generic helper macros and includes
43 /** \brief Begin __driConfigOptions */
44 #define DRI_CONF_BEGIN \
47 /** \brief End __driConfigOptions */
48 #define DRI_CONF_END \
51 /** \brief Begin a section of related options */
52 #define DRI_CONF_SECTION_BEGIN \
55 /** \brief End a section of related options */
56 #define DRI_CONF_SECTION_END \
59 /** \brief Begin an option definition */
60 #define DRI_CONF_OPT_BEGIN(name,type,def) \
61 "<option name=\""#name"\" type=\""#type"\" default=\""#def"\">\n"
63 /** \brief Begin an option definition with restrictions on valid values */
64 #define DRI_CONF_OPT_BEGIN_V(name,type,def,valid) \
65 "<option name=\""#name"\" type=\""#type"\" default=\""#def"\" valid=\""valid"\">\n"
67 /** \brief End an option description */
68 #define DRI_CONF_OPT_END \
71 /** \brief A verbal description in a specified language (empty version) */
72 #define DRI_CONF_DESC(lang,text) \
73 "<description lang=\""#lang"\" text=\""text"\"/>\n"
75 /** \brief A verbal description in a specified language */
76 #define DRI_CONF_DESC_BEGIN(lang,text) \
77 "<description lang=\""#lang"\" text=\""text"\">\n"
79 /** \brief End a description */
80 #define DRI_CONF_DESC_END \
83 /** \brief A verbal description of an enum value */
84 #define DRI_CONF_ENUM(value,text) \
85 "<enum value=\""#value"\" text=\""text"\"/>\n"
89 * Predefined option sections and options with multi-lingual descriptions
90 * are now automatically generated.
92 #include "xmlpool/options.h"