[1/3] windowscodecs: Add wrapper functions for IWICMetadataBlockReader methods.
Vincent Povirk
madewokherd at gmail.com
Thu May 17 08:25:50 CDT 2012
-------------- next part --------------
From 650a5b561448a1fab0ec8e441e4d443a27bb4064 Mon Sep 17 00:00:00 2001
From: Vincent Povirk <vincent at codeweavers.com>
Date: Tue, 8 May 2012 13:06:59 -0500
Subject: [PATCH 1/3] windowscodecs: Add wrapper functions for
IWICMetadataBlockReader methods.
---
dlls/windowscodecs/proxy.c | 13 +++++++++++++
dlls/windowscodecs/windowscodecs.spec | 4 ++--
2 files changed, 15 insertions(+), 2 deletions(-)
diff --git a/dlls/windowscodecs/proxy.c b/dlls/windowscodecs/proxy.c
index 6115198..8e6ff4a 100644
--- a/dlls/windowscodecs/proxy.c
+++ b/dlls/windowscodecs/proxy.c
@@ -29,6 +29,7 @@
#include "winbase.h"
#include "objbase.h"
#include "wincodec.h"
+#include "wincodecsdk.h"
#include "wincodecs_private.h"
@@ -499,6 +500,18 @@ HRESULT WINAPI IWICImagingFactory_CreateStream_Proxy_W(IWICImagingFactory *pFact
return IWICImagingFactory_CreateStream(pFactory, ppIWICStream);
}
+HRESULT WINAPI IWICMetadataBlockReader_GetCount_Proxy_W(IWICMetadataBlockReader *iface,
+ UINT *pcCount)
+{
+ return IWICMetadataBlockReader_GetCount(iface, pcCount);
+}
+
+HRESULT WINAPI IWICMetadataBlockReader_GetReaderByIndex_Proxy_W(IWICMetadataBlockReader *iface,
+ UINT nIndex, IWICMetadataReader **ppIMetadataReader)
+{
+ return IWICMetadataBlockReader_GetReaderByIndex(iface, nIndex, ppIMetadataReader);
+}
+
HRESULT WINAPI IWICMetadataQueryReader_GetContainerFormat_Proxy_W(IWICMetadataQueryReader *iface,
GUID *pguidContainerFormat)
{
diff --git a/dlls/windowscodecs/windowscodecs.spec b/dlls/windowscodecs/windowscodecs.spec
index 259ff06..80782f1 100644
--- a/dlls/windowscodecs/windowscodecs.spec
+++ b/dlls/windowscodecs/windowscodecs.spec
@@ -83,8 +83,8 @@
@ stdcall IWICImagingFactory_CreateQueryWriterFromReader_Proxy(ptr ptr ptr ptr) IWICImagingFactory_CreateQueryWriterFromReader_Proxy_W
@ stdcall IWICImagingFactory_CreateQueryWriter_Proxy(ptr ptr ptr ptr) IWICImagingFactory_CreateQueryWriter_Proxy_W
@ stdcall IWICImagingFactory_CreateStream_Proxy(ptr ptr) IWICImagingFactory_CreateStream_Proxy_W
-@ stub IWICMetadataBlockReader_GetCount_Proxy
-@ stub IWICMetadataBlockReader_GetReaderByIndex_Proxy
+@ stdcall IWICMetadataBlockReader_GetCount_Proxy(ptr ptr) IWICMetadataBlockReader_GetCount_Proxy_W
+@ stdcall IWICMetadataBlockReader_GetReaderByIndex_Proxy(ptr long ptr) IWICMetadataBlockReader_GetReaderByIndex_Proxy_W
@ stdcall IWICMetadataQueryReader_GetContainerFormat_Proxy(ptr ptr) IWICMetadataQueryReader_GetContainerFormat_Proxy_W
@ stdcall IWICMetadataQueryReader_GetEnumerator_Proxy(ptr ptr) IWICMetadataQueryReader_GetEnumerator_Proxy_W
@ stdcall IWICMetadataQueryReader_GetLocation_Proxy(ptr long ptr ptr) IWICMetadataQueryReader_GetLocation_Proxy_W
--
1.7.9.5
More information about the wine-patches
mailing list