[PATCH 1/4] hid: Change format of preparsed data.

Aric Stewart aric at codeweavers.com
Mon May 13 08:20:44 CDT 2019


Signed-off-by: Aric Stewart <aric at codeweavers.com>

On 5/13/19 5:33 AM, Piotr Caban wrote:
> 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(-)
> 
> 
> 
> 



More information about the wine-devel mailing list