mirror of
https://github.com/reactos/reactos.git
synced 2025-08-05 07:02:56 +00:00
[HIDPARSER] Remove HID_PARSER class, and directly use functions
This commit is contained in:
parent
9df05ba4b6
commit
c151f8a1c7
7 changed files with 118 additions and 338 deletions
|
@ -81,7 +81,6 @@ HidParser_CalculateContextSize(
|
|||
|
||||
ULONG
|
||||
HidParser_StoreCollection(
|
||||
IN PHID_PARSER Parser,
|
||||
IN PHID_COLLECTION Collection,
|
||||
IN PHID_COLLECTION_CONTEXT CollectionContext,
|
||||
IN ULONG CurrentOffset)
|
||||
|
@ -105,7 +104,7 @@ HidParser_StoreCollection(
|
|||
//
|
||||
// first copy the collection details
|
||||
//
|
||||
Parser->Copy(TargetCollection, Collection, sizeof(HID_COLLECTION));
|
||||
CopyFunction(TargetCollection, Collection, sizeof(HID_COLLECTION));
|
||||
|
||||
//
|
||||
// calulcate collection size
|
||||
|
@ -140,7 +139,7 @@ HidParser_StoreCollection(
|
|||
//
|
||||
// copy report item
|
||||
//
|
||||
Parser->Copy(&CollectionContext->RawData[CurrentOffset], Collection->Reports[Index], ReportSize);
|
||||
CopyFunction(&CollectionContext->RawData[CurrentOffset], Collection->Reports[Index], ReportSize);
|
||||
|
||||
//
|
||||
// store offset to report item
|
||||
|
@ -168,7 +167,7 @@ HidParser_StoreCollection(
|
|||
//
|
||||
// store sub collections
|
||||
//
|
||||
CurrentOffset += HidParser_StoreCollection(Parser, Collection->Nodes[Index], CollectionContext, CurrentOffset);
|
||||
CurrentOffset += HidParser_StoreCollection(Collection->Nodes[Index], CollectionContext, CurrentOffset);
|
||||
|
||||
//
|
||||
// sanity check
|
||||
|
@ -184,7 +183,6 @@ HidParser_StoreCollection(
|
|||
|
||||
HIDPARSER_STATUS
|
||||
HidParser_BuildCollectionContext(
|
||||
IN PHID_PARSER Parser,
|
||||
IN PHID_COLLECTION RootCollection,
|
||||
IN PVOID Context,
|
||||
IN ULONG ContextSize)
|
||||
|
@ -201,7 +199,7 @@ HidParser_BuildCollectionContext(
|
|||
//
|
||||
// store collections
|
||||
//
|
||||
CollectionSize = HidParser_StoreCollection(Parser, RootCollection, CollectionContext, 0);
|
||||
CollectionSize = HidParser_StoreCollection(RootCollection, CollectionContext, 0);
|
||||
|
||||
//
|
||||
// sanity check
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue