Documentation Archive Developer
Search

NetFS Changes for Swift

NetFS

Added kNetFSOpenURLMountKey
Modified AsyncRequestID
Declaration
From
typealias AsyncRequestID = UnsafeMutablePointer<Void>
To
typealias AsyncRequestID = UnsafeMutableRawPointer

Modified NetFSMountURLAsync(_: CFURL!, _: CFURL!, _: CFString!, _: CFString!, _: CFMutableDictionary!, _: CFMutableDictionary!, _: UnsafeMutablePointer<AsyncRequestID?>!, _: DispatchQueue!, _: NetFS.NetFSMountURLBlock!) -> Int32
Declaration
From
func NetFSMountURLAsync(_ url: CFURL!, _ mountpath: CFURL!, _ user: CFString!, _ passwd: CFString!, _ open_options: CFMutableDictionary!, _ mount_options: CFMutableDictionary!, _ requestID: UnsafeMutablePointer<AsyncRequestID>, _ dispatchq: dispatch_queue_t!, _ mount_report: NetFSMountURLBlock!) -> Int32
To
func NetFSMountURLAsync(_ url: CFURL!, _ mountpath: CFURL!, _ user: CFString!, _ passwd: CFString!, _ open_options: CFMutableDictionary!, _ mount_options: CFMutableDictionary!, _ requestID: UnsafeMutablePointer<AsyncRequestID?>!, _ dispatchq: DispatchQueue!, _ mount_report: NetFS.NetFSMountURLBlock!) -> Int32

Modified NetFSMountURLBlock
Declaration
From
typealias NetFSMountURLBlock = (Int32, AsyncRequestID, CFArray!) -> Void
To
typealias NetFSMountURLBlock = (Int32, AsyncRequestID?, CFArray?) -> Swift.Void

Modified NetFSMountURLCancel(_: AsyncRequestID!) -> Int32
Declaration
From
func NetFSMountURLCancel(_ requestID: AsyncRequestID) -> Int32
To
func NetFSMountURLCancel(_ requestID: AsyncRequestID!) -> Int32

Modified NetFSMountURLSync(_: CFURL!, _: CFURL!, _: CFString!, _: CFString!, _: CFMutableDictionary!, _: CFMutableDictionary!, _: UnsafeMutablePointer<Unmanaged<CFArray>?>!) -> Int32
Declaration
From
func NetFSMountURLSync(_ url: CFURL!, _ mountpath: CFURL!, _ user: CFString!, _ passwd: CFString!, _ open_options: CFMutableDictionary!, _ mount_options: CFMutableDictionary!, _ mountpoints: UnsafeMutablePointer<Unmanaged<CFArray>?>) -> Int32
To
func NetFSMountURLSync(_ url: CFURL!, _ mountpath: CFURL!, _ user: CFString!, _ passwd: CFString!, _ open_options: CFMutableDictionary!, _ mount_options: CFMutableDictionary!, _ mountpoints: UnsafeMutablePointer<Unmanaged<CFArray>?>!) -> Int32