[Xcb] xprint

Jeremy Kolb jkolb at brandeis.edu
Fri Jul 22 22:17:14 EST 2005


Quoting Jamey Sharp <jamey at minilop.net>:

> On Thu, 2005-07-14 at 22:34 -0400, Jeremy A. Kolb wrote:
>> I just submitted the proto for xprint.
>>
>> However there are some padding issues I'm unsure about.  There are replies
>> returning multiple lists separated by padding, variable-length strings
>> being sent in requests.  Anyone have any idea on how to handle these?
>
> I do this too often on this list but... uh...
>
> AUGGHHH!
>
> AFAIK XML-XCB doesn't currently support variable-length lists in the
> middle of structures, as in the xprint example:
>
>    <struct name="PRINTER">
>        <field type="CARD32" name="nameLen" />
>        <list type="STRING8" name="name">
>            <fieldref>nameLen</fieldref>
>        </list>
>        <!-- Padding -->
>        <field type="CARD32" name="descLen" />
>        <list type="STRING8" name="description">
>            <fieldref>descLen</fieldref>
>        </list>
>        <!-- More padding -->
>    </struct>
>
> I don't know what to suggest right now.
>
> --Jamey
>

Yeah I know :(

Even if we could fix this, is there a way to calculate the padding where my
comments are?  There are a number of places in xprint where they've decided
to place padding between variable-length lists.

Jeremy


More information about the xcb mailing list