[Xcb] [PATCH proto 6/9] xproto: struct "HOST": add explicit align pad

Christian Linhart chris at demorecorder.com
Sun Sep 13 06:45:14 PDT 2015


This pad is defined in the spec:
http://cgit.freedesktop.org/xorg/proto/xproto/tree/specs/encoding.xml?id=xproto-7.0.28#n534

The server adds this pad in function GetHosts at:
http://cgit.freedesktop.org/xorg/xserver/tree/os/access.c?id=xorg-server-1.17.99.901#n1426
Function GetHosts is called in function ProcListHosts at:
http://cgit.freedesktop.org/xorg/xserver/tree/dix/dispatch.c?id=xorg-server-1.17.99.901#n3166

Signed-off-by: Christian Linhart <chris at demorecorder.com>
---
 src/xproto.xml | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/xproto.xml b/src/xproto.xml
index 7aca2e2..da9ec01 100644
--- a/src/xproto.xml
+++ b/src/xproto.xml
@@ -5461,14 +5461,15 @@ <request name="ChangeHosts" opcode="109">
   <struct name="HOST">
     <field type="CARD8" name="family" enum="Family" />
     <pad bytes="1" />
     <field type="CARD16" name="address_len" />
     <list type="BYTE" name="address">
       <fieldref>address_len</fieldref>
     </list>
+    <pad align="4" />
   </struct>
 
   <request name="ListHosts" opcode="110">
     <reply>
       <field type="BYTE" name="mode" enum="AccessControl" />
       <field type="CARD16" name="hosts_len" />
       <pad bytes="22" />
-- 
2.1.4



More information about the Xcb mailing list