Documentation Archive Developer
Search

IOKit Changes for Swift

IOKit

Removed IOCFPlugInInterfaceStruct.init(_reserved: UnsafeMutablePointer<Void>, QueryInterface: ((UnsafeMutablePointer<Void>, REFIID, UnsafeMutablePointer<LPVOID>) -> HRESULT)!, AddRef: ((UnsafeMutablePointer<Void>) -> ULONG)!, Release: ((UnsafeMutablePointer<Void>) -> ULONG)!, version: UInt16, revision: UInt16, Probe: ((UnsafeMutablePointer<Void>, CFDictionary!, io_service_t, UnsafeMutablePointer<Int32>) -> IOReturn)!, Start: ((UnsafeMutablePointer<Void>, CFDictionary!, io_service_t) -> IOReturn)!, Stop: ((UnsafeMutablePointer<Void>) -> IOReturn)!)
Added kIOBSDKey
Declaration
From
struct IOCFPlugInInterfaceStruct {
    var _reserved: UnsafeMutablePointer<Void>
    var QueryInterface: ((UnsafeMutablePointer<Void>, REFIID, UnsafeMutablePointer<LPVOID>) -> HRESULT)!
    var AddRef: ((UnsafeMutablePointer<Void>) -> ULONG)!
    var Release: ((UnsafeMutablePointer<Void>) -> ULONG)!
    var version: UInt16
    var revision: UInt16
    var Probe: ((UnsafeMutablePointer<Void>, CFDictionary!, io_service_t, UnsafeMutablePointer<Int32>) -> IOReturn)!
    var Start: ((UnsafeMutablePointer<Void>, CFDictionary!, io_service_t) -> IOReturn)!
    var Stop: ((UnsafeMutablePointer<Void>) -> IOReturn)!
    init()
    init(_reserved _reserved: UnsafeMutablePointer<Void>, QueryInterface QueryInterface: ((UnsafeMutablePointer<Void>, REFIID, UnsafeMutablePointer<LPVOID>) -> HRESULT)!, AddRef AddRef: ((UnsafeMutablePointer<Void>) -> ULONG)!, Release Release: ((UnsafeMutablePointer<Void>) -> ULONG)!, version version: UInt16, revision revision: UInt16, Probe Probe: ((UnsafeMutablePointer<Void>, CFDictionary!, io_service_t, UnsafeMutablePointer<Int32>) -> IOReturn)!, Start Start: ((UnsafeMutablePointer<Void>, CFDictionary!, io_service_t) -> IOReturn)!, Stop Stop: ((UnsafeMutablePointer<Void>) -> IOReturn)!)
}
To
struct IOCFPlugInInterfaceStruct {
    var _reserved: UnsafeMutableRawPointer!
    var QueryInterface: ((UnsafeMutableRawPointer?, REFIID, UnsafeMutablePointer<LPVOID?>?) -> HRESULT)!
    var AddRef: ((UnsafeMutableRawPointer?) -> ULONG)!
    var Release: ((UnsafeMutableRawPointer?) -> ULONG)!
    var version: UInt16
    var revision: UInt16
    var Probe: ((UnsafeMutableRawPointer?, CFDictionary?, io_service_t, UnsafeMutablePointer<Int32>?) -> IOReturn)!
    var Start: ((UnsafeMutableRawPointer?, CFDictionary?, io_service_t) -> IOReturn)!
    var Stop: ((UnsafeMutableRawPointer?) -> IOReturn)!
    init()
    init(_reserved _reserved: UnsafeMutableRawPointer!, QueryInterface QueryInterface: (@escaping (UnsafeMutableRawPointer?, REFIID, UnsafeMutablePointer<LPVOID?>?) -> HRESULT)!, AddRef AddRef: (@escaping (UnsafeMutableRawPointer?) -> ULONG)!, Release Release: (@escaping (UnsafeMutableRawPointer?) -> ULONG)!, version version: UInt16, revision revision: UInt16, Probe Probe: (@escaping (UnsafeMutableRawPointer?, CFDictionary?, io_service_t, UnsafeMutablePointer<Int32>?) -> IOReturn)!, Start Start: (@escaping (UnsafeMutableRawPointer?, CFDictionary?, io_service_t) -> IOReturn)!, Stop Stop: (@escaping (UnsafeMutableRawPointer?) -> IOReturn)!)
}

Declaration
From
var AddRef: ((UnsafeMutablePointer<Void>) -> ULONG)!
To
var AddRef: ((UnsafeMutableRawPointer?) -> ULONG)!

Declaration
From
var Probe: ((UnsafeMutablePointer<Void>, CFDictionary!, io_service_t, UnsafeMutablePointer<Int32>) -> IOReturn)!
To
var Probe: ((UnsafeMutableRawPointer?, CFDictionary?, io_service_t, UnsafeMutablePointer<Int32>?) -> IOReturn)!

Declaration
From
var QueryInterface: ((UnsafeMutablePointer<Void>, REFIID, UnsafeMutablePointer<LPVOID>) -> HRESULT)!
To
var QueryInterface: ((UnsafeMutableRawPointer?, REFIID, UnsafeMutablePointer<LPVOID?>?) -> HRESULT)!

Declaration
From
var Release: ((UnsafeMutablePointer<Void>) -> ULONG)!
To
var Release: ((UnsafeMutableRawPointer?) -> ULONG)!

Declaration
From
var Start: ((UnsafeMutablePointer<Void>, CFDictionary!, io_service_t) -> IOReturn)!
To
var Start: ((UnsafeMutableRawPointer?, CFDictionary?, io_service_t) -> IOReturn)!

Declaration
From
var Stop: ((UnsafeMutablePointer<Void>) -> IOReturn)!
To
var Stop: ((UnsafeMutableRawPointer?) -> IOReturn)!

Declaration
From
struct IONamedValue {
    var value: Int32
    var name: UnsafePointer<Int8>
    init()
    init(value value: Int32, name name: UnsafePointer<Int8>)
}
To
struct IONamedValue {
    var value: Int32
    var name: UnsafePointer<Int8>!
    init()
    init(value value: Int32, name name: UnsafePointer<Int8>!)
}

Declaration
From
var name: UnsafePointer<Int8>
To
var name: UnsafePointer<Int8>!

Declaration
From
struct IOServiceInterestContent {
    var messageType: natural_t
    var messageArgument: (UnsafeMutablePointer<Void>)
    init()
    init(messageType messageType: natural_t, messageArgument messageArgument: (UnsafeMutablePointer<Void>))
}
To
struct IOServiceInterestContent {
    var messageType: natural_t
    var messageArgument: (UnsafeMutableRawPointer?)
    init()
    init(messageType messageType: natural_t, messageArgument messageArgument: (UnsafeMutableRawPointer?))
}

Declaration
From
var messageArgument: (UnsafeMutablePointer<Void>)
To
var messageArgument: (UnsafeMutableRawPointer?)

Declaration
From
struct OSNotificationHeader {
    var size: mach_msg_size_t
    var type: natural_t
    var reference: OSAsyncReference
    init()
}
To
struct OSNotificationHeader {
    var size: mach_msg_size_t
    var type: natural_t
    var reference: IOKit.OSAsyncReference
    init()
}

Declaration
From
var reference: OSAsyncReference
To
var reference: IOKit.OSAsyncReference

Declaration
From
struct OSNotificationHeader64 {
    var size: mach_msg_size_t
    var type: natural_t
    var reference: OSAsyncReference64
    init()
}
To
struct OSNotificationHeader64 {
    var size: mach_msg_size_t
    var type: natural_t
    var reference: IOKit.OSAsyncReference64
    init()
}

Declaration
From
var reference: OSAsyncReference64
To
var reference: IOKit.OSAsyncReference64

Declaration
From
typealias IOAsyncCallback = (UnsafeMutablePointer<Void>, IOReturn, UnsafeMutablePointer<UnsafeMutablePointer<Void>>, UInt32) -> Void
To
typealias IOAsyncCallback = (UnsafeMutableRawPointer?, IOReturn, UnsafeMutablePointer<UnsafeMutableRawPointer?>?, UInt32) -> Swift.Void

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

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

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

Declaration
From
func IOBSDNameMatching(_ masterPort: mach_port_t, _ options: UInt32, _ bsdName: UnsafePointer<Int8>) -> CFMutableDictionary!
To
func IOBSDNameMatching(_ masterPort: mach_port_t, _ options: UInt32, _ bsdName: UnsafePointer<Int8>!) -> CFMutableDictionary!

Declaration
From
func IOCatalogueGetData(_ masterPort: mach_port_t, _ flag: UInt32, _ buffer: UnsafeMutablePointer<UnsafeMutablePointer<Int8>>, _ size: UnsafeMutablePointer<UInt32>) -> kern_return_t
To
func IOCatalogueGetData(_ masterPort: mach_port_t, _ flag: UInt32, _ buffer: UnsafeMutablePointer<UnsafeMutablePointer<Int8>?>!, _ size: UnsafeMutablePointer<UInt32>!) -> kern_return_t

Declaration
From
func IOCatalogueModuleLoaded(_ masterPort: mach_port_t, _ name: UnsafeMutablePointer<Int8>) -> kern_return_t
To
func IOCatalogueModuleLoaded(_ masterPort: mach_port_t, _ name: UnsafeMutablePointer<Int8>!) -> kern_return_t

Declaration
From
func IOCatalogueSendData(_ masterPort: mach_port_t, _ flag: UInt32, _ buffer: UnsafePointer<Int8>, _ size: UInt32) -> kern_return_t
To
func IOCatalogueSendData(_ masterPort: mach_port_t, _ flag: UInt32, _ buffer: UnsafePointer<Int8>!, _ size: UInt32) -> kern_return_t

Declaration
From
func IOCatalogueTerminate(_ masterPort: mach_port_t, _ flag: UInt32, _ description: UnsafeMutablePointer<Int8>) -> kern_return_t
To
func IOCatalogueTerminate(_ masterPort: mach_port_t, _ flag: UInt32, _ description: UnsafeMutablePointer<Int8>!) -> kern_return_t

Declaration
From
func IOCFSerialize(_ object: AnyObject!, _ options: CFOptionFlags) -> CFData!
To
func IOCFSerialize(_ object: CFTypeRef!, _ options: CFOptionFlags) -> CFData!

Declaration
From
func IOCFUnserialize(_ buffer: UnsafePointer<Int8>, _ allocator: CFAllocator!, _ options: CFOptionFlags, _ errorString: UnsafeMutablePointer<Unmanaged<CFString>?>) -> AnyObject!
To
func IOCFUnserialize(_ buffer: UnsafePointer<Int8>!, _ allocator: CFAllocator!, _ options: CFOptionFlags, _ errorString: UnsafeMutablePointer<Unmanaged<CFString>?>!) -> CFTypeRef!

