Module: wine Branch: master Commit: 2f4423e41b6368d351ceceefab4f03e63f27bfd8 URL: http://source.winehq.org/git/wine.git/?a=commit;h=2f4423e41b6368d351ceceefab...
Author: Christian Costa titan.costa@wanadoo.fr Date: Mon Apr 20 21:22:15 2009 +0200
xmllite: Add stubbed dll for xmllite.
---
configure | 9 ++++++++ configure.ac | 1 + dlls/xmllite/Makefile.in | 13 +++++++++++ dlls/xmllite/xmllite.spec | 6 +++++ dlls/xmllite/xmllite_main.c | 47 +++++++++++++++++++++++++++++++++++++++++++ 5 files changed, 76 insertions(+), 0 deletions(-)
diff --git a/configure b/configure index 4d41840..fbe40c0 100755 --- a/configure +++ b/configure @@ -27683,6 +27683,14 @@ dlls/xinput9_1_0/Makefile: dlls/xinput9_1_0/Makefile.in dlls/Makedll.rules" ac_config_files="$ac_config_files dlls/xinput9_1_0/Makefile"
ALL_MAKEFILES="$ALL_MAKEFILES \ + dlls/xmllite/Makefile" +test "x$enable_xmllite" != xno && ALL_DLL_DIRS="$ALL_DLL_DIRS \ + xmllite" +ALL_MAKEFILE_DEPENDS="$ALL_MAKEFILE_DEPENDS +dlls/xmllite/Makefile: dlls/xmllite/Makefile.in dlls/Makedll.rules" +ac_config_files="$ac_config_files dlls/xmllite/Makefile" + +ALL_MAKEFILES="$ALL_MAKEFILES \ documentation/Makefile" test "x$enable_documentation" != xno && ALL_TOP_DIRS="$ALL_TOP_DIRS \ documentation" @@ -29331,6 +29339,7 @@ do "dlls/xinput1_3/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/xinput1_3/Makefile" ;; "dlls/xinput1_3/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/xinput1_3/tests/Makefile" ;; "dlls/xinput9_1_0/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/xinput9_1_0/Makefile" ;; + "dlls/xmllite/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/xmllite/Makefile" ;; "documentation/Makefile") CONFIG_FILES="$CONFIG_FILES documentation/Makefile" ;; "fonts/Makefile") CONFIG_FILES="$CONFIG_FILES fonts/Makefile" ;; "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;; diff --git a/configure.ac b/configure.ac index bf5afe9..331ffdc 100644 --- a/configure.ac +++ b/configure.ac @@ -2289,6 +2289,7 @@ WINE_CONFIG_MAKEFILE([dlls/xinput1_2/Makefile],[dlls/Makedll.rules],[dlls],[ALL_ WINE_CONFIG_MAKEFILE([dlls/xinput1_3/Makefile],[dlls/Makedll.rules],[dlls],[ALL_DLL_DIRS]) WINE_CONFIG_MAKEFILE([dlls/xinput1_3/tests/Makefile],[dlls/Maketest.rules],[dlls],[ALL_TEST_DIRS],[enable_tests]) WINE_CONFIG_MAKEFILE([dlls/xinput9_1_0/Makefile],[dlls/Makedll.rules],[dlls],[ALL_DLL_DIRS]) +WINE_CONFIG_MAKEFILE([dlls/xmllite/Makefile],[dlls/Makedll.rules],[dlls],[ALL_DLL_DIRS]) WINE_CONFIG_MAKEFILE([documentation/Makefile],[Make.rules],[],[ALL_TOP_DIRS]) WINE_CONFIG_MAKEFILE([fonts/Makefile],[Make.rules],[],[ALL_TOP_DIRS]) WINE_CONFIG_MAKEFILE([include/Makefile],[Make.rules],[],[ALL_TOP_DIRS]) diff --git a/dlls/xmllite/Makefile.in b/dlls/xmllite/Makefile.in new file mode 100644 index 0000000..17d8dd1 --- /dev/null +++ b/dlls/xmllite/Makefile.in @@ -0,0 +1,13 @@ +TOPSRCDIR = @top_srcdir@ +TOPOBJDIR = ../.. +SRCDIR = @srcdir@ +VPATH = @srcdir@ +MODULE = xmllite.dll +IMPORTS = kernel32 + +C_SRCS = \ + xmllite_main.c + +@MAKE_DLL_RULES@ + +@DEPENDENCIES@ # everything below this line is overwritten by make depend diff --git a/dlls/xmllite/xmllite.spec b/dlls/xmllite/xmllite.spec new file mode 100644 index 0000000..cf43637 --- /dev/null +++ b/dlls/xmllite/xmllite.spec @@ -0,0 +1,6 @@ +@ stub CreateXmlReader +@ stub CreateXmlReaderInputWithEncodingCodePage +@ stub CreateXmlReaderInputWithEncodingName +@ stub CreateXmlWriter +@ stub CreateXmlWriterOutputWithEncodingCodePage +@ stub CreateXmlWriterOutputWithEncodingName diff --git a/dlls/xmllite/xmllite_main.c b/dlls/xmllite/xmllite_main.c new file mode 100644 index 0000000..d72903a --- /dev/null +++ b/dlls/xmllite/xmllite_main.c @@ -0,0 +1,47 @@ +/* + * XML parsing library + * + * Copyright 2009 Christian Costa + * + * 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 "config.h" + +#include <stdarg.h> + +#include "windef.h" +#include "winbase.h" +#include "wine/debug.h" + +WINE_DEFAULT_DEBUG_CHANNEL(xmllite); + +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; + case DLL_PROCESS_DETACH: + break; + } + + return TRUE; +}