[Xcb] Bug 6254: remove XCB's xproto/X11 dependency
Jamey Sharp
jamey at minilop.net
Tue Mar 14 00:08:16 PST 2006
On Mon, Mar 13, 2006 at 09:30:29PM -0500, Jeremy Kolb wrote:
> > The <enum> construct generates very wordy symbols. (Example: enum {
> > XCBWindowClassInputOutput = 1 } XCBWindowClass; where previously one
> > only had to deal with InputOutput). You could argue that this is a
> > feature, though perhaps not for masks. Maybe an option to prefix the
> > members just with "XCB" and not the full name of the enumeration?
>
> I really think we need a better way of handling enums. The names are
> way too unwieldly. Vincent and I have talked about this but we couldn't
> come up with a good solution. I really think it needs to be changed
> though, not developer friendly at all.
I like "developer-friendly" where possible, but one response to this is
that I don't expect many people to program directly to XCB. Usually some
toolkit is preferable; only the authors of toolkits, and some libraries
like Cairo and libGL, should care much about XCB's API. My preference
would be an API that closely reflects the protocol documentation. A bit
of typing won't kill anyone.
That said, I'll take patches for a pretty wide variety of approaches at
this point, partly because I don't feel strongly about this part of the
API design and partly because I don't want to go very long without a
solution.
--Jamey
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://lists.freedesktop.org/archives/xcb/attachments/20060314/b78e0a50/attachment.pgp
More information about the Xcb
mailing list