Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
6bf21e1a
Commit
6bf21e1a
authored
Jan 27, 2017
by
Aric Stewart
Committed by
Alexandre Julliard
Jan 30, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
hid: Implement HidP_MaxDataListLength.
Signed-off-by:
Aric Stewart
<
aric@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
1ce40299
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
22 additions
and
1 deletion
+22
-1
hid.spec
dlls/hid/hid.spec
+1
-1
hidp.c
dlls/hid/hidp.c
+20
-0
hidpi.h
include/ddk/hidpi.h
+1
-0
No files found.
dlls/hid/hid.spec
View file @
6bf21e1a
...
...
@@ -32,7 +32,7 @@
@ stdcall HidP_GetUsagesEx(long long ptr ptr ptr ptr long)
@ stdcall HidP_GetValueCaps(long ptr ptr ptr)
@ stdcall HidP_InitializeReportForID(long long ptr ptr long)
@ st
ub HidP_MaxDataListLength
@ st
dcall HidP_MaxDataListLength(long ptr)
@ stdcall HidP_MaxUsageListLength(long long ptr)
@ stub HidP_SetData
@ stub HidP_SetScaledUsageValue
...
...
dlls/hid/hidp.c
View file @
6bf21e1a
...
...
@@ -763,3 +763,23 @@ NTSTATUS WINAPI HidP_GetUsagesEx(HIDP_REPORT_TYPE ReportType, USHORT LinkCollect
return
rc
;
}
ULONG
WINAPI
HidP_MaxDataListLength
(
HIDP_REPORT_TYPE
ReportType
,
PHIDP_PREPARSED_DATA
PreparsedData
)
{
WINE_HIDP_PREPARSED_DATA
*
data
=
(
WINE_HIDP_PREPARSED_DATA
*
)
PreparsedData
;
TRACE
(
"(%i, %p)
\n
"
,
ReportType
,
PreparsedData
);
if
(
data
->
magic
!=
HID_MAGIC
)
return
0
;
switch
(
ReportType
)
{
case
HidP_Input
:
return
data
->
caps
.
NumberInputDataIndices
;
case
HidP_Output
:
return
data
->
caps
.
NumberOutputDataIndices
;
case
HidP_Feature
:
return
data
->
caps
.
NumberFeatureDataIndices
;
default:
return
0
;
}
}
include/ddk/hidpi.h
View file @
6bf21e1a
...
...
@@ -181,6 +181,7 @@ NTSTATUS WINAPI HidP_TranslateUsagesToI8042ScanCodes(USAGE *ChangedUsageList, UL
NTSTATUS
WINAPI
HidP_GetSpecificButtonCaps
(
HIDP_REPORT_TYPE
ReportType
,
USAGE
UsagePage
,
USHORT
LinkCollection
,
USAGE
Usage
,
HIDP_BUTTON_CAPS
*
ButtonCaps
,
USHORT
*
ButtonCapsLength
,
PHIDP_PREPARSED_DATA
PreparsedData
);
NTSTATUS
WINAPI
HidP_GetSpecificValueCaps
(
HIDP_REPORT_TYPE
ReportType
,
USAGE
UsagePage
,
USHORT
LinkCollection
,
USAGE
Usage
,
HIDP_VALUE_CAPS
*
ValueCaps
,
USHORT
*
ValueCapsLength
,
PHIDP_PREPARSED_DATA
PreparsedData
);
NTSTATUS
WINAPI
HidP_GetUsagesEx
(
HIDP_REPORT_TYPE
ReportType
,
USHORT
LinkCollection
,
USAGE_AND_PAGE
*
ButtonList
,
ULONG
*
UsageLength
,
PHIDP_PREPARSED_DATA
PreparsedData
,
CHAR
*
Report
,
ULONG
ReportLength
);
ULONG
WINAPI
HidP_MaxDataListLength
(
HIDP_REPORT_TYPE
ReportType
,
PHIDP_PREPARSED_DATA
PreparsedData
);
#ifndef FACILITY_HID_ERROR_CODE
#define FACILITY_HID_ERROR_CODE 0x11
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment