[Wine-patches] [eterhack] usbd.sys: Implement USBD_ParseConfigurationDescriptor.
Alexander Morozov
amorozov на etersoft.ru
Пн Авг 8 20:55:25 MSD 2011
----------- следующая часть -----------
From 17631937cd406f3769854737853f25c1b86ba078 Mon Sep 17 00:00:00 2001
From: Alexander Morozov <amorozov на etersoft.ru>
Date: Wed, 3 Aug 2011 15:06:01 +0400
Subject: [PATCH] usbd.sys: Implement USBD_ParseConfigurationDescriptor.
---
dlls/usbd.sys/usbd.c | 9 +++++++++
dlls/usbd.sys/usbd.sys.spec | 2 +-
include/ddk/usbdlib.h | 1 +
3 files changed, 11 insertions(+), 1 deletions(-)
diff --git a/dlls/usbd.sys/usbd.c b/dlls/usbd.sys/usbd.c
index 80fd02e..f20c481 100644
--- a/dlls/usbd.sys/usbd.c
+++ b/dlls/usbd.sys/usbd.c
@@ -198,6 +198,15 @@ PUSB_INTERFACE_DESCRIPTOR WINAPI USBD_ParseConfigurationDescriptorEx(
return NULL;
}
+PUSB_INTERFACE_DESCRIPTOR WINAPI USBD_ParseConfigurationDescriptor(
+ PUSB_CONFIGURATION_DESCRIPTOR ConfigurationDescriptor,
+ UCHAR InterfaceNumber, UCHAR AlternateSetting )
+{
+ TRACE( "(%p, %u, %u)\n", ConfigurationDescriptor, InterfaceNumber, AlternateSetting );
+ return USBD_ParseConfigurationDescriptorEx( ConfigurationDescriptor, ConfigurationDescriptor,
+ InterfaceNumber, AlternateSetting, -1, -1, -1 );
+}
+
PUSB_COMMON_DESCRIPTOR WINAPI USBD_ParseDescriptors(
PVOID DescriptorBuffer,
ULONG TotalLength,
diff --git a/dlls/usbd.sys/usbd.sys.spec b/dlls/usbd.sys/usbd.sys.spec
index 1cb507e..8104baa 100644
--- a/dlls/usbd.sys/usbd.sys.spec
+++ b/dlls/usbd.sys/usbd.sys.spec
@@ -20,7 +20,7 @@
@ stdcall USBD_GetUSBDIVersion(ptr)
@ stub USBD_InitializeDevice
@ stub USBD_MakePdoName
-@ stub USBD_ParseConfigurationDescriptor
+@ stdcall USBD_ParseConfigurationDescriptor(ptr long long)
@ stdcall _USBD_ParseConfigurationDescriptorEx на 28(ptr ptr long long long long long) USBD_ParseConfigurationDescriptorEx
@ stdcall _USBD_ParseDescriptors на 16(ptr long ptr long) USBD_ParseDescriptors
@ stub USBD_QueryBusTime
diff --git a/include/ddk/usbdlib.h b/include/ddk/usbdlib.h
index 0003816..ade33a2 100644
--- a/include/ddk/usbdlib.h
+++ b/include/ddk/usbdlib.h
@@ -30,6 +30,7 @@ PURB WINAPI USBD_CreateConfigurationRequestEx(PUSB_CONFIGURATION_DESCRIPTOR,PUSB
ULONG WINAPI USBD_GetInterfaceLength(PUSB_INTERFACE_DESCRIPTOR,PUCHAR);
VOID WINAPI USBD_GetUSBDIVersion(PUSBD_VERSION_INFORMATION);
PUSB_COMMON_DESCRIPTOR WINAPI USBD_ParseDescriptors(PVOID,ULONG,PVOID,LONG);
+PUSB_INTERFACE_DESCRIPTOR WINAPI USBD_ParseConfigurationDescriptor(PUSB_CONFIGURATION_DESCRIPTOR,UCHAR,UCHAR);
PUSB_INTERFACE_DESCRIPTOR WINAPI USBD_ParseConfigurationDescriptorEx(PUSB_CONFIGURATION_DESCRIPTOR,PVOID,LONG,LONG,LONG,LONG,LONG);
#endif
--
1.7.5.4
Подробная информация о списке рассылки Wine-patches