[Xcb] [PATCH proto 3/9] sync: make padding explicit
Christian Linhart
chris at demorecorder.com
Sun Sep 13 06:45:11 PDT 2015
Add explicit align-padding for struct SYSTEMCOUNTER:
Added 4-byte align-pad at the end.
This is field "p" in the spec of SYSTEMCOUNTER at:
http://cgit.freedesktop.org/xorg/proto/xextproto/tree/specs/sync.xml?id=xextproto-7.3.0#n983
Signed-off-by: Christian Linhart <chris at demorecorder.com>
---
src/sync.xml | 1 +
1 file changed, 1 insertion(+)
diff --git a/src/sync.xml b/src/sync.xml
index 23175cb..33ce178 100644
--- a/src/sync.xml
+++ b/src/sync.xml
@@ -49,14 +49,15 @@ <struct name="INT64">
<struct name="SYSTEMCOUNTER">
<field type="COUNTER" name="counter" />
<field type="sync:INT64" name="resolution" />
<field type="CARD16" name="name_len" />
<list type="char" name="name">
<fieldref>name_len</fieldref>
</list>
+ <pad align="4" />
</struct>
<struct name="TRIGGER">
<field type="COUNTER" name="counter" />
<field type="CARD32" name="wait_type" enum="VALUETYPE" />
<field type="sync:INT64" name="wait_value" />
<field type="CARD32" name="test_type" enum="TESTTYPE" />
--
2.1.4
More information about the Xcb
mailing list