From dbfe0a9bc36dc81f287667559e2f73f0e8f034e8 Mon Sep 17 00:00:00 2001 From: Biswapriyo Nath Date: Mon, 25 Apr 2022 10:49:36 +0530 Subject: [PATCH 1/2] include: Move generic instantiations forward in windows.foundation.idl. Signed-off-by: Biswapriyo Nath --- include/windows.foundation.idl | 42 +++++++++++++++------------------- 1 file changed, 19 insertions(+), 23 deletions(-) diff --git a/include/windows.foundation.idl b/include/windows.foundation.idl index c5f4c04..abd51ec 100644 --- a/include/windows.foundation.idl +++ b/include/windows.foundation.idl @@ -42,6 +42,25 @@ namespace Windows { typedef struct DateTime DateTime; typedef struct TimeSpan TimeSpan; + declare { + interface Windows.Foundation.Collections.IIterable; + interface Windows.Foundation.Collections.IIterable; + interface Windows.Foundation.Collections.IIterator; + interface Windows.Foundation.Collections.IIterator; + interface Windows.Foundation.Collections.IVectorView; + interface Windows.Foundation.Collections.IVectorView; + interface Windows.Foundation.Collections.IVector; + interface Windows.Foundation.Collections.IVector; + interface Windows.Foundation.Collections.IMapView*>; + interface Windows.Foundation.EventHandler; + interface Windows.Foundation.AsyncOperationCompletedHandler; + interface Windows.Foundation.AsyncOperationCompletedHandler; + interface Windows.Foundation.IAsyncOperation; + interface Windows.Foundation.IAsyncOperation; + interface Windows.Foundation.IReference; + interface Windows.Foundation.TypedEventHandler; + } + [ contract(Windows.Foundation.FoundationContract, 1.0), uuid(a4ed5c81-76c9-40bd-8be6-b1d90fb20ae7) @@ -154,26 +173,3 @@ namespace Windows { } } } - -namespace Windows { - namespace Foundation { - declare { - interface Windows.Foundation.Collections.IIterable; - interface Windows.Foundation.Collections.IIterable; - interface Windows.Foundation.Collections.IIterator; - interface Windows.Foundation.Collections.IIterator; - interface Windows.Foundation.Collections.IVectorView; - interface Windows.Foundation.Collections.IVectorView; - interface Windows.Foundation.Collections.IVector; - interface Windows.Foundation.Collections.IVector; - interface Windows.Foundation.Collections.IMapView*>; - interface Windows.Foundation.EventHandler; - interface Windows.Foundation.AsyncOperationCompletedHandler; - interface Windows.Foundation.AsyncOperationCompletedHandler; - interface Windows.Foundation.IAsyncOperation; - interface Windows.Foundation.IAsyncOperation; - interface Windows.Foundation.IReference; - interface Windows.Foundation.TypedEventHandler; - } - } -} -- 2.35.3