Dear All,<br>For solving <a href="https://bugs.freedesktop.org/show_bug.cgi?id=34037">Bug 34037</a> I thought something like:-<br><ol><li>Find padding of each elements<br></li><li>Comment all extra padded elements with - "// Extra padding of <i>integer</i> bytes" [This is a precautionary step ] [ I am<b> facing problem's</b> is finding the places of extra padding by looking at source files, so please help me here as in how to find these extra padding in code's. also where is the extra padding in the attached utility? ]</li>
<li>finally, Call a function align(n) to align the extra padded data structures, I am planning to provide another padding to these data structures and align then accordingly, and I guess this will solve the problem<br></li>
<li>Please help/guide me on every step starting from #1, as in how do I proceed, also I have started with shape.xml, so if you can give me ideas and suggestions relating to that then it would be great</li></ol>As I have already mentioned there was some major problem, as a result I did lose some proficiency on the subject but I have again started from this very point :-<br>
<br>diff --git a/doc/xml-xcb.txt b/doc/xml-xcb.txt<br>index 3c6a155..2d4d4c4 100644<br>--- a/doc/xml-xcb.txt<br>+++ b/doc/xml-xcb.txt<br>@@ -189,6 +189,11 @@ enum; the value is restricted to one of the constants named in the enum.<br>
This element declares some padding in a data structure. The bytes<br> attribute declares the number of bytes of padding.<br> <br>+<pad align="integer" /><br>+ <br>+ This element declares alignment in a data structure. The align attribute<br>
+ declares an alignment to extra padded elements. <br>+<br> <field type="identifier" name="identifier" /><br> <br> This element represents a field in a data structure. The type attribute<br>
diff --git a/src/xcb.xsd b/src/xcb.xsd<br>
index 7fdf125..6baafa4 100644<br>--- a/src/xcb.xsd<br>+++ b/src/xcb.xsd<br>@@ -42,7 +42,8 @@ authorization from the authors.<br> <!-- Padding --><br> <xsd:element name="pad"><br> <xsd:complexType><br>
- <xsd:attribute name="bytes" type="xsd:integer" use="required" /><br>+ <xsd:attribute name="bytes" type="xsd:integer" use="required" /><br>
+ <xsd:attribute name="align" type="xsd:integer" use="optional" /><br> </xsd:complexType><br> </xsd:element><br> <br><br>So how do I move from now on<br><br>Regards<br>
<br>Vikash<br>