[PATCH] xmllite: Add stubbed dll for xmllite.

Christian Costa titan.costa at wanadoo.fr
Mon Apr 13 03:07:58 CDT 2009


---

 configure.ac                |    1 +
 dlls/xmllite/Makefile.in    |   13 +++++++++++
 dlls/xmllite/xmllite.spec   |    6 +++++
 dlls/xmllite/xmllite_main.c |   50 +++++++++++++++++++++++++++++++++++++++++++
 4 files changed, 70 insertions(+), 0 deletions(-)
 create mode 100644 dlls/xmllite/Makefile.in
 create mode 100644 dlls/xmllite/xmllite.spec
 create mode 100644 dlls/xmllite/xmllite_main.c
-------------- next part --------------
diff --git a/configure.ac b/configure.ac
index 1ef3191..0e11d34 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
+
+ at MAKE_DLL_RULES@
+
+ at 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..af79872
--- /dev/null
+++ b/dlls/xmllite/xmllite.spec
@@ -0,0 +1,6 @@
+1 stub CreateXmlReader
+2 stub CreateXmlReaderInputWithEncodingCodePage
+3 stub CreateXmlReaderInputWithEncodingName
+4 stub CreateXmlWriter
+5 stub CreateXmlWriterOutputWithEncodingCodePage
+6 stub CreateXmlWriterOutputWithEncodingName
diff --git a/dlls/xmllite/xmllite_main.c b/dlls/xmllite/xmllite_main.c
new file mode 100644
index 0000000..4db557f
--- /dev/null
+++ b/dlls/xmllite/xmllite_main.c
@@ -0,0 +1,50 @@
+/*
+ * 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:
+            /* FIXME: Initialisation */
+            DisableThreadLibraryCalls(hinstDLL);
+            break;
+        case DLL_PROCESS_DETACH:
+            break;
+        default:
+            break;
+    }
+
+    return TRUE;
+}


More information about the wine-patches mailing list