Piotr Caban : hid: Change format of preparsed data.

Alexandre Julliard julliard at winehq.org
Mon May 13 16:24:17 CDT 2019


Module: wine
Branch: master
Commit: 395d268565893c10875cbe903d2e1b77d6d7e3a0
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=395d268565893c10875cbe903d2e1b77d6d7e3a0

Author: Piotr Caban <piotr at codeweavers.com>
Date:   Mon May 13 12:33:56 2019 +0200

hid: Change format of preparsed data.

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>
Signed-off-by: Aric Stewart <aric at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 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(-)

Diff:   https://source.winehq.org/git/wine.git/?a=commitdiff;h=395d268565893c10875cbe903d2e1b77d6d7e3a0



More information about the wine-cvs mailing list