[Xcb] a question about request and reply

Jamey Sharp jamey at minilop.net
Tue Dec 13 14:38:44 PST 2005

On Tue, Dec 13, 2005 at 10:26:19PM +0100, Vincent Torri wrote:
> On Tue, 13 Dec 2005, Jamey Sharp wrote:
> > There isn't a GenericCookie, and I don't want to add one. Functions like
> > XCBWaitForReply just take the 'unsigned int' from inside the cookie
> > structure. I don't want to encourage casting structures any more than I
> > have to.
> so, instead of using a generic cookie, it's better to pass the sequence
> (the unsigned int) directly ?

I think so, yes -- but even better to design type-safe interfaces.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://lists.freedesktop.org/archives/xcb/attachments/20051213/227563bb/attachment.pgp

More information about the Xcb mailing list