[PATCH 1/4] hid: Change format of preparsed data.
Piotr Caban
piotr at codeweavers.com
Mon May 13 05:33:56 CDT 2019
Advantages of this format:
- all table elements have constant size, that makes iterating table easier
- allow report lookup by report ID in O(1) time
- doesn't sort reports, it makes it possible to preserve original order
of elements making output of functions more similar to native
- preparsed data is created from collection, this will allow to add
support for multiple top-most collections
Signed-off-by: Piotr Caban <piotr at codeweavers.com>
---
dlls/hid/hidp.c | 239 +++++++-----------
dlls/hid/parse.h | 39 ++-
dlls/hidclass.sys/descriptor.c | 437 +++++++++++----------------------
dlls/hidclass.sys/device.c | 4 +-
dlls/hidclass.sys/parse.h | 25 +-
5 files changed, 250 insertions(+), 494 deletions(-)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-hid-Change-format-of-preparsed-data.txt
Type: text/x-patch
Size: 53918 bytes
Desc: not available
URL: <http://www.winehq.org/pipermail/wine-devel/attachments/20190513/0523b6cd/attachment-0001.bin>
More information about the wine-devel
mailing list