Jacek Caban : mfplat: Added IMFPluginControl stub implementation.
Alexandre Julliard
julliard at wine.codeweavers.com
Fri Aug 7 10:57:43 CDT 2015
Module: wine
Branch: master
Commit: b33d7b869011b0485ce8296004feeea901391a79
URL: http://source.winehq.org/git/wine.git/?a=commit;h=b33d7b869011b0485ce8296004feeea901391a79
Author: Jacek Caban <jacek at codeweavers.com>
Date: Fri Aug 7 12:31:03 2015 +0200
mfplat: Added IMFPluginControl stub implementation.
---
dlls/mfplat/main.c | 99 +++++++++++++++++++++++++++++++++++++++++++++++++++++-
1 file changed, 98 insertions(+), 1 deletion(-)
diff --git a/dlls/mfplat/main.c b/dlls/mfplat/main.c
index 3376a2c..698c681 100644
--- a/dlls/mfplat/main.c
+++ b/dlls/mfplat/main.c
@@ -16,12 +16,15 @@
* 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>
+#define COBJMACROS
+
#include "windef.h"
#include "winbase.h"
+
+#include "initguid.h"
#include "mfapi.h"
#include "mferror.h"
@@ -60,3 +63,97 @@ HRESULT WINAPI MFShutdown(void)
FIXME("(): stub\n");
return S_OK;
}
+
+static HRESULT WINAPI MFPluginControl_QueryInterface(IMFPluginControl *iface, REFIID riid, void **ppv)
+{
+ if(IsEqualGUID(riid, &IID_IUnknown)) {
+ TRACE("(IID_IUnknown %p)\n", ppv);
+ *ppv = iface;
+ }else if(IsEqualGUID(riid, &IID_IMFPluginControl)) {
+ TRACE("(IID_IMFPluginControl %p)\n", ppv);
+ *ppv = iface;
+ }else {
+ FIXME("(%s %p)\n", debugstr_guid(riid), ppv);
+ *ppv = NULL;
+ return E_NOINTERFACE;
+ }
+
+ IUnknown_AddRef((IUnknown*)*ppv);
+ return S_OK;
+}
+
+static ULONG WINAPI MFPluginControl_AddRef(IMFPluginControl *iface)
+{
+ TRACE("\n");
+ return 2;
+}
+
+static ULONG WINAPI MFPluginControl_Release(IMFPluginControl *iface)
+{
+ TRACE("\n");
+ return 1;
+}
+
+static HRESULT WINAPI MFPluginControl_GetPreferredClsid(IMFPluginControl *iface, DWORD plugin_type,
+ const WCHAR *selector, CLSID *clsid)
+{
+ FIXME("(%d %s %p)\n", plugin_type, debugstr_w(selector), clsid);
+ return E_NOTIMPL;
+}
+
+static HRESULT WINAPI MFPluginControl_GetPreferredClsidByIndex(IMFPluginControl *iface, DWORD plugin_type,
+ DWORD index, WCHAR **selector, CLSID *clsid)
+{
+ FIXME("(%d %d %p %p)\n", plugin_type, index, selector, clsid);
+ return E_NOTIMPL;
+}
+
+static HRESULT WINAPI MFPluginControl_SetPreferredClsid(IMFPluginControl *iface, DWORD plugin_type,
+ const WCHAR *selector, const CLSID *clsid)
+{
+ FIXME("(%d %s %s)\n", plugin_type, debugstr_w(selector), debugstr_guid(clsid));
+ return E_NOTIMPL;
+}
+
+static HRESULT WINAPI MFPluginControl_IsDisabled(IMFPluginControl *iface, DWORD plugin_type, REFCLSID clsid)
+{
+ FIXME("(%d %s)\n", plugin_type, debugstr_guid(clsid));
+ return E_NOTIMPL;
+}
+
+static HRESULT WINAPI MFPluginControl_GetDisabledByIndex(IMFPluginControl *iface, DWORD plugin_type, DWORD index, CLSID *clsid)
+{
+ FIXME("(%d %d %p)\n", plugin_type, index, clsid);
+ return E_NOTIMPL;
+}
+
+static HRESULT WINAPI MFPluginControl_SetDisabled(IMFPluginControl *iface, DWORD plugin_type, REFCLSID clsid, BOOL disabled)
+{
+ FIXME("(%d %s %x)\n", plugin_type, debugstr_guid(clsid), disabled);
+ return E_NOTIMPL;
+}
+
+static const IMFPluginControlVtbl MFPluginControlVtbl = {
+ MFPluginControl_QueryInterface,
+ MFPluginControl_AddRef,
+ MFPluginControl_Release,
+ MFPluginControl_GetPreferredClsid,
+ MFPluginControl_GetPreferredClsidByIndex,
+ MFPluginControl_SetPreferredClsid,
+ MFPluginControl_IsDisabled,
+ MFPluginControl_GetDisabledByIndex,
+ MFPluginControl_SetDisabled
+};
+
+static IMFPluginControl plugin_control = { &MFPluginControlVtbl };
+
+/***********************************************************************
+ * MFGetPluginControl (mfplat.@)
+ */
+HRESULT WINAPI MFGetPluginControl(IMFPluginControl **ret)
+{
+ TRACE("(%p)\n", ret);
+
+ *ret = &plugin_control;
+ return S_OK;
+}
More information about the wine-cvs
mailing list