Module: wine Branch: master Commit: c177e938ae3eba7e967650b9edc4a1bc0c89cd45 URL: http://source.winehq.org/git/wine.git/?a=commit;h=c177e938ae3eba7e967650b9ed...
Author: Damjan Jovanovic damjan.jov@gmail.com Date: Thu Mar 18 09:30:43 2010 +0200
usbd.sys: Add stub usbd.sys.
---
configure | 6 ++++++ configure.ac | 1 + dlls/usbd.sys/Makefile.in | 13 +++++++++++++ dlls/usbd.sys/usbd.c | 38 ++++++++++++++++++++++++++++++++++++++ dlls/usbd.sys/usbd.sys.spec | 33 +++++++++++++++++++++++++++++++++ 5 files changed, 91 insertions(+), 0 deletions(-)
diff --git a/configure b/configure index 1532d88..bb09801 100755 --- a/configure +++ b/configure @@ -15613,6 +15613,11 @@ wine_fn_config_test dlls/urlmon/tests urlmon_test wine_fn_config_makefile dlls/urlmon/tests "Maketest.rules $(MAKEDEP)" test "x$enable_tests" != xno && wine_fn_append_file ALL_TEST_DIRS "dlls/urlmon/tests"
+wine_fn_append_file ALL_IMPORT_LIBS "dlls/usbd.sys/libusbd.sys.$IMPLIBEXT" +wine_fn_config_dll usbd.sys usbd.sys +wine_fn_config_makefile dlls/usbd.sys "dlls/Makedll.rules $(MAKEDEP)" +test "x$enable_usbd_sys" != xno && wine_fn_append_file ALL_DLL_DIRS "dlls/usbd.sys" + wine_fn_config_dll user.exe16 wine_fn_config_makefile dlls/user.exe16 "dlls/Makedll.rules $(MAKEDEP)" test "x$enable_win16" != xno && wine_fn_append_file ALL_DLL_DIRS "dlls/user.exe16" @@ -17342,6 +17347,7 @@ do "dlls/url/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/url/Makefile" ;; "dlls/urlmon/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/urlmon/Makefile" ;; "dlls/urlmon/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/urlmon/tests/Makefile" ;; + "dlls/usbd.sys/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/usbd.sys/Makefile" ;; "dlls/user.exe16/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/user.exe16/Makefile" ;; "dlls/user32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/user32/Makefile" ;; "dlls/user32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/user32/tests/Makefile" ;; diff --git a/configure.ac b/configure.ac index 3bb3536..1decf12 100644 --- a/configure.ac +++ b/configure.ac @@ -2537,6 +2537,7 @@ WINE_CONFIG_DLL(updspapi) WINE_CONFIG_DLL(url,,[url]) WINE_CONFIG_DLL(urlmon,,[urlmon]) WINE_CONFIG_TEST(dlls/urlmon/tests) +WINE_CONFIG_DLL(usbd.sys,,[usbd.sys]) WINE_CONFIG_DLL(user.exe16,enable_win16) WINE_CONFIG_DLL(user32,,[user32]) WINE_CONFIG_TEST(dlls/user32/tests) diff --git a/dlls/usbd.sys/Makefile.in b/dlls/usbd.sys/Makefile.in new file mode 100644 index 0000000..9fe2fed --- /dev/null +++ b/dlls/usbd.sys/Makefile.in @@ -0,0 +1,13 @@ +TOPSRCDIR = @top_srcdir@ +TOPOBJDIR = ../.. +SRCDIR = @srcdir@ +VPATH = @srcdir@ +MODULE = usbd.sys +IMPORTLIB = usbd.sys +IMPORTS = kernel32 ntoskrnl.exe +EXTRADLLFLAGS = -Wb,--subsystem,native + +C_SRCS = \ + usbd.c + +@MAKE_DLL_RULES@ diff --git a/dlls/usbd.sys/usbd.c b/dlls/usbd.sys/usbd.c new file mode 100644 index 0000000..e734acd --- /dev/null +++ b/dlls/usbd.sys/usbd.c @@ -0,0 +1,38 @@ +/* + * Copyright (C) 2010 Damjan Jovanovic + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA + */ + +#include <stdarg.h> + +#define NONAMELESSUNION +#define NONAMELESSSTRUCT + +#include "ntstatus.h" +#define WIN32_NO_STATUS +#include "windef.h" +#include "winbase.h" +#include "winternl.h" +#include "ddk/wdm.h" +#include "wine/debug.h" + +WINE_DEFAULT_DEBUG_CHANNEL(usbd); + +NTSTATUS WINAPI DriverEntry( DRIVER_OBJECT *driver, UNICODE_STRING *path ) +{ + TRACE( "(%p, %s)\n", driver, debugstr_w(path->Buffer) ); + return STATUS_SUCCESS; +} diff --git a/dlls/usbd.sys/usbd.sys.spec b/dlls/usbd.sys/usbd.sys.spec new file mode 100644 index 0000000..c8f1d68 --- /dev/null +++ b/dlls/usbd.sys/usbd.sys.spec @@ -0,0 +1,33 @@ +@ stub USBD_CreateConfigurationRequestEx +@ stub USBD_ParseConfigurationDescriptorEx +@ stub USBD_ParseDescriptors +@ stub USBD_AllocateDeviceName +@ stub USBD_CalculateUsbBandwidth +@ stub USBD_CompleteRequest +@ stub USBD_CreateConfigurationRequest +@ stub _USBD_CreateConfigurationRequestEx@8 +@ stub USBD_CreateDevice +@ stub USBD_Debug_GetHeap +@ stub USBD_Debug_LogEntry +@ stub USBD_Debug_RetHeap +@ stub USBD_Dispatch +@ stub USBD_FreeDeviceMutex +@ stub USBD_FreeDeviceName +@ stub USBD_GetDeviceInformation +@ stub USBD_GetInterfaceLength +@ stub USBD_GetPdoRegistryParameter +@ stub USBD_GetSuspendPowerState +@ stub USBD_GetUSBDIVersion +@ stub USBD_InitializeDevice +@ stub USBD_MakePdoName +@ stub USBD_ParseConfigurationDescriptor +@ stub _USBD_ParseConfigurationDescriptorEx@28 +@ stub _USBD_ParseDescriptors@16 +@ stub USBD_QueryBusTime +@ stub USBD_RegisterHcDeviceCapabilities +@ stub USBD_RegisterHcFilter +@ stub USBD_RegisterHostController +@ stub USBD_RemoveDevice +@ stub USBD_RestoreDevice +@ stub USBD_SetSuspendPowerState +@ stub USBD_WaitDeviceMutex