Re: silly libusbhid question

2010-09-09 Thread Maksim Yevmenkin
On Wed, Sep 8, 2010 at 11:59 PM, Hans Petter Selasky wrote: > >> In kernel and userspace this is currently a feature in the HID libraries. > > And I agree that maybe this should be changed. Before changing anything please > grep the kernel sources for this function and check that no callers are us

Re: silly libusbhid question

2010-09-09 Thread Hans Petter Selasky
> In kernel and userspace this is currently a feature in the HID libraries. And I agree that maybe this should be changed. Before changing anything please grep the kernel sources for this function and check that no callers are using this feature, or add this missing 1 << hid_collection mask. -

Re: silly libusbhid question

2010-09-09 Thread Hans Petter Selasky
On Wednesday 08 September 2010 20:57:50 Maksim Yevmenkin wrote: > hello, > > [trying current@ first to get wider audience :)] > > so, i have a somewhat silly question about libusbhid. please consider > the following code > > hid_data_t d; > hid_item_t h; > > for (d = hid_start_parse(d

silly libusbhid question

2010-09-08 Thread Maksim Yevmenkin
hello, [trying current@ first to get wider audience :)] so, i have a somewhat silly question about libusbhid. please consider the following code hid_data_t d; hid_item_t h; for (d = hid_start_parse(desc, 1 << hid_input, -1); hid_get_item(d, &h) > 0; ) { ... } hid_end_parse(d); the id