Module: wine Branch: master Commit: a4689aaeeee907cb995391db39703c8ca32b221c URL: http://source.winehq.org/git/wine.git/?a=commit;h=a4689aaeeee907cb995391db39...
Author: Alexander Scott-Johns alexander.scott.johns@googlemail.com Date: Fri Jun 26 23:12:21 2009 +0100
rtutils: Add stub dll.
---
configure | 9 +++++++ configure.ac | 1 + dlls/Makefile.in | 5 ++++ dlls/rtutils/Makefile.in | 14 +++++++++++ dlls/rtutils/main.c | 47 +++++++++++++++++++++++++++++++++++++ dlls/rtutils/rtutils.spec | 56 +++++++++++++++++++++++++++++++++++++++++++++ 6 files changed, 132 insertions(+), 0 deletions(-)
diff --git a/configure b/configure index 3ede4fc..51a5440 100755 --- a/configure +++ b/configure @@ -27151,6 +27151,14 @@ dlls/rsaenh/tests/Makefile: dlls/rsaenh/tests/Makefile.in dlls/Maketest.rules" ac_config_files="$ac_config_files dlls/rsaenh/tests/Makefile"
ALL_MAKEFILES="$ALL_MAKEFILES \ + dlls/rtutils/Makefile" +test "x$enable_rtutils" != xno && ALL_DLL_DIRS="$ALL_DLL_DIRS \ + rtutils" +ALL_MAKEFILE_DEPENDS="$ALL_MAKEFILE_DEPENDS +dlls/rtutils/Makefile: dlls/rtutils/Makefile.in dlls/Makedll.rules" +ac_config_files="$ac_config_files dlls/rtutils/Makefile" + +ALL_MAKEFILES="$ALL_MAKEFILES \ dlls/sane.ds/Makefile" test "x$enable_sane_ds" != xno && ALL_DLL_DIRS="$ALL_DLL_DIRS \ sane.ds" @@ -29682,6 +29690,7 @@ do "dlls/rsabase/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/rsabase/Makefile" ;; "dlls/rsaenh/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/rsaenh/Makefile" ;; "dlls/rsaenh/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/rsaenh/tests/Makefile" ;; + "dlls/rtutils/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/rtutils/Makefile" ;; "dlls/sane.ds/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/sane.ds/Makefile" ;; "dlls/sccbase/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/sccbase/Makefile" ;; "dlls/schannel/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/schannel/Makefile" ;; diff --git a/configure.ac b/configure.ac index 6392039..2dafff3 100644 --- a/configure.ac +++ b/configure.ac @@ -2324,6 +2324,7 @@ WINE_CONFIG_MAKEFILE([dlls/rpcrt4/tests/Makefile],[dlls/Maketest.rules],[dlls],[ WINE_CONFIG_MAKEFILE([dlls/rsabase/Makefile],[dlls/Makedll.rules],[dlls],[ALL_DLL_DIRS]) WINE_CONFIG_MAKEFILE([dlls/rsaenh/Makefile],[dlls/Makedll.rules],[dlls],[ALL_DLL_DIRS]) WINE_CONFIG_MAKEFILE([dlls/rsaenh/tests/Makefile],[dlls/Maketest.rules],[dlls],[ALL_TEST_DIRS],[enable_tests]) +WINE_CONFIG_MAKEFILE([dlls/rtutils/Makefile],[dlls/Makedll.rules],[dlls],[ALL_DLL_DIRS]) WINE_CONFIG_MAKEFILE([dlls/sane.ds/Makefile],[dlls/Makedll.rules],[dlls],[ALL_DLL_DIRS]) WINE_CONFIG_MAKEFILE([dlls/sccbase/Makefile],[dlls/Makedll.rules],[dlls],[ALL_DLL_DIRS]) WINE_CONFIG_MAKEFILE([dlls/schannel/Makefile],[dlls/Makedll.rules],[dlls],[ALL_DLL_DIRS]) diff --git a/dlls/Makefile.in b/dlls/Makefile.in index a55d715..edb73cb 100644 --- a/dlls/Makefile.in +++ b/dlls/Makefile.in @@ -188,6 +188,7 @@ IMPORT_LIBS = \ riched20/libriched20.$(IMPLIBEXT) \ rpcrt4/librpcrt4.$(IMPLIBEXT) \ rsaenh/librsaenh.$(IMPLIBEXT) \ + rtutils/librtutils.$(IMPLIBEXT) \ secur32/libsecur32.$(IMPLIBEXT) \ sensapi/libsensapi.$(IMPLIBEXT) \ serialui/libserialui.$(IMPLIBEXT) \ @@ -332,6 +333,7 @@ CROSS_IMPLIBS = \ riched20/libriched20.a \ rpcrt4/librpcrt4.a \ rsaenh/librsaenh.a \ + rtutils/librtutils.a \ secur32/libsecur32.a \ sensapi/libsensapi.a \ serialui/libserialui.a \ @@ -682,6 +684,9 @@ rpcrt4/librpcrt4.def rpcrt4/librpcrt4.a: rpcrt4/rpcrt4.spec $(WINEBUILD) rsaenh/librsaenh.def rsaenh/librsaenh.a: rsaenh/rsaenh.spec $(WINEBUILD) @cd rsaenh && $(MAKE) `basename $@`
+rtutils/librtutils.def rtutils/librtutils.a: rtutils/rtutils.spec $(WINEBUILD) + @cd rtutils && $(MAKE) `basename $@` + secur32/libsecur32.def secur32/libsecur32.a: secur32/secur32.spec $(WINEBUILD) @cd secur32 && $(MAKE) `basename $@`
diff --git a/dlls/rtutils/Makefile.in b/dlls/rtutils/Makefile.in new file mode 100644 index 0000000..dfe9bbb --- /dev/null +++ b/dlls/rtutils/Makefile.in @@ -0,0 +1,14 @@ +TOPSRCDIR = @top_srcdir@ +TOPOBJDIR = ../.. +SRCDIR = @srcdir@ +VPATH = @srcdir@ +MODULE = rtutils.dll +IMPORTLIB = rtutils +IMPORTS = kernel32 + +C_SRCS = \ + main.c + +@MAKE_DLL_RULES@ + +@DEPENDENCIES@ # everything below this line is overwritten by make depend diff --git a/dlls/rtutils/main.c b/dlls/rtutils/main.c new file mode 100644 index 0000000..009101a --- /dev/null +++ b/dlls/rtutils/main.c @@ -0,0 +1,47 @@ +/* + * rtutils main + * + * Copyright 2009 Alexander Scott-Johns + * + * 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> + +#include "windef.h" +#include "winbase.h" +#include "wine/debug.h" + +WINE_DEFAULT_DEBUG_CHANNEL(rtutils); + +/*********************************************************************** + * DllMain (RTUTILS.@) + */ +BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved) +{ + TRACE("(0x%p, %d, %p)\n",hinstDLL,fdwReason,lpvReserved); + + switch(fdwReason) + { + case DLL_WINE_PREATTACH: + return FALSE; /* prefer native version */ + case DLL_PROCESS_ATTACH: + DisableThreadLibraryCalls( hinstDLL ); + break; + } + + return TRUE; +} diff --git a/dlls/rtutils/rtutils.spec b/dlls/rtutils/rtutils.spec new file mode 100644 index 0000000..008009c --- /dev/null +++ b/dlls/rtutils/rtutils.spec @@ -0,0 +1,56 @@ +@ stub CreateWaitEvent +@ stub CreateWaitEventBinding +@ stub CreateWaitTimer +@ stub DeRegisterWaitEventBinding +@ stub DeRegisterWaitEventBindingSelf +@ stub DeRegisterWaitEventsTimers +@ stub DeRegisterWaitEventsTimersSelf +@ stub DebugPrintWaitWorkerThreads +@ stub LogErrorA +@ stub LogErrorW +@ stub LogEventA +@ stub LogEventW +@ stub MprSetupProtocolEnum +@ stub MprSetupProtocolFree +@ stub QueueWorkItem +@ stub RegisterWaitEventBinding +@ stub RegisterWaitEventsTimers +@ stub RouterAssert +@ stub RouterGetErrorStringA +@ stub RouterGetErrorStringW +@ stub RouterLogDeregisterA +@ stub RouterLogDeregisterW +@ stub RouterLogEventA +@ stub RouterLogEventDataA +@ stub RouterLogEventDataW +@ stub RouterLogEventExA +@ stub RouterLogEventExW +@ stub RouterLogEventStringA +@ stub RouterLogEventStringW +@ stub RouterLogEventValistExA +@ stub RouterLogEventValistExW +@ stub RouterLogEventW +@ stub RouterLogRegisterA +@ stub RouterLogRegisterW +@ stub SetIoCompletionProc +@ stub TraceDeregisterA +@ stub TraceDeregisterExA +@ stub TraceDeregisterExW +@ stub TraceDeregisterW +@ stub TraceDumpExA +@ stub TraceDumpExW +@ stub TraceGetConsoleA +@ stub TraceGetConsoleW +@ stub TracePrintfA +@ stub TracePrintfExA +@ stub TracePrintfExW +@ stub TracePrintfW +@ stub TracePutsExA +@ stub TracePutsExW +@ stub TraceRegisterExA +@ stub TraceRegisterExW +@ stub TraceVprintfExA +@ stub TraceVprintfExW +@ stub UpdateWaitTimer +@ stub WTFreeEvent +@ stub WTFreeTimer