XKB: Fix CountedString16 padding
authorPeter Harris <pharris@opentext.com>
Wed, 10 Apr 2013 23:01:35 +0000 (19:01 -0400)
committerPeter Harris <pharris@opentext.com>
Tue, 16 Apr 2013 18:37:05 +0000 (14:37 -0400)
Should be <pad align=4>, not <pad bytes=1>. This is a very long-winded
way to write <pad align>, since libxcb doesn't support <pad align> yet.

Signed-off-by: Peter Harris <pharris@opentext.com>
src/xkb.xml

index 5207c22..0fc808c 100644 (file)
@@ -389,7 +389,23 @@ authorization from the authors.
                <list name="string" type="CARD8">
                        <fieldref>length</fieldref>
                </list>
-               <pad bytes="1" />
+               <list type="void" name="alignment_pad">
+                       <op op="-">
+                               <op op="&amp;">
+                                       <op op="+">
+                                               <fieldref>length</fieldref>
+                                               <value>5</value>
+                                       </op>
+                                       <unop op="~">
+                                               <value>3</value>
+                                       </unop>
+                               </op>
+                               <op op="+">
+                                       <fieldref>length</fieldref>
+                                       <value>2</value>
+                               </op>
+                       </op>
+               </list>
        </struct>
 
        <struct name="KTMapEntry">