Nikolay Sivov : mfsrcsnk: Add a stub dll.
Alexandre Julliard
julliard at winehq.org
Mon Aug 15 15:22:31 CDT 2022
Module: wine
Branch: master
Commit: 73d6ca6e1e7399ffe8282d81ae299976d6b38410
URL: https://gitlab.winehq.org/wine/wine/-/commit/73d6ca6e1e7399ffe8282d81ae299976d6b38410
Author: Nikolay Sivov <nsivov at codeweavers.com>
Date: Fri Aug 12 13:24:11 2022 +0300
mfsrcsnk: Add a stub dll.
Signed-off-by: Nikolay Sivov <nsivov at codeweavers.com>
---
configure | 2 ++
configure.ac | 1 +
dlls/mfsrcsnk/Makefile.in | 7 +++++++
dlls/mfsrcsnk/mfsrcsnk.spec | 1 +
dlls/mfsrcsnk/wave.c | 33 +++++++++++++++++++++++++++++++++
include/mfidl.idl | 1 +
6 files changed, 45 insertions(+)
diff --git a/configure b/configure
index 9a426b619bb..d28c299743b 100755
--- a/configure
+++ b/configure
@@ -1170,6 +1170,7 @@ enable_mfmediaengine
enable_mfplat
enable_mfplay
enable_mfreadwrite
+enable_mfsrcsnk
enable_mgmtapi
enable_midimap
enable_mlang
@@ -21600,6 +21601,7 @@ wine_fn_config_makefile dlls/mfplay enable_mfplay
wine_fn_config_makefile dlls/mfplay/tests enable_tests
wine_fn_config_makefile dlls/mfreadwrite enable_mfreadwrite
wine_fn_config_makefile dlls/mfreadwrite/tests enable_tests
+wine_fn_config_makefile dlls/mfsrcsnk enable_mfsrcsnk
wine_fn_config_makefile dlls/mgmtapi enable_mgmtapi
wine_fn_config_makefile dlls/midimap enable_midimap
wine_fn_config_makefile dlls/mlang enable_mlang
diff --git a/configure.ac b/configure.ac
index 560d66c46de..9525621c93f 100644
--- a/configure.ac
+++ b/configure.ac
@@ -2740,6 +2740,7 @@ WINE_CONFIG_MAKEFILE(dlls/mfplay)
WINE_CONFIG_MAKEFILE(dlls/mfplay/tests)
WINE_CONFIG_MAKEFILE(dlls/mfreadwrite)
WINE_CONFIG_MAKEFILE(dlls/mfreadwrite/tests)
+WINE_CONFIG_MAKEFILE(dlls/mfsrcsnk)
WINE_CONFIG_MAKEFILE(dlls/mgmtapi)
WINE_CONFIG_MAKEFILE(dlls/midimap)
WINE_CONFIG_MAKEFILE(dlls/mlang)
diff --git a/dlls/mfsrcsnk/Makefile.in b/dlls/mfsrcsnk/Makefile.in
new file mode 100644
index 00000000000..a110a5058f1
--- /dev/null
+++ b/dlls/mfsrcsnk/Makefile.in
@@ -0,0 +1,7 @@
+MODULE = mfsrcsnk.dll
+IMPORTLIB = mfsrcsnk
+
+EXTRADLLFLAGS = -Wb,--prefer-native
+
+C_SRCS = \
+ wave.c
diff --git a/dlls/mfsrcsnk/mfsrcsnk.spec b/dlls/mfsrcsnk/mfsrcsnk.spec
new file mode 100644
index 00000000000..9acfef27ae2
--- /dev/null
+++ b/dlls/mfsrcsnk/mfsrcsnk.spec
@@ -0,0 +1 @@
+@ stdcall MFCreateWAVEMediaSink(ptr ptr ptr)
diff --git a/dlls/mfsrcsnk/wave.c b/dlls/mfsrcsnk/wave.c
new file mode 100644
index 00000000000..d9d51ac62e2
--- /dev/null
+++ b/dlls/mfsrcsnk/wave.c
@@ -0,0 +1,33 @@
+/*
+ * Copyright 2022 Nikolay Sivov 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 "mfidl.h"
+#include "wine/debug.h"
+
+WINE_DEFAULT_DEBUG_CHANNEL(mfplat);
+
+/***********************************************************************
+ * MFCreateWAVEMediaSink (mfplat.@)
+ */
+HRESULT WINAPI MFCreateWAVEMediaSink(IMFByteStream *bytestream, IMFMediaType *media_type,
+ IMFMediaSink **sink)
+{
+ FIXME("%p, %p, %p.\n", bytestream, media_type, sink);
+
+ return E_NOTIMPL;
+}
diff --git a/include/mfidl.idl b/include/mfidl.idl
index 72e96d1c598..c42fba77fbe 100644
--- a/include/mfidl.idl
+++ b/include/mfidl.idl
@@ -719,6 +719,7 @@ cpp_quote("HRESULT WINAPI MFCreateTopology(IMFTopology **topology);")
cpp_quote("HRESULT WINAPI MFCreateTopologyNode(MF_TOPOLOGY_TYPE node_type, IMFTopologyNode **node);")
cpp_quote("HRESULT WINAPI MFCreateTopoLoader(IMFTopoLoader **loader);")
cpp_quote("HRESULT WINAPI MFCreateVideoRendererActivate(HWND hwnd, IMFActivate **activate);")
+cpp_quote("HRESULT WINAPI MFCreateWAVEMediaSink(IMFByteStream *stream, IMFMediaType *media_type, IMFMediaSink **sink);")
cpp_quote("HRESULT WINAPI MFEnumDeviceSources(IMFAttributes *attributes, IMFActivate ***sources, UINT32 *count);")
cpp_quote("HRESULT WINAPI MFGetSupportedMimeTypes(PROPVARIANT *array);")
cpp_quote("HRESULT WINAPI MFGetSupportedSchemes(PROPVARIANT *array);")
More information about the wine-cvs
mailing list