[Xcb] XCB error handling; my penultimate proposal

Barton C Massey bart at cs.pdx.edu
Sun Dec 18 21:12:10 PST 2005

Actually, (1) isn't what the APIs describe now, although
it's close.  If we were to make the current API do (1), then
applications that didn't check *Reply() for null on *every*
request would lose, and you would still have to put an error
handler in the event loop to handle errors from non-reply

So Keithp's proposal (4) is that we do the above; if
desired, we can extend with a bunch of *Nerr() requests ala
my proposal (3) later to get Jamey's functionality.

Comments?  Especially from someone other than the three of


In message <1134963912.8789.4.camel at evo.keithp.com> you wrote:
> --=-smV1m+VK5dvK0/5QTcys
> Content-Type: text/plain
> Content-Transfer-Encoding: quoted-printable
> On Sun, 2005-12-18 at 09:32 -0800, Barton C Massey wrote:
> > Of course, my favorite is alternative 3: "let's do both!"
> I suggest that we can implement 1) now (it's what the API looks like)
> and see if anyone finds reasonable uses for 2), at which point we can
> add it using Bart's suggested APIs.
> While the uniform behaviour of always processing errors through the
> normal event loop is appealingly symmetrical, I'm afraid I haven't seen
> any substantive use cases where this is better than returning errors
> where the reply would have been, and there are plenty of examples where
> returning the error precisely where the reply would have been makes
> things far easier.
> We can obviously add Bart's APIs in a later release; I only suggest that
> we hold off until we find a compelling reason to extend the library in
> this fashion.
> -keith
> --=-smV1m+VK5dvK0/5QTcys
> Content-Type: application/pgp-signature; name=signature.asc
> Content-Description: This is a digitally signed message part
> Version: GnuPG v1.4.2 (GNU/Linux)
> iD8DBQBDpizHQp8BWwlsTdMRAnjBAJ4vGdwLtqyxJb5qlbYXU6GzKBrUfQCgpfEY
> 5gUxWg4Bs2RbWxNKSTPtkjU=
> =XGu8
> --=-smV1m+VK5dvK0/5QTcys--

-------------- next part --------------
An embedded message was scrubbed...
From: Barton C Massey <bart at cs.pdx.edu>
Subject: [Xcb] XCB error handling; my penultimate proposal
Date: Sun, 18 Dec 2005 09:32:22 -0800
Size: 5274
Url: http://lists.freedesktop.org/archives/xcb/attachments/20051218/d32ca93d/attachment.mht

More information about the Xcb mailing list