Declaration
From
func IOCFUnserializeBinary(_ buffer: UnsafePointer<Int8>, _ bufferSize: Int, _ allocator: CFAllocator!, _ options: CFOptionFlags, _ errorString: UnsafeMutablePointer<Unmanaged<CFString>?>) -> AnyObject!
To
func IOCFUnserializeBinary(_ buffer: UnsafePointer<Int8>!, _ bufferSize: Int, _ allocator: CFAllocator!, _ options: CFOptionFlags, _ errorString: UnsafeMutablePointer<Unmanaged<CFString>?>!) -> CFTypeRef!

Declaration
From
func IOCFUnserializeWithSize(_ buffer: UnsafePointer<Int8>, _ bufferSize: Int, _ allocator: CFAllocator!, _ options: CFOptionFlags, _ errorString: UnsafeMutablePointer<Unmanaged<CFString>?>) -> AnyObject!
To
func IOCFUnserializeWithSize(_ buffer: UnsafePointer<Int8>!, _ bufferSize: Int, _ allocator: CFAllocator!, _ options: CFOptionFlags, _ errorString: UnsafeMutablePointer<Unmanaged<CFString>?>!) -> CFTypeRef!

Declaration
From
func IOConnectCallAsyncMethod(_ connection: mach_port_t, _ selector: UInt32, _ wake_port: mach_port_t, _ reference: UnsafeMutablePointer<UInt64>, _ referenceCnt: UInt32, _ input: UnsafePointer<UInt64>, _ inputCnt: UInt32, _ inputStruct: UnsafePointer<Void>, _ inputStructCnt: Int, _ output: UnsafeMutablePointer<UInt64>, _ outputCnt: UnsafeMutablePointer<UInt32>, _ outputStruct: UnsafeMutablePointer<Void>, _ outputStructCnt: UnsafeMutablePointer<Int>) -> kern_return_t
To
func IOConnectCallAsyncMethod(_ connection: mach_port_t, _ selector: UInt32, _ wake_port: mach_port_t, _ reference: UnsafeMutablePointer<UInt64>!, _ referenceCnt: UInt32, _ input: UnsafePointer<UInt64>!, _ inputCnt: UInt32, _ inputStruct: UnsafeRawPointer!, _ inputStructCnt: Int, _ output: UnsafeMutablePointer<UInt64>!, _ outputCnt: UnsafeMutablePointer<UInt32>!, _ outputStruct: UnsafeMutableRawPointer!, _ outputStructCnt: UnsafeMutablePointer<Int>!) -> kern_return_t

Declaration
From
func IOConnectCallAsyncScalarMethod(_ connection: mach_port_t, _ selector: UInt32, _ wake_port: mach_port_t, _ reference: UnsafeMutablePointer<UInt64>, _ referenceCnt: UInt32, _ input: UnsafePointer<UInt64>, _ inputCnt: UInt32, _ output: UnsafeMutablePointer<UInt64>, _ outputCnt: UnsafeMutablePointer<UInt32>) -> kern_return_t
To
func IOConnectCallAsyncScalarMethod(_ connection: mach_port_t, _ selector: UInt32, _ wake_port: mach_port_t, _ reference: UnsafeMutablePointer<UInt64>!, _ referenceCnt: UInt32, _ input: UnsafePointer<UInt64>!, _ inputCnt: UInt32, _ output: UnsafeMutablePointer<UInt64>!, _ outputCnt: UnsafeMutablePointer<UInt32>!) -> kern_return_t

Declaration
From
func IOConnectCallAsyncStructMethod(_ connection: mach_port_t, _ selector: UInt32, _ wake_port: mach_port_t, _ reference: UnsafeMutablePointer<UInt64>, _ referenceCnt: UInt32, _ inputStruct: UnsafePointer<Void>, _ inputStructCnt: Int, _ outputStruct: UnsafeMutablePointer<Void>, _ outputStructCnt: UnsafeMutablePointer<Int>) -> kern_return_t
To
func IOConnectCallAsyncStructMethod(_ connection: mach_port_t, _ selector: UInt32, _ wake_port: mach_port_t, _ reference: UnsafeMutablePointer<UInt64>!, _ referenceCnt: UInt32, _ inputStruct: UnsafeRawPointer!, _ inputStructCnt: Int, _ outputStruct: UnsafeMutableRawPointer!, _ outputStructCnt: UnsafeMutablePointer<Int>!) -> kern_return_t

Declaration
From
func IOConnectCallMethod(_ connection: mach_port_t, _ selector: UInt32, _ input: UnsafePointer<UInt64>, _ inputCnt: UInt32, _ inputStruct: UnsafePointer<Void>, _ inputStructCnt: Int, _ output: UnsafeMutablePointer<UInt64>, _ outputCnt: UnsafeMutablePointer<UInt32>, _ outputStruct: UnsafeMutablePointer<Void>, _ outputStructCnt: UnsafeMutablePointer<Int>) -> kern_return_t
To
func IOConnectCallMethod(_ connection: mach_port_t, _ selector: UInt32, _ input: UnsafePointer<UInt64>!, _ inputCnt: UInt32, _ inputStruct: UnsafeRawPointer!, _ inputStructCnt: Int, _ output: UnsafeMutablePointer<UInt64>!, _ outputCnt: UnsafeMutablePointer<UInt32>!, _ outputStruct: UnsafeMutableRawPointer!, _ outputStructCnt: UnsafeMutablePointer<Int>!) -> kern_return_t

