swift-windowsfoundation/Sources/WindowsFoundation/Generated/WindowsFoundation+MakeFromAbi.swift
2024-02-15 17:14:06 -08:00

114 lines
5.3 KiB
Swift

// WARNING: Please don't edit this file. It was generated by Swift/WinRT v0.0.1
// swiftlint:disable all
import Foundation
import CWinRT
fileprivate func makeIAsyncActionFrom(abi: WindowsFoundation.IInspectable) -> Any {
let swiftAbi: __ABI_Windows_Foundation.IAsyncAction = try! abi.QueryInterface()
return __IMPL_Windows_Foundation.IAsyncActionBridge.from(abi: RawPointer(swiftAbi))!
}
fileprivate func makeIAsyncInfoFrom(abi: WindowsFoundation.IInspectable) -> Any {
let swiftAbi: __ABI_Windows_Foundation.IAsyncInfo = try! abi.QueryInterface()
return __IMPL_Windows_Foundation.IAsyncInfoBridge.from(abi: RawPointer(swiftAbi))!
}
fileprivate func makeIClosableFrom(abi: WindowsFoundation.IInspectable) -> Any {
let swiftAbi: __ABI_Windows_Foundation.IClosable = try! abi.QueryInterface()
return __IMPL_Windows_Foundation.IClosableBridge.from(abi: RawPointer(swiftAbi))!
}
fileprivate func makeIGetActivationFactoryFrom(abi: WindowsFoundation.IInspectable) -> Any {
let swiftAbi: __ABI_Windows_Foundation.IGetActivationFactory = try! abi.QueryInterface()
return __IMPL_Windows_Foundation.IGetActivationFactoryBridge.from(abi: RawPointer(swiftAbi))!
}
fileprivate func makeIMemoryBufferFrom(abi: WindowsFoundation.IInspectable) -> Any {
let swiftAbi: __ABI_Windows_Foundation.IMemoryBuffer = try! abi.QueryInterface()
return __IMPL_Windows_Foundation.IMemoryBufferBridge.from(abi: RawPointer(swiftAbi))!
}
fileprivate func makeIMemoryBufferReferenceFrom(abi: WindowsFoundation.IInspectable) -> Any {
let swiftAbi: __ABI_Windows_Foundation.IMemoryBufferReference = try! abi.QueryInterface()
return __IMPL_Windows_Foundation.IMemoryBufferReferenceBridge.from(abi: RawPointer(swiftAbi))!
}
fileprivate func makeIStringableFrom(abi: WindowsFoundation.IInspectable) -> Any {
let swiftAbi: __ABI_Windows_Foundation.IStringable = try! abi.QueryInterface()
return __IMPL_Windows_Foundation.IStringableBridge.from(abi: RawPointer(swiftAbi))!
}
fileprivate func makeIWwwFormUrlDecoderEntryFrom(abi: WindowsFoundation.IInspectable) -> Any {
let swiftAbi: __ABI_Windows_Foundation.IWwwFormUrlDecoderEntry = try! abi.QueryInterface()
return __IMPL_Windows_Foundation.IWwwFormUrlDecoderEntryBridge.from(abi: RawPointer(swiftAbi))!
}
fileprivate func makeIPropertySetFrom(abi: WindowsFoundation.IInspectable) -> Any {
let swiftAbi: __ABI_Windows_Foundation_Collections.IPropertySet = try! abi.QueryInterface()
return __IMPL_Windows_Foundation_Collections.IPropertySetBridge.from(abi: RawPointer(swiftAbi))!
}
fileprivate func makeIVectorChangedEventArgsFrom(abi: WindowsFoundation.IInspectable) -> Any {
let swiftAbi: __ABI_Windows_Foundation_Collections.IVectorChangedEventArgs = try! abi.QueryInterface()
return __IMPL_Windows_Foundation_Collections.IVectorChangedEventArgsBridge.from(abi: RawPointer(swiftAbi))!
}
fileprivate func makeDeferralFrom(abi: WindowsFoundation.IInspectable) -> Any {
return Deferral(fromAbi: abi)
}
fileprivate func makeMemoryBufferFrom(abi: WindowsFoundation.IInspectable) -> Any {
return MemoryBuffer(fromAbi: abi)
}
fileprivate func makeUriFrom(abi: WindowsFoundation.IInspectable) -> Any {
return Uri(fromAbi: abi)
}
fileprivate func makeWwwFormUrlDecoderFrom(abi: WindowsFoundation.IInspectable) -> Any {
return WwwFormUrlDecoder(fromAbi: abi)
}
fileprivate func makeWwwFormUrlDecoderEntryFrom(abi: WindowsFoundation.IInspectable) -> Any {
return WwwFormUrlDecoderEntry(fromAbi: abi)
}
fileprivate func makePropertySetFrom(abi: WindowsFoundation.IInspectable) -> Any {
return PropertySet(fromAbi: abi)
}
fileprivate func makeStringMapFrom(abi: WindowsFoundation.IInspectable) -> Any {
return StringMap(fromAbi: abi)
}
fileprivate func makeValueSetFrom(abi: WindowsFoundation.IInspectable) -> Any {
return ValueSet(fromAbi: abi)
}
@_spi(__MakeFromAbi_DoNotImport)
public class __MakeFromAbi: MakeFromAbi {
public static func from(typeName: String, abi: WindowsFoundation.IInspectable) -> Any? {
switch typeName {
case "IAsyncAction": return makeIAsyncActionFrom(abi: abi)
case "IAsyncInfo": return makeIAsyncInfoFrom(abi: abi)
case "IClosable": return makeIClosableFrom(abi: abi)
case "IGetActivationFactory": return makeIGetActivationFactoryFrom(abi: abi)
case "IMemoryBuffer": return makeIMemoryBufferFrom(abi: abi)
case "IMemoryBufferReference": return makeIMemoryBufferReferenceFrom(abi: abi)
case "IStringable": return makeIStringableFrom(abi: abi)
case "IWwwFormUrlDecoderEntry": return makeIWwwFormUrlDecoderEntryFrom(abi: abi)
case "IPropertySet": return makeIPropertySetFrom(abi: abi)
case "IVectorChangedEventArgs": return makeIVectorChangedEventArgsFrom(abi: abi)
case "Deferral": return makeDeferralFrom(abi: abi)
case "MemoryBuffer": return makeMemoryBufferFrom(abi: abi)
case "Uri": return makeUriFrom(abi: abi)
case "WwwFormUrlDecoder": return makeWwwFormUrlDecoderFrom(abi: abi)
case "WwwFormUrlDecoderEntry": return makeWwwFormUrlDecoderEntryFrom(abi: abi)
case "PropertySet": return makePropertySetFrom(abi: abi)
case "StringMap": return makeStringMapFrom(abi: abi)
case "ValueSet": return makeValueSetFrom(abi: abi)
default: return nil
}
}
}