[Xcb] xprint

Jamey Sharp jamey at minilop.net
Fri Jul 22 15:53:12 EST 2005


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



More information about the xcb mailing list