[PATCH v4] windows.networking: Add stub dll.

Zhiyi Zhang zzhang at codeweavers.com
Mon Apr 25 03:46:24 CDT 2022


Required for Iragon: Prologue.

Signed-off-by: Zhiyi Zhang <zzhang at codeweavers.com>
---
v3: Supersede 233210. Remove unnecessary ordinal numbers.
v4: Supersede 233635. Add SetSocketMediaStreamingMode() stub. Thanks, Rémi.

 configure.ac                                  |  1 +
 dlls/windows.networking/Makefile.in           |  4 +++
 dlls/windows.networking/main.c                | 29 +++++++++++++++++
 .../windows.networking.spec                   |  8 +++++
 include/socketapi.h                           | 32 +++++++++++++++++++
 5 files changed, 74 insertions(+)
 create mode 100644 dlls/windows.networking/Makefile.in
 create mode 100644 dlls/windows.networking/main.c
 create mode 100644 dlls/windows.networking/windows.networking.spec
 create mode 100644 include/socketapi.h

diff --git a/configure.ac b/configure.ac
index 75292210bc4..74c80fd7fa8 100644
--- a/configure.ac
+++ b/configure.ac
@@ -3098,6 +3098,7 @@ WINE_CONFIG_MAKEFILE(dlls/windows.media.devices)
 WINE_CONFIG_MAKEFILE(dlls/windows.media.devices/tests)
 WINE_CONFIG_MAKEFILE(dlls/windows.media.speech)
 WINE_CONFIG_MAKEFILE(dlls/windows.media.speech/tests)
+WINE_CONFIG_MAKEFILE(dlls/windows.networking)
 WINE_CONFIG_MAKEFILE(dlls/windowscodecs)
 WINE_CONFIG_MAKEFILE(dlls/windowscodecs/tests)
 WINE_CONFIG_MAKEFILE(dlls/windowscodecsext)
diff --git a/dlls/windows.networking/Makefile.in b/dlls/windows.networking/Makefile.in
new file mode 100644
index 00000000000..19ca237ec36
--- /dev/null
+++ b/dlls/windows.networking/Makefile.in
@@ -0,0 +1,4 @@
+MODULE = windows.networking.dll
+
+C_SRCS = \
+	main.c
diff --git a/dlls/windows.networking/main.c b/dlls/windows.networking/main.c
new file mode 100644
index 00000000000..3ac8a3042ab
--- /dev/null
+++ b/dlls/windows.networking/main.c
@@ -0,0 +1,29 @@
+/*
+ * Copyright 2022 Zhiyi Zhang for CodeWeavers
+ *
+ * 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 <windef.h>
+#include <winnt.h>
+#include "wine/debug.h"
+
+WINE_DEFAULT_DEBUG_CHANNEL(winsock);
+
+HRESULT WINAPI SetSocketMediaStreamingMode(BOOL value)
+{
+    FIXME("value %d stub!\n", value);
+    return S_OK;
+}
diff --git a/dlls/windows.networking/windows.networking.spec b/dlls/windows.networking/windows.networking.spec
new file mode 100644
index 00000000000..49fdb3aab18
--- /dev/null
+++ b/dlls/windows.networking/windows.networking.spec
@@ -0,0 +1,8 @@
+1 stub @
+@ stub DllCanUnloadNow
+@ stub DllGetActivationFactory
+@ stub DllGetClassObject
+@ stub DllMain
+@ stub DllRegisterServer
+@ stub DllUnregisterServer
+@ stdcall SetSocketMediaStreamingMode(long)
diff --git a/include/socketapi.h b/include/socketapi.h
new file mode 100644
index 00000000000..a3e8220972f
--- /dev/null
+++ b/include/socketapi.h
@@ -0,0 +1,32 @@
+/*
+ * Copyright 2022 Zhiyi Zhang for CodeWeavers
+ *
+ * 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
+ */
+
+#ifndef SOCKETAPI_H
+#define SOCKETAPI_H
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+HRESULT WINAPI SetSocketMediaStreamingMode(BOOL value);
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif /* SOCKETAPI_H */
-- 
2.32.0



More information about the wine-devel mailing list