mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-04 22:49:13 +02:00
driinfo: add DTD to allow the xml to be validated
This DTD can be used to validate the output and make sure any parsers out there can handle it: $ xmllint --noout --valid driinfo.xml Signed-off-by: Eric Engestrom <eric.engestrom@intel.com> Reviewed-by: Emil Velikov <emil.velikov@collabora.com>
This commit is contained in:
parent
9646750822
commit
a213b927f2
1 changed files with 16 additions and 0 deletions
|
|
@ -42,6 +42,22 @@
|
|||
|
||||
/** \brief Begin __driConfigOptions */
|
||||
#define DRI_CONF_BEGIN \
|
||||
"<?xml version=\"1.0\" standalone=\"yes\"?>" \
|
||||
"<!DOCTYPE driinfo [" \
|
||||
" <!ELEMENT driinfo (section*)>" \
|
||||
" <!ELEMENT section (description+, option+)>" \
|
||||
" <!ELEMENT description (enum*)>" \
|
||||
" <!ATTLIST description lang CDATA #REQUIRED" \
|
||||
" text CDATA #REQUIRED>" \
|
||||
" <!ELEMENT option (description+)>" \
|
||||
" <!ATTLIST option name CDATA #REQUIRED" \
|
||||
" type (bool|enum|int|float) #REQUIRED" \
|
||||
" default CDATA #REQUIRED" \
|
||||
" valid CDATA #IMPLIED>" \
|
||||
" <!ELEMENT enum EMPTY>" \
|
||||
" <!ATTLIST enum value CDATA #REQUIRED" \
|
||||
" text CDATA #REQUIRED>" \
|
||||
"]>" \
|
||||
"<driinfo>\n"
|
||||
|
||||
/** \brief End __driConfigOptions */
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue