Rémi Bernon : include: Use fully qualified names in windows.foundation.collections.idl.

Alexandre Julliard julliard at winehq.org
Tue Feb 22 16:06:49 CST 2022


Module: wine
Branch: master
Commit: 85ff05a5658f95f14e38741d12a25b123326e692
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=85ff05a5658f95f14e38741d12a25b123326e692

Author: Rémi Bernon <rbernon at codeweavers.com>
Date:   Mon Feb 21 19:38:57 2022 +0100

include: Use fully qualified names in windows.foundation.collections.idl.

Although more verbose this makes things more consistent everywhere,
when types from other namespaces are referenced.

Signed-off-by: Rémi Bernon <rbernon at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 include/windows.foundation.collections.idl | 14 ++++++++------
 1 file changed, 8 insertions(+), 6 deletions(-)

diff --git a/include/windows.foundation.collections.idl b/include/windows.foundation.collections.idl
index d69c27f6bbd..7576f331172 100644
--- a/include/windows.foundation.collections.idl
+++ b/include/windows.foundation.collections.idl
@@ -53,7 +53,8 @@ cpp_quote("#endif")
             contract(Windows.Foundation.FoundationContract, 1.0),
             uuid(fcdcf02c-e5d8-4478-915a-4d90b74b83a5)
         ]
-        delegate HRESULT AsyncOperationCompletedHandler<TResult>([in] IAsyncOperation<TResult> *info, [in] AsyncStatus status);
+        delegate HRESULT AsyncOperationCompletedHandler<TResult>([in] Windows.Foundation.IAsyncOperation<TResult> *info,
+                                                                 [in] AsyncStatus status);
 
         [
             contract(Windows.Foundation.FoundationContract, 1.0),
@@ -61,8 +62,8 @@ cpp_quote("#endif")
         ]
         interface IAsyncOperation<TResult> : IInspectable
         {
-            [propput] HRESULT Completed([in] AsyncOperationCompletedHandler<TResult> *handler);
-            [propget] HRESULT Completed([out, retval] AsyncOperationCompletedHandler<TResult> **handler);
+            [propput] HRESULT Completed([in] Windows.Foundation.AsyncOperationCompletedHandler<TResult> *handler);
+            [propget] HRESULT Completed([out, retval] Windows.Foundation.AsyncOperationCompletedHandler<TResult> **handler);
             HRESULT GetResults([out, retval] TResult **results);
         }
 
@@ -110,12 +111,13 @@ cpp_quote("#endif")
                 uuid(e480ce40-a338-4ada-adcf-272272e48cb9)
             ]
             interface IMapView<K, V> : IInspectable
-                requires IIterable<IKeyValuePair<K, V> *>
+                requires Windows.Foundation.Collections.IIterable<Windows.Foundation.Collections.IKeyValuePair<K, V> *>
             {
                 HRESULT Lookup([in] K key, [out, retval] V *value);
                 [propget] HRESULT Size([out, retval] unsigned int *size);
                 HRESULT HasKey([in] K key, [out, retval] boolean *found);
-                HRESULT Split([out] IMapView<K, V> **first, [out] IMapView<K, V> **second);
+                HRESULT Split([out] Windows.Foundation.Collections.IMapView<K, V> **first,
+                              [out] Windows.Foundation.Collections.IMapView<K, V> **second);
             }
 
             [
@@ -138,7 +140,7 @@ cpp_quote("#endif")
             {
                 HRESULT GetAt([in, optional] UINT32 index, [out, retval] T *value);
                 [propget] HRESULT Size([out, retval] UINT32 *value);
-                HRESULT GetView([out, retval] IVectorView<T> **value);
+                HRESULT GetView([out, retval] Windows.Foundation.Collections.IVectorView<T> **value);
                 HRESULT IndexOf([in, optional] T element, [out] UINT32 *index, [out, retval] BOOLEAN *value);
                 HRESULT SetAt([in] UINT32 index, [in, optional] T value);
                 HRESULT InsertAt([in] UINT32 index, [in, optional] T value);




More information about the wine-cvs mailing list