[Xcb] a question about request and reply

Vincent Torri Vincent.Torri at iecn.u-nancy.fr
Tue Dec 13 13:26:19 PST 2005



On Tue, 13 Dec 2005, Jamey Sharp wrote:

> On Tue, Dec 13, 2005 at 07:16:45PM +0100, Vincent Torri wrote:
> > On Tue, 13 Dec 2005, Barton C Massey wrote:
> > > Yes, the reply is currently queued until you force the
> > > cookie, so you'll leak memory.  Nothing worse. :-)

good. I know what I have to do, now.

> > > It seems to me pretty straightforward to add
> > > XCBDiscardCookie(GenericCookie) to the interface.
> >
> > there is a GenericCookie ? I've only see VoidCookie and all the others
> > corresponding to the requests. I think that such a structure should be
> > added.
>
> 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 ?

Vincent


More information about the Xcb mailing list