[Xcb] design to handle requests and reply in ecore_xcb

Vincent Torri Vincent.Torri at iecn.u-nancy.fr
Mon Dec 12 11:15:56 PST 2005



On Mon, 12 Dec 2005, Jamey Sharp wrote:

> On Sun, Dec 11, 2005 at 02:45:14AM +0100, Vincent Torri wrote:
> > hey,
>
> Hi Vincent!
>
> > I would like, in ecore, to add in a queue the requests and store the
> > cookie and reply function. I have paste some (untested) code below. I
> > would like to have your opinion about its design: is it good ? Is there a
> > better solution ? etc...
>
> Maybe I don't understand what you're trying to accomplish. This code
> doesn't appear to do anything with the replies that come back.

indeed, it's an old version :D it does absolutely nothing :D Sorry. I have
another version that returns the replies. I have something but maybe

>
> Does xcb-util/reply provide something like what you want?

haa, i've forgotten it. i don't know if I can use it for ecore_xcb. It
looks a bit overheaded maybe. I want to have an array and not a list. But
what i've done looks a bit like that :)

Btw, why are the threads necessary in xcb_reply ? I don't use them. Is it
BAD ?

Vincent


More information about the Xcb mailing list