[2/5] windowscodecs: Add wrapper functions for IWICMetadataQueryWriter methods.

Vincent Povirk madewokherd at gmail.com
Mon May 14 09:26:34 CDT 2012


-------------- next part --------------
From 6d15edcbc665102664b7e9a2d55886415e427024 Mon Sep 17 00:00:00 2001
From: Vincent Povirk <vincent at codeweavers.com>
Date: Tue, 8 May 2012 11:04:29 -0500
Subject: [PATCH 02/13] windowscodecs: Add wrapper functions for
 IWICMetadataQueryWriter methods.

---
 dlls/windowscodecs/proxy.c            |   12 ++++++++++++
 dlls/windowscodecs/windowscodecs.spec |    4 ++--
 2 files changed, 14 insertions(+), 2 deletions(-)

diff --git a/dlls/windowscodecs/proxy.c b/dlls/windowscodecs/proxy.c
index aa1f08b..969fdcb 100644
--- a/dlls/windowscodecs/proxy.c
+++ b/dlls/windowscodecs/proxy.c
@@ -301,6 +301,18 @@ HRESULT WINAPI IWICMetadataQueryReader_GetEnumerator_Proxy_W(IWICMetadataQueryRe
     return IWICMetadataQueryReader_GetEnumerator(iface, ppIEnumString);
 }
 
+HRESULT WINAPI IWICMetadataQueryWriter_SetMetadataByName_Proxy_W(IWICMetadataQueryWriter *iface,
+    LPCWSTR wzName, const PROPVARIANT *pvarValue)
+{
+    return IWICMetadataQueryWriter_SetMetadataByName(iface, wzName, pvarValue);
+}
+
+HRESULT WINAPI IWICMetadataQueryWriter_RemoveMetadataByName_Proxy_W(IWICMetadataQueryWriter *iface,
+    LPCWSTR wzName)
+{
+    return IWICMetadataQueryWriter_RemoveMetadataByName(iface, wzName);
+}
+
 HRESULT WINAPI IWICPalette_InitializePredefined_Proxy_W(IWICPalette *iface,
     WICBitmapPaletteType ePaletteType, BOOL fAddTransparentColor)
 {
diff --git a/dlls/windowscodecs/windowscodecs.spec b/dlls/windowscodecs/windowscodecs.spec
index 3629bad..c0dfead 100644
--- a/dlls/windowscodecs/windowscodecs.spec
+++ b/dlls/windowscodecs/windowscodecs.spec
@@ -89,8 +89,8 @@
 @ stdcall IWICMetadataQueryReader_GetEnumerator_Proxy(ptr ptr) IWICMetadataQueryReader_GetEnumerator_Proxy_W
 @ stdcall IWICMetadataQueryReader_GetLocation_Proxy(ptr long ptr ptr) IWICMetadataQueryReader_GetLocation_Proxy_W
 @ stdcall IWICMetadataQueryReader_GetMetadataByName_Proxy(ptr wstr ptr) IWICMetadataQueryReader_GetMetadataByName_Proxy_W
-@ stub IWICMetadataQueryWriter_RemoveMetadataByName_Proxy
-@ stub IWICMetadataQueryWriter_SetMetadataByName_Proxy
+@ stdcall IWICMetadataQueryWriter_RemoveMetadataByName_Proxy(ptr wstr) IWICMetadataQueryWriter_RemoveMetadataByName_Proxy_W
+@ stdcall IWICMetadataQueryWriter_SetMetadataByName_Proxy(ptr wstr ptr) IWICMetadataQueryWriter_SetMetadataByName_Proxy_W
 @ stdcall IWICPalette_GetColorCount_Proxy(ptr ptr) IWICPalette_GetColorCount_Proxy_W
 @ stdcall IWICPalette_GetColors_Proxy(ptr long ptr ptr) IWICPalette_GetColors_Proxy_W
 @ stdcall IWICPalette_GetType_Proxy(ptr ptr) IWICPalette_GetType_Proxy_W
-- 
1.7.9.5


More information about the wine-patches mailing list