Documentation Archive Developer
Search

DiskArbitration Changes for Swift

DiskArbitration

Declaration
From
typealias DADiskAppearedCallback = (DADisk, UnsafeMutablePointer<Void>) -> Void
To
typealias DADiskAppearedCallback = (DADisk, UnsafeMutableRawPointer?) -> Swift.Void

Declaration
From
func DADiskClaim(_ disk: DADisk, _ options: DADiskClaimOptions, _ release: DADiskClaimReleaseCallback?, _ releaseContext: UnsafeMutablePointer<Void>, _ callback: DADiskClaimCallback?, _ callbackContext: UnsafeMutablePointer<Void>)
To
func DADiskClaim(_ disk: DADisk, _ options: DADiskClaimOptions, _ release: DiskArbitration.DADiskClaimReleaseCallback?, _ releaseContext: UnsafeMutableRawPointer?, _ callback: DiskArbitration.DADiskClaimCallback?, _ callbackContext: UnsafeMutableRawPointer?)

Declaration
From
typealias DADiskClaimCallback = (DADisk, DADissenter?, UnsafeMutablePointer<Void>) -> Void
To
typealias DADiskClaimCallback = (DADisk, DADissenter?, UnsafeMutableRawPointer?) -> Swift.Void

Declaration
From
typealias DADiskClaimReleaseCallback = (DADisk, UnsafeMutablePointer<Void>) -> Unmanaged<DADissenter>?
To
typealias DADiskClaimReleaseCallback = (DADisk, UnsafeMutableRawPointer?) -> Unmanaged<DADissenter>?

Declaration
From
typealias DADiskDescriptionChangedCallback = (DADisk, CFArray, UnsafeMutablePointer<Void>) -> Void
To
typealias DADiskDescriptionChangedCallback = (DADisk, CFArray, UnsafeMutableRawPointer?) -> Swift.Void

Declaration
From
typealias DADiskDisappearedCallback = (DADisk, UnsafeMutablePointer<Void>) -> Void
To
typealias DADiskDisappearedCallback = (DADisk, UnsafeMutableRawPointer?) -> Swift.Void

Declaration
From
func DADiskEject(_ disk: DADisk, _ options: DADiskEjectOptions, _ callback: DADiskEjectCallback?, _ context: UnsafeMutablePointer<Void>)
To
func DADiskEject(_ disk: DADisk, _ options: DADiskEjectOptions, _ callback: DiskArbitration.DADiskEjectCallback?, _ context: UnsafeMutableRawPointer?)

Declaration
From
typealias DADiskEjectApprovalCallback = (DADisk, UnsafeMutablePointer<Void>) -> Unmanaged<DADissenter>?
To
typealias DADiskEjectApprovalCallback = (DADisk, UnsafeMutableRawPointer?) -> Unmanaged<DADissenter>?

Declaration
From
typealias DADiskEjectCallback = (DADisk, DADissenter?, UnsafeMutablePointer<Void>) -> Void
To
typealias DADiskEjectCallback = (DADisk, DADissenter?, UnsafeMutableRawPointer?) -> Swift.Void

Declaration
From
func DADiskGetBSDName(_ disk: DADisk) -> UnsafePointer<Int8>
To
func DADiskGetBSDName(_ disk: DADisk) -> UnsafePointer<Int8>?

Declaration
From
func DADiskMount(_ disk: DADisk, _ path: CFURL?, _ options: DADiskMountOptions, _ callback: DADiskMountCallback?, _ context: UnsafeMutablePointer<Void>)
To
func DADiskMount(_ disk: DADisk, _ path: CFURL?, _ options: DADiskMountOptions, _ callback: DiskArbitration.DADiskMountCallback?, _ context: UnsafeMutableRawPointer?)

Declaration
From
typealias DADiskMountApprovalCallback = (DADisk, UnsafeMutablePointer<Void>) -> Unmanaged<DADissenter>?
To
typealias DADiskMountApprovalCallback = (DADisk, UnsafeMutableRawPointer?) -> Unmanaged<DADissenter>?

Declaration
From
typealias DADiskMountCallback = (DADisk, DADissenter?, UnsafeMutablePointer<Void>) -> Void
To
typealias DADiskMountCallback = (DADisk, DADissenter?, UnsafeMutableRawPointer?) -> Swift.Void

Declaration
From
func DADiskMountWithArguments(_ disk: DADisk, _ path: CFURL?, _ options: DADiskMountOptions, _ callback: DADiskMountCallback?, _ context: UnsafeMutablePointer<Void>, _ arguments: UnsafeMutablePointer<Unmanaged<CFString>?>)
To
func DADiskMountWithArguments(_ disk: DADisk, _ path: CFURL?, _ options: DADiskMountOptions, _ callback: DiskArbitration.DADiskMountCallback?, _ context: UnsafeMutableRawPointer?, _ arguments: UnsafeMutablePointer<Unmanaged<CFString>>!)

Declaration
From
typealias DADiskPeekCallback = (DADisk, UnsafeMutablePointer<Void>) -> Void
To
typealias DADiskPeekCallback = (DADisk, UnsafeMutableRawPointer?) -> Swift.Void

