summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2013-11-07 13:29:14 -0800
committerKeith Packard <keithp@keithp.com>2013-11-07 13:29:14 -0800
commit5eedcab9273be2bcbe300842e261424cd522319d (patch)
tree8229774b7a8e37953e868369859b9b2ed41e6bb3
parent24df547b72d73fbb9704d342a1e5c4773f48cd38 (diff)
Add 'fd' element to fields group, fix present Generic event to validate
This fixes 'make check' Signed-off-by: Keith Packard <keithp@keithp.com>
-rw-r--r--src/present.xml2
-rw-r--r--src/xcb.xsd4
2 files changed, 5 insertions, 1 deletions
diff --git a/src/present.xml b/src/present.xml
index d12ae48..57e7cd3 100644
--- a/src/present.xml
+++ b/src/present.xml
@@ -133,7 +133,7 @@ OF THIS SOFTWARE.
<!-- Events -->
- <event name="Generic">
+ <event name="Generic" number="0">
<field type="CARD8" name="extension" />
<field type="CARD32" name="length" />
<field type="CARD16" name="evtype" enum="EventType" />
diff --git a/src/xcb.xsd b/src/xcb.xsd
index 7a9c800..73dbf8a 100644
--- a/src/xcb.xsd
+++ b/src/xcb.xsd
@@ -89,6 +89,9 @@ authorization from the authors.
<!-- field replaces FIELD, PARAM, and REPLY. -->
<xsd:element name="field" type="var" />
+ <!-- fd passing parameter -->
+ <xsd:element name="fd" />
+
<!-- list replaces ARRAYFIELD, LISTPARAM, and ARRAYREPLY. The name and type
are specified as attributes. The content is an expression giving the
length. -->
@@ -185,6 +188,7 @@ authorization from the authors.
<xsd:element ref="pad" />
<xsd:element ref="field" />
<xsd:element ref="list" />
+ <xsd:element ref="fd" />
</xsd:choice>
</xsd:group>