Add 'fd' element to fields group, fix present Generic event to validate
authorKeith Packard <keithp@keithp.com>
Thu, 7 Nov 2013 21:29:14 +0000 (13:29 -0800)
committerKeith Packard <keithp@keithp.com>
Thu, 7 Nov 2013 21:29:14 +0000 (13:29 -0800)
This fixes 'make check'

Signed-off-by: Keith Packard <keithp@keithp.com>
src/present.xml
src/xcb.xsd

index d12ae48..57e7cd3 100644 (file)
@@ -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" />
index 7a9c800..73dbf8a 100644 (file)
@@ -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>