Declaration
From
func IOConnectCallScalarMethod(_ connection: mach_port_t, _ selector: UInt32, _ input: UnsafePointer<UInt64>, _ inputCnt: UInt32, _ output: UnsafeMutablePointer<UInt64>, _ outputCnt: UnsafeMutablePointer<UInt32>) -> kern_return_t
To
func IOConnectCallScalarMethod(_ connection: mach_port_t, _ selector: UInt32, _ input: UnsafePointer<UInt64>!, _ inputCnt: UInt32, _ output: UnsafeMutablePointer<UInt64>!, _ outputCnt: UnsafeMutablePointer<UInt32>!) -> kern_return_t

Declaration
From
func IOConnectCallStructMethod(_ connection: mach_port_t, _ selector: UInt32, _ inputStruct: UnsafePointer<Void>, _ inputStructCnt: Int, _ outputStruct: UnsafeMutablePointer<Void>, _ outputStructCnt: UnsafeMutablePointer<Int>) -> kern_return_t
To
func IOConnectCallStructMethod(_ connection: mach_port_t, _ selector: UInt32, _ inputStruct: UnsafeRawPointer!, _ inputStructCnt: Int, _ outputStruct: UnsafeMutableRawPointer!, _ outputStructCnt: UnsafeMutablePointer<Int>!) -> kern_return_t

Declaration
From
func IOConnectGetService(_ connect: io_connect_t, _ service: UnsafeMutablePointer<io_service_t>) -> kern_return_t
To
func IOConnectGetService(_ connect: io_connect_t, _ service: UnsafeMutablePointer<io_service_t>!) -> kern_return_t

Declaration
From
func IOConnectMapMemory(_ connect: io_connect_t, _ memoryType: UInt32, _ intoTask: task_port_t, _ atAddress: UnsafeMutablePointer<mach_vm_address_t>, _ ofSize: UnsafeMutablePointer<mach_vm_size_t>, _ options: IOOptionBits) -> kern_return_t
To
func IOConnectMapMemory(_ connect: io_connect_t, _ memoryType: UInt32, _ intoTask: task_port_t, _ atAddress: UnsafeMutablePointer<mach_vm_address_t>!, _ ofSize: UnsafeMutablePointer<mach_vm_size_t>!, _ options: IOOptionBits) -> kern_return_t

Declaration
From
func IOConnectMapMemory64(_ connect: io_connect_t, _ memoryType: UInt32, _ intoTask: task_port_t, _ atAddress: UnsafeMutablePointer<mach_vm_address_t>, _ ofSize: UnsafeMutablePointer<mach_vm_size_t>, _ options: IOOptionBits) -> kern_return_t
To
func IOConnectMapMemory64(_ connect: io_connect_t, _ memoryType: UInt32, _ intoTask: task_port_t, _ atAddress: UnsafeMutablePointer<mach_vm_address_t>!, _ ofSize: UnsafeMutablePointer<mach_vm_size_t>!, _ options: IOOptionBits) -> kern_return_t

Declaration
From
func IOConnectSetCFProperties(_ connect: io_connect_t, _ properties: AnyObject!) -> kern_return_t
To
func IOConnectSetCFProperties(_ connect: io_connect_t, _ properties: CFTypeRef!) -> kern_return_t

Declaration
From
func IOConnectSetCFProperty(_ connect: io_connect_t, _ propertyName: CFString!, _ property: AnyObject!) -> kern_return_t
To
func IOConnectSetCFProperty(_ connect: io_connect_t, _ propertyName: CFString!, _ property: CFTypeRef!) -> kern_return_t

Declaration
From
func IOCreatePlugInInterfaceForService(_ service: io_service_t, _ pluginType: CFUUID!, _ interfaceType: CFUUID!, _ theInterface: UnsafeMutablePointer<UnsafeMutablePointer<UnsafeMutablePointer<IOCFPlugInInterface>>>, _ theScore: UnsafeMutablePointer<Int32>) -> kern_return_t
To
func IOCreatePlugInInterfaceForService(_ service: io_service_t, _ pluginType: CFUUID!, _ interfaceType: CFUUID!, _ theInterface: UnsafeMutablePointer<UnsafeMutablePointer<UnsafeMutablePointer<IOCFPlugInInterface>?>?>!, _ theScore: UnsafeMutablePointer<Int32>!) -> kern_return_t

Declaration
From
func IOCreateReceivePort(_ msgType: UInt32, _ recvPort: UnsafeMutablePointer<mach_port_t>) -> kern_return_t
To
func IOCreateReceivePort(_ msgType: UInt32, _ recvPort: UnsafeMutablePointer<mach_port_t>!) -> kern_return_t

Declaration
From
func IODataQueueDataAvailable(_ dataQueue: UnsafeMutablePointer<IODataQueueMemory>) -> Bool
To
func IODataQueueDataAvailable(_ dataQueue: UnsafeMutablePointer<IODataQueueMemory>!) -> Bool

Declaration
From
func IODataQueueDequeue(_ dataQueue: UnsafeMutablePointer<IODataQueueMemory>, _ data: UnsafeMutablePointer<Void>, _ dataSize: UnsafeMutablePointer<UInt32>) -> IOReturn
To
func IODataQueueDequeue(_ dataQueue: UnsafeMutablePointer<IODataQueueMemory>!, _ data: UnsafeMutableRawPointer!, _ dataSize: UnsafeMutablePointer<UInt32>!) -> IOReturn

