upnp: add stub dll

Austin English austinenglish at gmail.com
Sun May 24 14:51:53 CDT 2009


See bug 18604.

-- 
-Austin
-------------- next part --------------
diff --git a/configure.ac b/configure.ac
index fc88e58..fd66f21 100644
--- a/configure.ac
+++ b/configure.ac
@@ -2238,6 +2238,7 @@ WINE_CONFIG_MAKEFILE([dlls/twain_32/tests/Makefile],[dlls/Maketest.rules],[dlls]
 WINE_CONFIG_MAKEFILE([dlls/typelib.dll16/Makefile],[dlls/Makedll.rules],[dlls],[ALL_DLL_DIRS],[enable_win16])
 WINE_CONFIG_MAKEFILE([dlls/unicows/Makefile],[dlls/Makedll.rules],[dlls],[ALL_DLL_DIRS])
 WINE_CONFIG_MAKEFILE([dlls/updspapi/Makefile],[dlls/Makedll.rules],[dlls],[ALL_DLL_DIRS])
+WINE_CONFIG_MAKEFILE([dlls/upnp/Makefile],[dlls/Makedll.rules],[dlls],[ALL_DLL_DIRS])
 WINE_CONFIG_MAKEFILE([dlls/url/Makefile],[dlls/Makedll.rules],[dlls],[ALL_DLL_DIRS])
 WINE_CONFIG_MAKEFILE([dlls/urlmon/Makefile],[dlls/Makedll.rules],[dlls],[ALL_DLL_DIRS])
 WINE_CONFIG_MAKEFILE([dlls/urlmon/tests/Makefile],[dlls/Maketest.rules],[dlls],[ALL_TEST_DIRS],[enable_tests])
diff --git a/dlls/upnp/Makefile.in b/dlls/upnp/Makefile.in
new file mode 100644
index 0000000..8af9fc6
--- /dev/null
+++ b/dlls/upnp/Makefile.in
@@ -0,0 +1,13 @@
+TOPSRCDIR = @top_srcdir@
+TOPOBJDIR = ../..
+SRCDIR    = @srcdir@
+VPATH     = @srcdir@
+MODULE    = upnp.dll
+IMPORTS   = kernel32
+
+C_SRCS = \
+	main.c
+
+ at MAKE_DLL_RULES@
+
+ at DEPENDENCIES@  # everything below this line is overwritten by make depend
diff --git a/dlls/upnp/main.c b/dlls/upnp/main.c
new file mode 100644
index 0000000..3f98dc1
--- /dev/null
+++ b/dlls/upnp/main.c
@@ -0,0 +1,48 @@
+/*
+ * Universal Plug and Play API implementation
+ * 
+ * Copyright 2009 Austin English
+ * 
+ * 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"
+
+BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved)
+{
+
+	switch (fdwReason)
+	{
+		case DLL_WINE_PREATTACH:
+			return FALSE;    /* prefer native version */
+		case DLL_PROCESS_ATTACH:
+			/* FIXME: Initialization */
+			DisableThreadLibraryCalls(hinstDLL);
+			break;
+			break;
+		case DLL_PROCESS_DETACH:
+			break;
+		default:
+			break;
+	}
+
+	return TRUE;
+}
+
diff --git a/dlls/upnp/upnp.spec b/dlls/upnp/upnp.spec
new file mode 100644
index 0000000..5c68b45
--- /dev/null
+++ b/dlls/upnp/upnp.spec
@@ -0,0 +1,6 @@
+@ stub HrRehydratorCreateServiceObject
+@ stub HrRehydratorInvokeServiceAction
+@ stub DllCanUnloadNow
+@ stub DllGetClassObject
+@ stub DllRegisterServer
+@ stub DllUnregisterServer
-- 
1.5.4.3


More information about the wine-patches mailing list