[Xcb] _Problems_ in GSoC, 2011

vikash agrawal vikashagrawal1990 at gmail.com
Sat Jun 25 07:44:22 PDT 2011

Dear All,
For solving Bug 34037 <https://bugs.freedesktop.org/show_bug.cgi?id=34037> I
thought something like:-

   1. Find padding of each elements
   2. Comment all extra padded elements with - "// Extra padding of *integer
   * bytes" [This is a precautionary step ] [ I am* facing problem's* 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? ]
   3. 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
   4. 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

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 :-

diff --git a/doc/xml-xcb.txt b/doc/xml-xcb.txt
index 3c6a155..2d4d4c4 100644
--- a/doc/xml-xcb.txt
+++ b/doc/xml-xcb.txt
@@ -189,6 +189,11 @@ enum; the value is restricted to one of the constants
named in the enum.
   This element declares some padding in a data structure.  The bytes
   attribute declares the number of bytes of padding.

+<pad align="integer" />
+  This element declares alignment in a data structure. The align attribute
+  declares an alignment to extra padded elements.
 <field type="identifier" name="identifier" />

   This element represents a field in a data structure.  The type attribute
diff --git a/src/xcb.xsd b/src/xcb.xsd
index 7fdf125..6baafa4 100644
--- a/src/xcb.xsd
+++ b/src/xcb.xsd
@@ -42,7 +42,8 @@ authorization from the authors.
   <!-- Padding -->
   <xsd:element name="pad">
-      <xsd:attribute name="bytes" type="xsd:integer" use="required" />
+       <xsd:attribute name="bytes" type="xsd:integer" use="required" />
+       <xsd:attribute name="align" type="xsd:integer" use="optional" />

So how do I move from now on


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/xcb/attachments/20110625/056ea90c/attachment.html>

More information about the Xcb mailing list