Declaration
From
func DADiskRename(_ disk: DADisk, _ name: CFString, _ options: DADiskRenameOptions, _ callback: DADiskRenameCallback?, _ context: UnsafeMutablePointer<Void>)
To
func DADiskRename(_ disk: DADisk, _ name: CFString, _ options: DADiskRenameOptions, _ callback: DiskArbitration.DADiskRenameCallback?, _ context: UnsafeMutableRawPointer?)

Declaration
From
typealias DADiskRenameCallback = (DADisk, DADissenter?, UnsafeMutablePointer<Void>) -> Void
To
typealias DADiskRenameCallback = (DADisk, DADissenter?, UnsafeMutableRawPointer?) -> Swift.Void

Declaration
From
func DADiskUnmount(_ disk: DADisk, _ options: DADiskUnmountOptions, _ callback: DADiskUnmountCallback?, _ context: UnsafeMutablePointer<Void>)
To
func DADiskUnmount(_ disk: DADisk, _ options: DADiskUnmountOptions, _ callback: DiskArbitration.DADiskUnmountCallback?, _ context: UnsafeMutableRawPointer?)

Declaration
From
typealias DADiskUnmountApprovalCallback = (DADisk, UnsafeMutablePointer<Void>) -> Unmanaged<DADissenter>?
To
typealias DADiskUnmountApprovalCallback = (DADisk, UnsafeMutableRawPointer?) -> Unmanaged<DADissenter>?

Declaration
From
typealias DADiskUnmountCallback = (DADisk, DADissenter?, UnsafeMutablePointer<Void>) -> Void
To
typealias DADiskUnmountCallback = (DADisk, DADissenter?, UnsafeMutableRawPointer?) -> Swift.Void

Declaration
From
func DARegisterDiskAppearedCallback(_ session: DASession, _ match: CFDictionary?, _ callback: DADiskAppearedCallback, _ context: UnsafeMutablePointer<Void>)
To
func DARegisterDiskAppearedCallback(_ session: DASession, _ match: CFDictionary?, _ callback: DiskArbitration.DADiskAppearedCallback, _ context: UnsafeMutableRawPointer?)

Declaration
From
func DARegisterDiskDescriptionChangedCallback(_ session: DASession, _ match: CFDictionary?, _ watch: CFArray?, _ callback: DADiskDescriptionChangedCallback, _ context: UnsafeMutablePointer<Void>)
To
func DARegisterDiskDescriptionChangedCallback(_ session: DASession, _ match: CFDictionary?, _ watch: CFArray?, _ callback: DiskArbitration.DADiskDescriptionChangedCallback, _ context: UnsafeMutableRawPointer?)

Declaration
From
func DARegisterDiskDisappearedCallback(_ session: DASession, _ match: CFDictionary?, _ callback: DADiskDisappearedCallback, _ context: UnsafeMutablePointer<Void>)
To
func DARegisterDiskDisappearedCallback(_ session: DASession, _ match: CFDictionary?, _ callback: DiskArbitration.DADiskDisappearedCallback, _ context: UnsafeMutableRawPointer?)

Declaration
From
func DARegisterDiskEjectApprovalCallback(_ session: DASession, _ match: CFDictionary?, _ callback: DADiskEjectApprovalCallback, _ context: UnsafeMutablePointer<Void>)
To
func DARegisterDiskEjectApprovalCallback(_ session: DASession, _ match: CFDictionary?, _ callback: DiskArbitration.DADiskEjectApprovalCallback, _ context: UnsafeMutableRawPointer?)

Declaration
From
func DARegisterDiskMountApprovalCallback(_ session: DASession, _ match: CFDictionary?, _ callback: DADiskMountApprovalCallback, _ context: UnsafeMutablePointer<Void>)
To
func DARegisterDiskMountApprovalCallback(_ session: DASession, _ match: CFDictionary?, _ callback: DiskArbitration.DADiskMountApprovalCallback, _ context: UnsafeMutableRawPointer?)

Declaration
From
func DARegisterDiskPeekCallback(_ session: DASession, _ match: CFDictionary?, _ order: CFIndex, _ callback: DADiskPeekCallback, _ context: UnsafeMutablePointer<Void>)
To
func DARegisterDiskPeekCallback(_ session: DASession, _ match: CFDictionary?, _ order: CFIndex, _ callback: DiskArbitration.DADiskPeekCallback, _ context: UnsafeMutableRawPointer?)

Declaration
From
func DARegisterDiskUnmountApprovalCallback(_ session: DASession, _ match: CFDictionary?, _ callback: DADiskUnmountApprovalCallback, _ context: UnsafeMutablePointer<Void>)
To
func DARegisterDiskUnmountApprovalCallback(_ session: DASession, _ match: CFDictionary?, _ callback: DiskArbitration.DADiskUnmountApprovalCallback, _ context: UnsafeMutableRawPointer?)

Declaration
From
func DASessionSetDispatchQueue(_ session: DASession, _ queue: dispatch_queue_t?)
To
func DASessionSetDispatchQueue(_ session: DASession, _ queue: DispatchQueue?)

Declaration
From
func DAUnregisterCallback(_ session: DASession, _ callback: UnsafeMutablePointer<Void>, _ context: UnsafeMutablePointer<Void>)
To
func DAUnregisterCallback(_ session: DASession, _ callback: UnsafeMutableRawPointer, _ context: UnsafeMutableRawPointer?)