Declaration
From
func IODataQueueEnqueue(_ dataQueue: UnsafeMutablePointer<IODataQueueMemory>, _ data: UnsafeMutablePointer<Void>, _ dataSize: UInt32) -> IOReturn
To
func IODataQueueEnqueue(_ dataQueue: UnsafeMutablePointer<IODataQueueMemory>!, _ data: UnsafeMutableRawPointer!, _ dataSize: UInt32) -> IOReturn

Declaration
From
func IODataQueuePeek(_ dataQueue: UnsafeMutablePointer<IODataQueueMemory>) -> UnsafeMutablePointer<IODataQueueEntry>
To
func IODataQueuePeek(_ dataQueue: UnsafeMutablePointer<IODataQueueMemory>!) -> UnsafeMutablePointer<IODataQueueEntry>!

Declaration
From
func IODataQueueSetNotificationPort(_ dataQueue: UnsafeMutablePointer<IODataQueueMemory>, _ notifyPort: mach_port_t) -> IOReturn
To
func IODataQueueSetNotificationPort(_ dataQueue: UnsafeMutablePointer<IODataQueueMemory>!, _ notifyPort: mach_port_t) -> IOReturn

Declaration
From
func IODataQueueWaitForAvailableData(_ dataQueue: UnsafeMutablePointer<IODataQueueMemory>, _ notificationPort: mach_port_t) -> IOReturn
To
func IODataQueueWaitForAvailableData(_ dataQueue: UnsafeMutablePointer<IODataQueueMemory>!, _ notificationPort: mach_port_t) -> IOReturn

Declaration
From
func IODestroyPlugInInterface(_ interface: UnsafeMutablePointer<UnsafeMutablePointer<IOCFPlugInInterface>>) -> kern_return_t
To
func IODestroyPlugInInterface(_ interface: UnsafeMutablePointer<UnsafeMutablePointer<IOCFPlugInInterface>?>!) -> kern_return_t

Declaration
From
func IODispatchCalloutFromMessage(_ unused: UnsafeMutablePointer<Void>, _ msg: UnsafeMutablePointer<mach_msg_header_t>, _ reference: UnsafeMutablePointer<Void>)
To
func IODispatchCalloutFromMessage(_ unused: UnsafeMutableRawPointer!, _ msg: UnsafeMutablePointer<mach_msg_header_t>!, _ reference: UnsafeMutableRawPointer!)

Declaration
From
func IOKitGetBusyState(_ masterPort: mach_port_t, _ busyState: UnsafeMutablePointer<UInt32>) -> kern_return_t
To
func IOKitGetBusyState(_ masterPort: mach_port_t, _ busyState: UnsafeMutablePointer<UInt32>!) -> kern_return_t

Declaration
From
func IOKitWaitQuiet(_ masterPort: mach_port_t, _ waitTime: UnsafeMutablePointer<mach_timespec_t>) -> kern_return_t
To
func IOKitWaitQuiet(_ masterPort: mach_port_t, _ waitTime: UnsafeMutablePointer<mach_timespec_t>!) -> kern_return_t

Declaration
From
func IOMasterPort(_ bootstrapPort: mach_port_t, _ masterPort: UnsafeMutablePointer<mach_port_t>) -> kern_return_t
To
func IOMasterPort(_ bootstrapPort: mach_port_t, _ masterPort: UnsafeMutablePointer<mach_port_t>!) -> kern_return_t

Declaration
From
func IONotificationPortCreate(_ masterPort: mach_port_t) -> IONotificationPortRef
To
func IONotificationPortCreate(_ masterPort: mach_port_t) -> IONotificationPortRef!

Declaration
From
func IONotificationPortDestroy(_ notify: IONotificationPortRef)
To
func IONotificationPortDestroy(_ notify: IONotificationPortRef!)

Declaration
From
func IONotificationPortGetMachPort(_ notify: IONotificationPortRef) -> mach_port_t
To
func IONotificationPortGetMachPort(_ notify: IONotificationPortRef!) -> mach_port_t

Declaration
From
func IONotificationPortGetRunLoopSource(_ notify: IONotificationPortRef) -> Unmanaged<CFRunLoopSource>!
To
func IONotificationPortGetRunLoopSource(_ notify: IONotificationPortRef!) -> Unmanaged<CFRunLoopSource>!

Declaration
From
typealias IONotificationPortRef = COpaquePointer
To
typealias IONotificationPortRef = OpaquePointer

Declaration
From
func IONotificationPortSetDispatchQueue(_ notify: IONotificationPortRef, _ queue: dispatch_queue_t!)
To
func IONotificationPortSetDispatchQueue(_ notify: IONotificationPortRef!, _ queue: DispatchQueue!)

Declaration
From
func IOObjectConformsTo(_ object: io_object_t, _ className: UnsafePointer<Int8>) -> boolean_t
To
func IOObjectConformsTo(_ object: io_object_t, _ className: UnsafePointer<Int8>!) -> boolean_t

Declaration
From
func IOObjectGetClass(_ object: io_object_t, _ className: UnsafeMutablePointer<Int8>) -> kern_return_t
To
func IOObjectGetClass(_ object: io_object_t, _ className: UnsafeMutablePointer<Int8>!) -> kern_return_t

Declaration
From
func IOOpenFirmwarePathMatching(_ masterPort: mach_port_t, _ options: UInt32, _ path: UnsafePointer<Int8>) -> Unmanaged<CFMutableDictionary>!
To
func IOOpenFirmwarePathMatching(_ masterPort: mach_port_t, _ options: UInt32, _ path: UnsafePointer<Int8>!) -> Unmanaged<CFMutableDictionary>!

