davclnt: add stub dll
Austin English
austinenglish at gmail.com
Tue Jul 7 12:02:35 CDT 2015
https://bugs.winehq.org/show_bug.cgi?id=37980
--
-Austin
-------------- next part --------------
From 019dec6d2b4ea08fbedeca769cf1b699f03dc2d1 Mon Sep 17 00:00:00 2001
From: Austin English <austinenglish at gmail.com>
Date: Tue, 7 Jul 2015 11:28:35 -0500
Subject: [PATCH] davclnt: add stub dll
---
configure.ac | 1 +
dlls/davclnt/Makefile.in | 4 ++++
dlls/davclnt/davclnt.spec | 23 +++++++++++++++++++++++
dlls/davclnt/main.c | 40 ++++++++++++++++++++++++++++++++++++++++
4 files changed, 68 insertions(+)
create mode 100644 dlls/davclnt/Makefile.in
create mode 100644 dlls/davclnt/davclnt.spec
create mode 100644 dlls/davclnt/main.c
diff --git a/configure.ac b/configure.ac
index cca4e0c..22f23b3 100644
--- a/configure.ac
+++ b/configure.ac
@@ -2894,6 +2894,7 @@ WINE_CONFIG_DLL(d3dx9_42)
WINE_CONFIG_DLL(d3dx9_43)
WINE_CONFIG_DLL(d3dxof,,[clean,implib])
WINE_CONFIG_TEST(dlls/d3dxof/tests)
+WINE_CONFIG_DLL(davclnt)
WINE_CONFIG_DLL(dbgeng,,[implib])
WINE_CONFIG_DLL(dbghelp,,[implib])
WINE_CONFIG_DLL(dciman32,,[implib])
diff --git a/dlls/davclnt/Makefile.in b/dlls/davclnt/Makefile.in
new file mode 100644
index 0000000..73af482
--- /dev/null
+++ b/dlls/davclnt/Makefile.in
@@ -0,0 +1,4 @@
+MODULE = davclnt.dll
+
+C_SRCS = \
+ main.c
diff --git a/dlls/davclnt/davclnt.spec b/dlls/davclnt/davclnt.spec
new file mode 100644
index 0000000..e05b6c4
--- /dev/null
+++ b/dlls/davclnt/davclnt.spec
@@ -0,0 +1,23 @@
+@ stub DavCancelConnectionsToServer
+@ stub DavFreeUsedDiskSpace
+@ stub DavGetDiskSpaceUsage
+@ stub DavGetTheLockOwnerOfTheFile
+@ stub DavInvalidateCache
+@ stub DavRegisterAuthCallback
+@ stub DavUnregisterAuthCallback
+@ stub DllCanUnloadNow
+@ stub DllGetClassObject
+@ stub DllMain
+@ stub NPAddConnection3
+@ stub NPAddConnection
+@ stub NPCancelConnection
+@ stub NPCloseEnum
+@ stub NPEnumResource
+@ stub NPFormatNetworkName
+@ stub NPGetCaps
+@ stub NPGetConnection
+@ stub NPGetResourceInformation
+@ stub NPGetResourceParent
+@ stub NPGetUniversalName
+@ stub NPGetUser
+@ stub NPOpenEnum
diff --git a/dlls/davclnt/main.c b/dlls/davclnt/main.c
new file mode 100644
index 0000000..099b915
--- /dev/null
+++ b/dlls/davclnt/main.c
@@ -0,0 +1,40 @@
+/*
+ * WebDav Client
+ *
+ * Copyright 2015 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 instance, DWORD reason, LPVOID reserved)
+{
+ switch (reason)
+ {
+ case DLL_WINE_PREATTACH:
+ return FALSE; /* prefer native version */
+ case DLL_PROCESS_ATTACH:
+ DisableThreadLibraryCalls(instance);
+ break;
+ }
+
+ return TRUE;
+}
--
2.4.2
More information about the wine-patches
mailing list