[Xcb] xinput: make ListInputDevices work, sumof with nested expr, ...

Christian Linhart chris at DemoRecorder.com
Tue Oct 28 23:57:15 PDT 2014


On 10/21/14 23:15, Ran Benita wrote:
> On Wed, Sep 03, 2014 at 01:14:23PM +0200, Christian Linhart wrote:
[...]
>> * make sumof more flexible. Especially support a nested expression which is evaluated
>>   in the scope of each list-element which is iterated to compute sumof.
>>   Example:
>>         <sumof ref="devices">
>>             <fieldref>num_class_info</fieldref>
>>         </sumof>
> 
> The proto patches as in ListInputDevices-V4 [1], all look good to me. The
> fact that ref/lenfield_name can now also point to a list depending on if
> there's an expression is a bit confusing. But summing over an expression
> is inevitable, and this solves the problem nicely (as far as the xml
> goes), so no bikeshedding from me 
Thank you.
Can I count that as a Reviewed-By from you for the xml-changes?
Or will you send these separately as a reply to each individual xml-change?

> (/me resists suggesting unwarranted
> generalizations of this - or we'll end up with map/reduce :).
Yep, thinking about map and reduce is tempting as an intellectual exercise. 
I have to force my mind to stop working on ideas for that. :-)

Seriously, I hope that we'll never have a protocol-spec that needs map or reduce.

> 
> I'll look at the implementation in the generator next.
Thank you!

Chris

> 
> Ran
> 
> [1] http://infra-srv1.demorecorder.com/gitweb/?p=free-sw/xcb/proto;a=shortlog;h=refs/heads/ListInputDevices-V4



More information about the Xcb mailing list