[Xcb] STRING8?

Josh Triplett josh@freedesktop.org
Fri Jan 21 17:58:48 PST 2005


[Moved back to the xcb@freedesktop.org list; hope you don't mind.]

Jeremy Kolb wrote:
> Josh Triplett wrote:
>> Jeremy Kolb wrote:
>>
>>> How do I represent a string in XCB? In the docs I see STRING8 but it's
>>> not in xcb.
>>
>> From the X protocol specification (available in the Debian package
>>
>> "xspecs" as /usr/share/doc/xspecs/proto.txt.gz):
>>
>> -------------------------------------------------------------------
>> Name           Value
>> -------------------------------------------------------------------
>> [...]
>> STRING8        LISTofCARD8
>>
>> A STRING8 is just a list of type CARD8.
> Right, but the size is defined by the value of another field. So how
> do I express that?

The content of the list element is an expression giving the length of
the list.  For example:

<list type="CARD8" name="str"><fieldref>another_field</fieldref></list>

- Josh Triplett
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 251 bytes
Desc: OpenPGP digital signature
Url : http://lists.freedesktop.org/archives/xcb/attachments/20050121/f22161a0/signature.pgp


More information about the xcb mailing list