[Xcb] [PATCH] xfixes: Update to version 5

Neil Roberts neil at linux.intel.com
Fri Feb 15 04:08:37 PST 2013


Bart Massey <bart at cs.pdx.edu> writes:

> I would love to have the names in XCB match the names in the
> spec--this was a design goal of XCB. Those are painful looking names,
> however. I wonder if there's some compromise? --Bart

I wonder if it would be possible to get the spec changed? It looks like
the headers in Xlib don't define an enum and people just directly write
the magic constant numbers so it probably wouldn't affect anyone if it
changed.

- Neil

> On Tue, Feb 5, 2013 at 4:30 PM, Neil Roberts <neil at linux.intel.com> wrote:

>> In the spec the name of the enum is BarrierDirections and it has
>> values like ‘BarrierPositiveX’. This would end up with painfully long
>> names like this:
>>
>> XCB_XFIXES_BARRIER_DIRECTION_MASK_BARRIER_POSITIVE_X
>>
>> Therefore I went with the same name that you suggested, i.e.
>> ‘DirectionMask’ with values like ‘PositiveX’.
---------------------------------------------------------------------
Intel Corporation (UK) Limited
Registered No. 1134945 (England)
Registered Office: Pipers Way, Swindon SN3 1RJ
VAT No: 860 2173 47

This e-mail and any attachments may contain confidential material for
the sole use of the intended recipient(s). Any review or distribution
by others is strictly prohibited. If you are not the intended
recipient, please contact the sender and delete all copies.


More information about the Xcb mailing list