Declaration
From
func IORegistryCreateIterator(_ masterPort: mach_port_t, _ plane: UnsafePointer<Int8>, _ options: IOOptionBits, _ iterator: UnsafeMutablePointer<io_iterator_t>) -> kern_return_t
To
func IORegistryCreateIterator(_ masterPort: mach_port_t, _ plane: UnsafePointer<Int8>!, _ options: IOOptionBits, _ iterator: UnsafeMutablePointer<io_iterator_t>!) -> kern_return_t

Declaration
From
func IORegistryEntryCopyPath(_ entry: io_registry_entry_t, _ plane: UnsafePointer<Int8>) -> Unmanaged<CFString>!
To
func IORegistryEntryCopyPath(_ entry: io_registry_entry_t, _ plane: UnsafePointer<Int8>!) -> Unmanaged<CFString>!

Declaration
From
func IORegistryEntryCreateCFProperties(_ entry: io_registry_entry_t, _ properties: UnsafeMutablePointer<Unmanaged<CFMutableDictionary>?>, _ allocator: CFAllocator!, _ options: IOOptionBits) -> kern_return_t
To
func IORegistryEntryCreateCFProperties(_ entry: io_registry_entry_t, _ properties: UnsafeMutablePointer<Unmanaged<CFMutableDictionary>?>!, _ allocator: CFAllocator!, _ options: IOOptionBits) -> kern_return_t

Declaration
From
func IORegistryEntryCreateCFProperty(_ entry: io_registry_entry_t, _ key: CFString!, _ allocator: CFAllocator!, _ options: IOOptionBits) -> Unmanaged<AnyObject>!
To
func IORegistryEntryCreateCFProperty(_ entry: io_registry_entry_t, _ key: CFString!, _ allocator: CFAllocator!, _ options: IOOptionBits) -> Unmanaged<CFTypeRef>!

Declaration
From
func IORegistryEntryCreateIterator(_ entry: io_registry_entry_t, _ plane: UnsafePointer<Int8>, _ options: IOOptionBits, _ iterator: UnsafeMutablePointer<io_iterator_t>) -> kern_return_t
To
func IORegistryEntryCreateIterator(_ entry: io_registry_entry_t, _ plane: UnsafePointer<Int8>!, _ options: IOOptionBits, _ iterator: UnsafeMutablePointer<io_iterator_t>!) -> kern_return_t

Declaration
From
func IORegistryEntryFromPath(_ masterPort: mach_port_t, _ path: UnsafePointer<Int8>) -> io_registry_entry_t
To
func IORegistryEntryFromPath(_ masterPort: mach_port_t, _ path: UnsafePointer<Int8>!) -> io_registry_entry_t

Declaration
From
func IORegistryEntryGetChildEntry(_ entry: io_registry_entry_t, _ plane: UnsafePointer<Int8>, _ child: UnsafeMutablePointer<io_registry_entry_t>) -> kern_return_t
To
func IORegistryEntryGetChildEntry(_ entry: io_registry_entry_t, _ plane: UnsafePointer<Int8>!, _ child: UnsafeMutablePointer<io_registry_entry_t>!) -> kern_return_t

Declaration
From
func IORegistryEntryGetChildIterator(_ entry: io_registry_entry_t, _ plane: UnsafePointer<Int8>, _ iterator: UnsafeMutablePointer<io_iterator_t>) -> kern_return_t
To
func IORegistryEntryGetChildIterator(_ entry: io_registry_entry_t, _ plane: UnsafePointer<Int8>!, _ iterator: UnsafeMutablePointer<io_iterator_t>!) -> kern_return_t

Declaration
From
func IORegistryEntryGetLocationInPlane(_ entry: io_registry_entry_t, _ plane: UnsafePointer<Int8>, _ location: UnsafeMutablePointer<Int8>) -> kern_return_t
To
func IORegistryEntryGetLocationInPlane(_ entry: io_registry_entry_t, _ plane: UnsafePointer<Int8>!, _ location: UnsafeMutablePointer<Int8>!) -> kern_return_t

Declaration
From
func IORegistryEntryGetName(_ entry: io_registry_entry_t, _ name: UnsafeMutablePointer<Int8>) -> kern_return_t
To
func IORegistryEntryGetName(_ entry: io_registry_entry_t, _ name: UnsafeMutablePointer<Int8>!) -> kern_return_t

Declaration
From
func IORegistryEntryGetNameInPlane(_ entry: io_registry_entry_t, _ plane: UnsafePointer<Int8>, _ name: UnsafeMutablePointer<Int8>) -> kern_return_t
To
func IORegistryEntryGetNameInPlane(_ entry: io_registry_entry_t, _ plane: UnsafePointer<Int8>!, _ name: UnsafeMutablePointer<Int8>!) -> kern_return_t

Declaration
From
func IORegistryEntryGetParentEntry(_ entry: io_registry_entry_t, _ plane: UnsafePointer<Int8>, _ parent: UnsafeMutablePointer<io_registry_entry_t>) -> kern_return_t
To
func IORegistryEntryGetParentEntry(_ entry: io_registry_entry_t, _ plane: UnsafePointer<Int8>!, _ parent: UnsafeMutablePointer<io_registry_entry_t>!) -> kern_return_t

