include: Fix IIterator<T> declaration and missing IVector(View)<T> requires.

Signed-off-by: Rémi Bernon <rbernon@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Rémi Bernon 2022-03-09 09:47:59 +01:00 committed by Alexandre Julliard
parent b98b9ce74f
commit 474c588249
2 changed files with 5 additions and 1 deletions

View File

@ -93,7 +93,7 @@ cpp_quote("#endif")
[propget] HRESULT Current([out, retval] T *value);
[propget] HRESULT HasCurrent([out, retval] BOOL *value);
HRESULT MoveNext([out, retval] BOOL *value);
HRESULT GetMany([in] UINT32 count, [in] UINT32 items_size, [out] T *items, [out, retval] UINT32 *value);
HRESULT GetMany([in] UINT32 items_size, [out] T *items, [out, retval] UINT32 *value);
}
[
@ -134,6 +134,7 @@ cpp_quote("#endif")
uuid(bbe1fa4c-b0e3-4583-baef-1f1b2e483e56)
]
interface IVectorView<T> : IInspectable
requires Windows.Foundation.Collections.IIterable<T>
{
HRESULT GetAt([in] UINT32 index, [out, retval] T *value);
[propget] HRESULT Size([out, retval] UINT32 *value);
@ -146,6 +147,7 @@ cpp_quote("#endif")
uuid(913337e9-11a1-4345-a3a2-4e7f956e222d)
]
interface IVector<T> : IInspectable
requires Windows.Foundation.Collections.IIterable<T>
{
HRESULT GetAt([in, optional] UINT32 index, [out, retval] T *value);
[propget] HRESULT Size([out, retval] UINT32 *value);

View File

@ -159,7 +159,9 @@ namespace Windows {
namespace Foundation {
declare {
interface Windows.Foundation.Collections.IIterable<HSTRING>;
interface Windows.Foundation.Collections.IIterable<IInspectable *>;
interface Windows.Foundation.Collections.IIterator<HSTRING>;
interface Windows.Foundation.Collections.IIterator<IInspectable *>;
interface Windows.Foundation.Collections.IVectorView<HSTRING>;
interface Windows.Foundation.Collections.IVectorView<IInspectable *>;
interface Windows.Foundation.Collections.IVector<HSTRING>;