[Xcb] using enums as type in sync.xml

Thomas Hunger hto at arcor.de
Thu Sep 6 09:35:54 PDT 2007

Sorry, I missed this comment:

>  (We can't give the enum a size because it may  
> be reused in different requests for fields with differing sizes.)

That would bring back another old thread:


Maybe we should keep the type="CARD32" but introduce an extra tag to 
<field/> and <valueparam/> which describes the possible values. E.g. 
in sync.xml:

  <field type="CARD32" values="ALARMSTATE" name="wait_type" />

This would capture the meaning for higher-level bindings and keep the 
binary level easily checkable against the specs.


More information about the Xcb mailing list