diff options
author | Eric Engestrom <[email protected]> | 2019-01-22 16:49:29 +0000 |
---|---|---|
committer | Eric Engestrom <[email protected]> | 2019-02-26 12:48:28 +0000 |
commit | a213b927f277cf0320d9f7395a4ce9012bc98358 (patch) | |
tree | a386e699c911b7354d27127f1ed68d4828c38a0d | |
parent | 964675082231963816a60271390bd04d561888fd (diff) |
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 <[email protected]>
Reviewed-by: Emil Velikov <[email protected]>
-rw-r--r-- | src/util/xmlpool.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/util/xmlpool.h b/src/util/xmlpool.h index e9a3f8b1cf9..a1ec4f3a6c3 100644 --- a/src/util/xmlpool.h +++ b/src/util/xmlpool.h @@ -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 */ |