Declaration
From
func IORegistryEntryGetParentIterator(_ entry: io_registry_entry_t, _ plane: UnsafePointer<Int8>, _ iterator: UnsafeMutablePointer<io_iterator_t>) -> kern_return_t
To
func IORegistryEntryGetParentIterator(_ entry: io_registry_entry_t, _ plane: UnsafePointer<Int8>!, _ iterator: UnsafeMutablePointer<io_iterator_t>!) -> kern_return_t

Declaration
From
func IORegistryEntryGetPath(_ entry: io_registry_entry_t, _ plane: UnsafePointer<Int8>, _ path: UnsafeMutablePointer<Int8>) -> kern_return_t
To
func IORegistryEntryGetPath(_ entry: io_registry_entry_t, _ plane: UnsafePointer<Int8>!, _ path: UnsafeMutablePointer<Int8>!) -> kern_return_t

Declaration
From
func IORegistryEntryGetProperty(_ entry: io_registry_entry_t, _ propertyName: UnsafePointer<Int8>, _ buffer: UnsafeMutablePointer<Int8>, _ size: UnsafeMutablePointer<UInt32>) -> kern_return_t
To
func IORegistryEntryGetProperty(_ entry: io_registry_entry_t, _ propertyName: UnsafePointer<Int8>!, _ buffer: UnsafeMutablePointer<Int8>!, _ size: UnsafeMutablePointer<UInt32>!) -> kern_return_t

Declaration
From
func IORegistryEntryGetRegistryEntryID(_ entry: io_registry_entry_t, _ entryID: UnsafeMutablePointer<UInt64>) -> kern_return_t
To
func IORegistryEntryGetRegistryEntryID(_ entry: io_registry_entry_t, _ entryID: UnsafeMutablePointer<UInt64>!) -> kern_return_t

Declaration
From
func IORegistryEntryInPlane(_ entry: io_registry_entry_t, _ plane: UnsafePointer<Int8>) -> boolean_t
To
func IORegistryEntryInPlane(_ entry: io_registry_entry_t, _ plane: UnsafePointer<Int8>!) -> boolean_t

Declaration
From
func IORegistryEntrySearchCFProperty(_ entry: io_registry_entry_t, _ plane: UnsafePointer<Int8>, _ key: CFString!, _ allocator: CFAllocator!, _ options: IOOptionBits) -> AnyObject!
To
func IORegistryEntrySearchCFProperty(_ entry: io_registry_entry_t, _ plane: UnsafePointer<Int8>!, _ key: CFString!, _ allocator: CFAllocator!, _ options: IOOptionBits) -> CFTypeRef!

Declaration
From
func IORegistryEntrySetCFProperties(_ entry: io_registry_entry_t, _ properties: AnyObject!) -> kern_return_t
To
func IORegistryEntrySetCFProperties(_ entry: io_registry_entry_t, _ properties: CFTypeRef!) -> kern_return_t

Declaration
From
func IORegistryEntrySetCFProperty(_ entry: io_registry_entry_t, _ propertyName: CFString!, _ property: AnyObject!) -> kern_return_t
To
func IORegistryEntrySetCFProperty(_ entry: io_registry_entry_t, _ propertyName: CFString!, _ property: CFTypeRef!) -> kern_return_t

Declaration
From
func IOServiceAddInterestNotification(_ notifyPort: IONotificationPortRef, _ service: io_service_t, _ interestType: UnsafePointer<Int8>, _ callback: IOServiceInterestCallback!, _ refCon: UnsafeMutablePointer<Void>, _ notification: UnsafeMutablePointer<io_object_t>) -> kern_return_t
To
func IOServiceAddInterestNotification(_ notifyPort: IONotificationPortRef!, _ service: io_service_t, _ interestType: UnsafePointer<Int8>!, _ callback: IOKit.IOServiceInterestCallback!, _ refCon: UnsafeMutableRawPointer!, _ notification: UnsafeMutablePointer<io_object_t>!) -> kern_return_t

Declaration
From
func IOServiceAddMatchingNotification(_ notifyPort: IONotificationPortRef, _ notificationType: UnsafePointer<Int8>, _ matching: CFDictionary!, _ callback: IOServiceMatchingCallback!, _ refCon: UnsafeMutablePointer<Void>, _ notification: UnsafeMutablePointer<io_iterator_t>) -> kern_return_t
To
func IOServiceAddMatchingNotification(_ notifyPort: IONotificationPortRef!, _ notificationType: UnsafePointer<Int8>!, _ matching: CFDictionary!, _ callback: IOKit.IOServiceMatchingCallback!, _ refCon: UnsafeMutableRawPointer!, _ notification: UnsafeMutablePointer<io_iterator_t>!) -> kern_return_t

Declaration
From
func IOServiceAddNotification(_ masterPort: mach_port_t, _ notificationType: UnsafePointer<Int8>, _ matching: CFDictionary!, _ wakePort: mach_port_t, _ reference: UInt, _ notification: UnsafeMutablePointer<io_iterator_t>) -> kern_return_t
To
func IOServiceAddNotification(_ masterPort: mach_port_t, _ notificationType: UnsafePointer<Int8>!, _ matching: CFDictionary!, _ wakePort: mach_port_t, _ reference: UInt, _ notification: UnsafeMutablePointer<io_iterator_t>!) -> kern_return_t

Declaration
From
func IOServiceGetBusyState(_ service: io_service_t, _ busyState: UnsafeMutablePointer<UInt32>) -> kern_return_t
To
func IOServiceGetBusyState(_ service: io_service_t, _ busyState: UnsafeMutablePointer<UInt32>!) -> kern_return_t

