[Xcb] GSoC 2009: XKB and XI2 support

Barton C Massey bart at cs.pdx.edu
Tue Sep 15 22:45:43 PDT 2009


General question:

How up to date is proto/xml-xcb.txt ?  It looks like it was
last patched in February.  Is it current?

Anyway, Mariusz, if you have updated it to include your
changes in your repo, that would be great.

	Bart

In message <4AAF6484.70705 at gmail.com> you wrote:
>    I would need some RFC on new tags that I introduced for XKB, from the
> point of view of code generators of different languages.
> Now I will describe these tags here briefly:
>  - enumref - it's a reference to already declared enum item e.g.
>    <enumref ref="Const">MaxLegalKeyCode</enumref>
> 
>  - if - conditional inclusion of fields, based on expression, it always
> is the last field of struct, e.g.
>    <if name="ifHasPreserve">
>        <!-- expression -->
>        <fieldref>hasPreserve</fieldref>
>        <!-- fields for inclusion -->
>        <list > ...
> 
>   - bitcount - counts number of bits set or cleared, e.g.
>       <bitcount value="1"> <fieldref>namesPresent</fieldref> </bitcount>
> 
>   - switch - conditional inclusion of fields, in 2 variants:
>      - case - include exactly one set of fields that matches ( equaltity
> comparison ) e.g.:
> 	<switch name="switchX">
>              <value>3</value>
>              <case>
>                  <value>1</value>
>                  <fieldref>x</fieldref>
>              </case>
>              <case>
>                  <value>3</value>
>                  <fieldref>y</fieldref>
>              </case>
>         </switch>
>       in this example only y field will be included. This variant is a
> bit redundant - it can be replaced by if tag, so I didn't use it ...
>      - bitcase - include all that matches, in the example above, when
> 'case' is renamed to 'bitcase', x and y fields would be included in
> struct. I used this a lot.
> 
>     switch is always the last field of struct ( if it is present )
> 
>  - neg - bit negation, e.g.
>     <neg><fieldref>clear</fieldref></neg>
> 
>  - sumof - sumation of elements of list, e.g.
>     <sumof ref="nLevelsPerType" type="CARD16" />
> 
>  - replyof - makes copy of reply of given request a field of other
> request, e.g.
>     <replyof request="GetMap" name="map" />
> 
> I hope that these are all new tags.


More information about the Xcb mailing list