[Xcb] Proposal: Link fields to enums in the protocol XML files

Peter Harris pharris at opentext.com
Mon Jan 5 12:41:38 PST 2009

Barton C Massey wrote:
> In message <49624DA3.2050606 at opentext.com> you wrote:
>> The two options I see are: (a) Allow an enum to contain other enums, or
>> (b) duplicate by hand the contents of ButtonMask and ModMask.
>> What are your thoughts?
> Just allow multiple occurrences of the mask reference in the
> field values?  Or am I missing something here?

XML doesn't allow multiple attributes with the same name.

We could try (c) change everything to <field><mask/></field> in order to
get multiple masks, but that feels ugly too.

Peter Harris
               Open Text Connectivity Solutions Group
Peter Harris                    http://www.opentext.com/connectivity
Research and Development        Phone: +1 905 762 6001
pharris at opentext.com            Toll Free: 1 877 359 4866

More information about the Xcb mailing list