Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add missing checked-in generated code for vectorAsIterable #164

Merged
merged 1 commit into from
Apr 18, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -3408,6 +3408,9 @@ struct __x_ABI_Ctest__component_CStructWithIReference
__x_ABI_C__FIVector_1_IInspectable* value,
UINT32 index,
__x_ABI_Ctest__component_CIObjectHandler* callback);
HRESULT (STDMETHODCALLTYPE* VectorAsIterable)(__x_ABI_Ctest__component_CICollectionTesterStatics* This,
__x_ABI_C__FIVector_1_HSTRING* value,
__x_ABI_C__FIIterable_1_HSTRING** result);

END_INTERFACE
} __x_ABI_Ctest__component_CICollectionTesterStaticsVtbl;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ private var IID___x_ABI_Ctest__component_CICollectionTester: test_component.IID
}

private var IID___x_ABI_Ctest__component_CICollectionTesterStatics: test_component.IID {
.init(Data1: 0xB357268D, Data2: 0x1A80, Data3: 0x5A61, Data4: ( 0xB3,0xEF,0x13,0x22,0x4B,0xE0,0x63,0x10 ))// B357268D-1A80-5A61-B3EF-13224BE06310
.init(Data1: 0xA4C0D4B5, Data2: 0xEDA2, Data3: 0x55E5, Data4: ( 0xAD,0x0F,0xCE,0x1F,0x13,0xA9,0x81,0xCC ))// A4C0D4B5-EDA2-55E5-AD0F-CE1F13A981CC
}

private var IID___x_ABI_Ctest__component_CIDeferrableEventArgs: test_component.IID {
Expand Down Expand Up @@ -1086,6 +1086,17 @@ public enum __ABI_test_component {
}
}

internal func VectorAsIterableImpl(_ value: test_component.AnyIVector<String>?) throws -> test_component.AnyIIterable<String>? {
let (result) = try ComPtrs.initialize { resultAbi in
tristanlabelle marked this conversation as resolved.
Show resolved Hide resolved
let valueWrapper = test_component.__x_ABI_C__FIVector_1_HSTRINGWrapper(value)
let _value = try! valueWrapper?.toABI { $0 }
_ = try perform(as: __x_ABI_Ctest__component_CICollectionTesterStatics.self) { pThis in
try CHECKED(pThis.pointee.lpVtbl.pointee.VectorAsIterable(pThis, _value, &resultAbi))
}
}
return test_component.__x_ABI_C__FIIterable_1_HSTRINGWrapper.unwrapFrom(abi: result)
}

}

public class IDeferrableEventArgs: test_component.IInspectable {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -862,6 +862,10 @@ public final class CollectionTester : WinRTClass {
try _ICollectionTesterStatics.GetObjectAtImpl(value, index, callback)
}

public static func vectorAsIterable(_ value: AnyIVector<String>!) throws -> AnyIIterable<String>! {
return try _ICollectionTesterStatics.VectorAsIterableImpl(value)
}

public func returnStoredStringVector() throws -> AnyIVector<String>! {
try _default.ReturnStoredStringVectorImpl()
}
Expand Down
Loading