Rémi Bernon : hid: Implement HidP_SetUsageValueArray stub.

Alexandre Julliard julliard at winehq.org
Tue Jun 15 16:19:27 CDT 2021


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

Author: Rémi Bernon <rbernon at codeweavers.com>
Date:   Mon Jun 14 09:15:50 2021 +0200

hid: Implement HidP_SetUsageValueArray stub.

Signed-off-by: Rémi Bernon <rbernon at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/hid/hid.spec   |  2 +-
 dlls/hid/hidp.c     | 10 ++++++++++
 include/ddk/hidpi.h |  3 +++
 3 files changed, 14 insertions(+), 1 deletion(-)

diff --git a/dlls/hid/hid.spec b/dlls/hid/hid.spec
index 98508a456ce..edfdb004fd0 100644
--- a/dlls/hid/hid.spec
+++ b/dlls/hid/hid.spec
@@ -37,7 +37,7 @@
 @ stub HidP_SetData
 @ stub HidP_SetScaledUsageValue
 @ stdcall HidP_SetUsageValue(long long long long long ptr ptr long)
-@ stub HidP_SetUsageValueArray
+@ stdcall HidP_SetUsageValueArray(long long long long ptr long ptr ptr long)
 @ stdcall HidP_SetUsages(long long long ptr ptr ptr ptr long)
 @ stdcall HidP_TranslateUsagesToI8042ScanCodes(ptr long long ptr ptr ptr)
 @ stub HidP_UnsetUsages
diff --git a/dlls/hid/hidp.c b/dlls/hid/hidp.c
index 2933c2ff7ef..9eedf12b694 100644
--- a/dlls/hid/hidp.c
+++ b/dlls/hid/hidp.c
@@ -642,6 +642,16 @@ NTSTATUS WINAPI HidP_SetUsageValue(HIDP_REPORT_TYPE ReportType, USAGE UsagePage,
     return rc;
 }
 
+NTSTATUS WINAPI HidP_SetUsageValueArray( HIDP_REPORT_TYPE report_type, USAGE usage_page, USHORT collection,
+                                         USAGE usage, char *value_buf, USHORT value_len,
+                                         PHIDP_PREPARSED_DATA preparsed_data, char *report_buf, ULONG report_len )
+{
+    FIXME( "report_type %d, usage_page %x, collection %d, usage %x, value_buf %p, value_len %u, "
+           "preparsed_data %p, report_buf %p, report_len %u stub!\n",
+           report_type, usage_page, collection, usage, value_buf, value_len, preparsed_data, report_buf, report_len );
+
+    return HIDP_STATUS_NOT_IMPLEMENTED;
+}
 
 NTSTATUS WINAPI HidP_SetUsages(HIDP_REPORT_TYPE ReportType, USAGE UsagePage, USHORT LinkCollection,
                                PUSAGE UsageList, PULONG UsageLength, PHIDP_PREPARSED_DATA PreparsedData,
diff --git a/include/ddk/hidpi.h b/include/ddk/hidpi.h
index fb497f3282f..8c970673ec1 100644
--- a/include/ddk/hidpi.h
+++ b/include/ddk/hidpi.h
@@ -201,6 +201,9 @@ NTSTATUS WINAPI HidP_InitializeReportForID(HIDP_REPORT_TYPE ReportType, UCHAR Re
 ULONG WINAPI HidP_MaxUsageListLength(HIDP_REPORT_TYPE ReportType, USAGE UsagePage, PHIDP_PREPARSED_DATA PreparsedData);
 NTSTATUS WINAPI HidP_GetScaledUsageValue(HIDP_REPORT_TYPE ReportType, USAGE UsagePage, USHORT LinkCollection, USAGE Usage, PLONG UsageValue, PHIDP_PREPARSED_DATA PreparsedData, PCHAR Report, ULONG ReportLength);
 NTSTATUS WINAPI HidP_SetUsageValue(HIDP_REPORT_TYPE ReportType, USAGE UsagePage, USHORT LinkCollection, USAGE Usage, ULONG UsageValue, PHIDP_PREPARSED_DATA PreparsedData, CHAR *Report, ULONG ReportLength);
+NTSTATUS WINAPI HidP_SetUsageValueArray( HIDP_REPORT_TYPE ReportType, USAGE UsagePage, USHORT LinkCollection,
+                                         USAGE Usage, PCHAR UsageValue, USHORT UsageValueByteLength,
+                                         PHIDP_PREPARSED_DATA PreparsedData, PCHAR Report, ULONG ReportLength );
 NTSTATUS WINAPI HidP_SetUsages(HIDP_REPORT_TYPE ReportType, USAGE UsagePage,
         USHORT LinkCollection, PUSAGE UsageList, PULONG UsageLength,
         PHIDP_PREPARSED_DATA PreparsedData, PCHAR Report, ULONG ReportLength);




More information about the wine-cvs mailing list