[Xcb] Encoding a certain protocol request

Jeremy Kolb jkolb at brandeis.edu
Tue Mar 4 05:47:52 PST 2008


iirc we had this issue in the glx protocol and had to return void* or
something like that.

On Tue, 2008-03-04 at 00:07 -0500, Eamon Walsh wrote:
> I am trying to encode a reply that consists of a list of foo, where each 
> foo is the following structure:
> 
>   <struct name="ListItem">
>     <field type="ATOM" name="name" />
>     <field type="CARD32" name="object_context_len" />
>     <field type="CARD32" name="data_context_len" />
>     <list type="char" name="object_context">
>       <fieldref>object_context_len</fieldref>
>     </list>
>     <list type="char" name="data_context">
>       <fieldref>data_context_len</fieldref>
>     </list>
>   </struct>
> 
> This is evidently not supported by the stylesheet.  Is there a better 
> way to encode this?
> 
> The CARD32 length for the strings is not a requirement, but the STR8 
> type (256 char max) will not suffice.
> 
> 



More information about the Xcb mailing list