|
|
Sponsor |
Working on XCB-XI: msg#00021freedesktop.xcb
I just spent one exciting (well, not really) afternoon transforming XIproto.h into xml format. Which means I have a very preliminary version of XCB-XI. Two questions before I can post the xml file to the list and you guys can put it into xcb. 1) The XListInputDevices reply contains the following items: LISTofINPUTINFO where INPUTINFO can be either KEYINFO, BUTTONINFO or VALUATORINFO. How do I express it in the xcb-xml that the list is made up of any combination of those? something like <list type="KeyInfo|ButtonInfo|ValuatorInfo" name="inputinfo"> <fieldref>info</fieldref> </list> where KeyInfo, ButtonInfo and Valuator info are three different structs in the form <struct name="XXXInfo"> <field type="CARD8" name="class"/> <field type="CARD8" name="length"/> ... fields specific for each type </struct> The "class" field specifies what type it is. A similar problem happens with other requests/replies as well. 2) Is it possible to field-reference out of a struct? <request name="GetDeviceMotionEvents" opcode="10"> ... <field type="CARD8" name="nevents"/> <field type="CARD8" name="axes"/> ... <list type="DeviceTimeCoord" name="events"> <fieldref>nevents</fieldref> </list> </request> <struct name="DeviceTimeCoord"> ... <list type="CARD16" name="data"> <fieldref>axes</fieldref> // references the axes value in the request </list> </struct> I think that should be it. Once I can put that in XML, I should be done. Cheers, Peter -- Multi-Pointer X Server http://wearables.unisa.edu.au/mpx
|
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | libxcb_1.0-1_i386.changes is NEW, Debian Installer |
|---|---|
| Next by Date: | libxcb_1.0-1_i386.changes ACCEPTED, Debian Installer |
| Previous by Thread: | libxcb_1.0-1_i386.changes is NEW, Debian Installer |
| Next by Thread: | libxcb_1.0-1_i386.changes ACCEPTED, Debian Installer |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
Free MagazinesCisco NewsReceive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business. subscribe Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field. subscribe The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business. subscribe Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company. subscribe Total Telecom Total Telecom is "The Economist of the communications industry". subscribe |
Home | sitemap
| advertise | OSDir is
an inevitable website.
|