[Xcb] XCB naming conventions

Jeremy A. Kolb jkolb at brandeis.edu
Wed Sep 13 11:19:05 PDT 2006


Hi all,

There's been some chatter about the current naming convention in xcb.  
Vincent and I have been talking a lot about this lately and we both 
believe that it's just too unreadable right now.

It would be nice to follow other open source projects such at gtk or 
cairo.  As such we think that it would be more readable with the following 
changes:

For functions:
xcb_ followed by the extension and function name all in lowercase, words 
separated by underscores.

Ex.
xcb_window_new
xcb_glx_create_context.

For structures/enums/unions etc.:
Xcb followed by the extension and name with the first letter of 
each word capitalized,

Ex.
XcbWindow
XcbGlxContext


We think this would be much easier to read.  What's everyone think?  This 
would require changes to ecore/x11/mesa/xcb-utils etc. But nothing a good 
sed script wouldn't be able to handle.

Jeremy

::Puts on his flame retardent undies::



More information about the Xcb mailing list