[Xcb] 0 sequence number for request errors?

Vincent Torri Vincent.Torri at iecn.u-nancy.fr
Sat Dec 17 22:07:14 PST 2005

Maybe using a global variable, that stores that kind of error. Maybe it
also can be used for others errors too.


On Sat, 17 Dec 2005, Barton C Massey wrote:

> One of the biggest holes in current XCB API is that there's
> no way to find out that a request failed to be sent---in
> particular, a request that doesn't require a reply.
> One hack to get this behavior would be to "reserve" the
> sequence number 0 for an error return.  IOW, a request that
> returned a sequence number of 0 has failed.  This would
> require skipping sequence number 0 by issuing a noop inside
> XCB at this point.
> Obviously, this isn't the prettiest solution.  But it could
> work, and would solve a real problem.  Comments?  Alternate
> suggestions?
>     Bart
> _______________________________________________
> Xcb mailing list
> Xcb at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/xcb

More information about the Xcb mailing list