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