[PATCH] headers: move EventHandler delegate in windows.foundation.idl

Steve Lhomme robux4 at ycbcr.xyz
Tue Mar 9 08:51:59 CST 2021


It's in the .NET System namespace which translates to the Windows.Foundation
namespace in winrt interfaces.
---
 include/windows.foundation.collections.idl | 6 ------
 include/windows.foundation.idl             | 8 ++++++++
 2 files changed, 8 insertions(+), 6 deletions(-)

diff --git a/include/windows.foundation.collections.idl b/include/windows.foundation.collections.idl
index ed05016b96d..15866c2903a 100644
--- a/include/windows.foundation.collections.idl
+++ b/include/windows.foundation.collections.idl
@@ -41,12 +41,6 @@ cpp_quote("extern \"C\" {")
 cpp_quote("#endif")
 
 #ifdef __WIDL__
-        [
-            contract(Windows.Foundation.FoundationContract, 1.0),
-            uuid(9de1c535-6ae1-11e0-84e1-18a905bcc53f)
-        ]
-        delegate HRESULT EventHandler<T>([in] IInspectable *sender, [in] T args);
-
         namespace Collections
         {
             [
diff --git a/include/windows.foundation.idl b/include/windows.foundation.idl
index 3c60278cf05..2b414039876 100644
--- a/include/windows.foundation.idl
+++ b/include/windows.foundation.idl
@@ -112,5 +112,13 @@ namespace Windows {
         {
             HRESULT ToString([out, retval] HSTRING *value);
         }
+
+#ifdef __WIDL__
+        [
+            contract(Windows.Foundation.FoundationContract, 1.0),
+            uuid(9de1c535-6ae1-11e0-84e1-18a905bcc53f)
+        ]
+        delegate HRESULT EventHandler<T>([in] IInspectable *sender, [in] T args);
+#endif
     }
 }
-- 
2.29.2




More information about the wine-devel mailing list