Move structures above their first uses in xinput.xml
authorPeter Harris <peter.harris@hummingbird.com>
Thu, 16 Oct 2008 22:58:38 +0000 (18:58 -0400)
committerJulien Danjou <julien@danjou.info>
Mon, 20 Oct 2008 20:58:52 +0000 (22:58 +0200)
This change makes it easier to process the xml file in a single streamy pass.

Signed-off-by: Julien Danjou <julien@danjou.info>
src/xinput.xml

index 2405308..89f3459 100644 (file)
@@ -64,6 +64,14 @@ authorization from the authors.
 
     <!-- ListInputDevices -->
 
+    <struct name="DeviceInfo">
+       <field type="ATOM" name="device_type" />
+       <field type="CARD8" name="device_id" />
+       <field type="CARD8" name="num_class_info" />
+       <field type="CARD8" name="device_use" />
+       <pad bytes="1" />
+    </struct>
+
     <request name="ListInputDevices" opcode="2">
        <reply>
            <pad bytes="1" />
@@ -77,14 +85,6 @@ authorization from the authors.
        </reply>
     </request>
 
-    <struct name="DeviceInfo">
-       <field type="ATOM" name="device_type" />
-       <field type="CARD8" name="device_id" />
-       <field type="CARD8" name="num_class_info" />
-       <field type="CARD8" name="device_use" />
-       <pad bytes="1" />
-    </struct>
-
     <enum name="DeviceUse">
        <item name="IsXPointer"><value>0</value></item>
        <item name="IsXKeyboard"><value>1</value></item>
@@ -113,6 +113,12 @@ authorization from the authors.
        <field type="CARD16" name="num_buttons" />
     </struct>
 
+    <struct name="AxisInfo">
+       <field type="CARD32" name="resolution" />
+       <field type="CARD32" name="minimum" />
+       <field type="CARD32" name="maximum" />
+    </struct>
+
     <struct name="ValuatorInfo">
        <field type="CARD8" name="class_id" />
        <field type="CARD8" name="len" />
@@ -124,14 +130,13 @@ authorization from the authors.
        </list>
     </struct>
 
-    <struct name="AxisInfo">
-       <field type="CARD32" name="resolution" />
-       <field type="CARD32" name="minimum" />
-       <field type="CARD32" name="maximum" />
-    </struct>
-
     <!-- OpenDevice -->
 
+    <struct name="InputClassInfo">
+       <field type="CARD8" name="class_id" />
+       <field type="CARD8" name="event_type_base" />
+    </struct>
+
     <request name="OpenDevice" opcode="3">
        <field type="CARD8" name="device_id" />
        <pad bytes="3" />
@@ -145,11 +150,6 @@ authorization from the authors.
        </reply>
     </request>
 
-    <struct name="InputClassInfo">
-       <field type="CARD8" name="class_id" />
-       <field type="CARD8" name="event_type_base" />
-    </struct>
-
     <enum name="InputClass">
        <item name="Key"><value>0</value></item>
        <item name="Button"><value>1</value></item>