[Xcb] Mixing xlib/xcb with self-generated protocol?
Clemens Eisserer
linuxhippy at gmail.com
Thu Oct 23 10:26:57 PDT 2008
Hi Jamey,
Thanks a lot for your answer.
> But yes, if you want to send larger batches of requests, you can call
> xcb_take_socket, then repeatedly xcb_writev until XCB calls the
> return_socket callback you provided and you return from it.
Perfect, exactly what I am looking for :)
> So Xlib can take ownership of the socket for
> a while, and then a hypothetical Intercal language binding can take
> over, and then your self-generated protocol bits can take over, and then
> you can make some calls through XCB's protocol stubs which means XCB
> itself owns the socket again. And all of this is thread-safe, barring
> implementation bugs.
What I am concerned is interaction between independent socket users.
E.g. will it be possible to "call" XRenderFillRectangles on a Picture
which was created by Xlib by another user, or will it be even possible
to create server-side objects on both "sides"?
Thanks a lot, Clemens
More information about the Xcb
mailing list