[Xcb] XCB naming conventions

Eric Anholt eric at anholt.net
Wed Sep 13 11:44:23 PDT 2006


On Wed, 2006-09-13 at 14:19 -0400, Jeremy A. Kolb wrote:
> 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.

Yes!

-- 
Eric Anholt                             anholt at FreeBSD.org
eric at anholt.net                         eric.anholt at intel.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: This is a digitally signed message part
Url : http://lists.freedesktop.org/archives/xcb/attachments/20060913/596cb077/attachment.pgp


More information about the Xcb mailing list