[PATCH] Move structures above their first uses in xinput.xml
Peter Harris
peter.harris at hummingbird.com
Thu Oct 16 15:58:38 PDT 2008
This change makes it easier to process the xml file in a single streamy pass.
---
src/xinput.xml | 38 +++++++++++++++++++-------------------
1 files changed, 19 insertions(+), 19 deletions(-)
diff --git a/src/xinput.xml b/src/xinput.xml
index 2405308..89f3459 100644
--- a/src/xinput.xml
+++ b/src/xinput.xml
@@ -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>
--
1.5.6.5
--Boundary-00=_AZN/IF1giImPFy/
Content-Type: text/x-patch;
charset="us-ascii";
name="0003-Move-the-defintion-of-STRING8-above-its-first-use-in.patch"
Content-Transfer-Encoding: 8bit
Content-Disposition: inline;
filename="0003-Move-the-defintion-of-STRING8-above-its-first-use-in.patch"
More information about the Xcb
mailing list