Declaration
From
func IOServiceGetMatchingServices(_ masterPort: mach_port_t, _ matching: CFDictionary!, _ existing: UnsafeMutablePointer<io_iterator_t>) -> kern_return_t
To
func IOServiceGetMatchingServices(_ masterPort: mach_port_t, _ matching: CFDictionary!, _ existing: UnsafeMutablePointer<io_iterator_t>!) -> kern_return_t

Declaration
From
typealias IOServiceInterestCallback = (UnsafeMutablePointer<Void>, io_service_t, UInt32, UnsafeMutablePointer<Void>) -> Void
To
typealias IOServiceInterestCallback = (UnsafeMutableRawPointer?, io_service_t, UInt32, UnsafeMutableRawPointer?) -> Swift.Void

Declaration
From
func IOServiceMatching(_ name: UnsafePointer<Int8>) -> CFMutableDictionary!
To
func IOServiceMatching(_ name: UnsafePointer<Int8>!) -> CFMutableDictionary!

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

Declaration
From
func IOServiceMatchPropertyTable(_ service: io_service_t, _ matching: CFDictionary!, _ matches: UnsafeMutablePointer<boolean_t>) -> kern_return_t
To
func IOServiceMatchPropertyTable(_ service: io_service_t, _ matching: CFDictionary!, _ matches: UnsafeMutablePointer<boolean_t>!) -> kern_return_t

Declaration
From
func IOServiceNameMatching(_ name: UnsafePointer<Int8>) -> CFMutableDictionary!
To
func IOServiceNameMatching(_ name: UnsafePointer<Int8>!) -> CFMutableDictionary!

Declaration
From
func IOServiceOFPathToBSDName(_ masterPort: mach_port_t, _ openFirmwarePath: UnsafePointer<Int8>, _ bsdName: UnsafeMutablePointer<Int8>) -> kern_return_t
To
func IOServiceOFPathToBSDName(_ masterPort: mach_port_t, _ openFirmwarePath: UnsafePointer<Int8>!, _ bsdName: UnsafeMutablePointer<Int8>!) -> kern_return_t

Declaration
From
func IOServiceOpen(_ service: io_service_t, _ owningTask: task_port_t, _ type: UInt32, _ connect: UnsafeMutablePointer<io_connect_t>) -> kern_return_t
To
func IOServiceOpen(_ service: io_service_t, _ owningTask: task_port_t, _ type: UInt32, _ connect: UnsafeMutablePointer<io_connect_t>!) -> kern_return_t

Declaration
From
func IOServiceWaitQuiet(_ service: io_service_t, _ waitTime: UnsafeMutablePointer<mach_timespec_t>) -> kern_return_t
To
func IOServiceWaitQuiet(_ service: io_service_t, _ waitTime: UnsafeMutablePointer<mach_timespec_t>!) -> kern_return_t

Declaration
From
func IOURLCreateDataAndPropertiesFromResource(_ alloc: CFAllocator!, _ url: CFURL!, _ resourceData: UnsafeMutablePointer<Unmanaged<CFData>?>, _ properties: UnsafeMutablePointer<Unmanaged<CFDictionary>?>, _ desiredProperties: CFArray!, _ errorCode: UnsafeMutablePointer<Int32>) -> Bool
To
func IOURLCreateDataAndPropertiesFromResource(_ alloc: CFAllocator!, _ url: CFURL!, _ resourceData: UnsafeMutablePointer<Unmanaged<CFData>?>!, _ properties: UnsafeMutablePointer<Unmanaged<CFDictionary>?>!, _ desiredProperties: CFArray!, _ errorCode: UnsafeMutablePointer<Int32>!) -> Bool

Declaration
From
func IOURLCreatePropertyFromResource(_ alloc: CFAllocator!, _ url: CFURL!, _ property: CFString!, _ errorCode: UnsafeMutablePointer<Int32>) -> Unmanaged<AnyObject>!
To
func IOURLCreatePropertyFromResource(_ alloc: CFAllocator!, _ url: CFURL!, _ property: CFString!, _ errorCode: UnsafeMutablePointer<Int32>!) -> Unmanaged<CFTypeRef>!

Declaration
From
func IOURLWriteDataAndPropertiesToResource(_ url: CFURL!, _ dataToWrite: CFData!, _ propertiesToWrite: CFDictionary!, _ errorCode: UnsafeMutablePointer<Int32>) -> Bool
To
func IOURLWriteDataAndPropertiesToResource(_ url: CFURL!, _ dataToWrite: CFData!, _ propertiesToWrite: CFDictionary!, _ errorCode: UnsafeMutablePointer<Int32>!) -> Bool

Declaration
From
func OSGetNotificationFromMessage(_ msg: UnsafeMutablePointer<mach_msg_header_t>, _ index: UInt32, _ type: UnsafeMutablePointer<UInt32>, _ reference: UnsafeMutablePointer<UInt>, _ content: UnsafeMutablePointer<UnsafeMutablePointer<Void>>, _ size: UnsafeMutablePointer<vm_size_t>) -> kern_return_t
To
func OSGetNotificationFromMessage(_ msg: UnsafeMutablePointer<mach_msg_header_t>!, _ index: UInt32, _ type: UnsafeMutablePointer<UInt32>!, _ reference: UnsafeMutablePointer<UInt>!, _ content: UnsafeMutablePointer<UnsafeMutableRawPointer?>!, _ size: UnsafeMutablePointer<vm_size_t>!) -> kern_return_t