[Xcb] valueparam does not work in reply
Josh Triplett
josh@freedesktop.org
Fri Jan 21 22:16:57 PST 2005
Jeremy Kolb wrote:
> <valueparam> does not work in reply:
>
> <request name="GetFBConfigs" opcode="21">
> <field type="CARD32" name="screen" />
> <reply>
> <pad bytes="1" />
> <field type="CARD32" name="numFBConfigs" />
> <field type="CARD32" name="numProperties" />
> <pad bytes="16" />
> <valueparam value-mask-type="CARD32"
> value-mask-name="value_mask"
> value-list-name="value_list" />
> </reply>
> </request>
>
> generates:
>
> XCBGLXGetFBConfigsCookie XCBGLXGetFBConfigs(XCBConnection *c, CARD32
> screen);
> CARD32 *XCBGLXGetFBConfigsValueList(XCBGLXGetFBConfigsRep *R);
> int XCBGLXGetFBConfigsValueListLength(XCBGLXGetFBConfigsRep *R);
> XCBGenericIter XCBGLXGetFBConfigsValueListEnd(XCBGLXGetFBConfigsRep *R);
> XCBGLXGetFBConfigsRep *XCBGLXGetFBConfigsReply(XCBConnection *c,
> XCBGLXGetFBConfigsCookie cookie, XCBGenericError **e);
>
> value_mask is undefined, c doesn't like that.
Check the reply structure definition in the C header file; it should
have a "CARD32 value_mask". The function definitions you quote are only
for retrieving variable-length data like the list, but the mask is a
normal field.
- 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/ff20ccda/signature.pgp
More information about the xcb
mailing list