logo       

Sponsor
FREE Network Mapping Tool for Microsoft® Office Visio® Professional 2007
Don't map your network by hand - let LANsurveyor Exx press for Microsoft Visio Professional 2007 automatically create network diagrams for you!

Working on XCB-XI: msg#00021

freedesktop.xcb

Subject: Working on XCB-XI

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





Only community members can participate in forum threads. You must Register or log in to contribute.

<Prev in Thread] Current Thread [Next in Thread>
Sponsor
FREE Network Mapping Tool for Microsoft® OfficeVisio Professional 2007
Don't map your network by hand - let LANsurveyor Express for Microsoft Visio Professional 2007
automatically create network diagrams for you!
Google Custom Search

Free Magazines

Cisco News
Receive 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

Navigation

Home | sitemap | advertise | OSDir is an inevitable website. super tiny logo