Documentation Archive Developer
Search

SystemConfiguration Changes for Swift

SystemConfiguration

Removed SCDynamicStoreContext.init(version: CFIndex, info: UnsafeMutablePointer<Void>, retain: CFunctionPointer<((UnsafePointer<Void>) -> UnsafePointer<Void>)>, release: CFunctionPointer<((UnsafePointer<Void>) -> Void)>, copyDescription: CFunctionPointer<((UnsafePointer<Void>) -> Unmanaged<CFString>!)>)
Removed SCNetworkConnectionContext.init(version: CFIndex, info: UnsafeMutablePointer<Void>, retain: CFunctionPointer<((UnsafePointer<Void>) -> UnsafePointer<Void>)>, release: CFunctionPointer<((UnsafePointer<Void>) -> Void)>, copyDescription: CFunctionPointer<((UnsafePointer<Void>) -> Unmanaged<CFString>!)>)
Removed SCNetworkReachabilityContext.init(version: CFIndex, info: UnsafeMutablePointer<Void>, retain: CFunctionPointer<((UnsafePointer<Void>) -> UnsafePointer<Void>)>, release: CFunctionPointer<((UnsafePointer<Void>) -> Void)>, copyDescription: CFunctionPointer<((UnsafePointer<Void>) -> Unmanaged<CFString>!)>)
Removed SCPreferencesContext.init(version: CFIndex, info: UnsafeMutablePointer<Void>, retain: CFunctionPointer<((UnsafePointer<Void>) -> UnsafePointer<Void>)>, release: CFunctionPointer<((UnsafePointer<Void>) -> Void)>, copyDescription: CFunctionPointer<((UnsafePointer<Void>) -> Unmanaged<CFString>!)>)
Removed kSCNetworkConnectionConnected
Removed kSCNetworkConnectionConnecting
Removed kSCNetworkConnectionDisconnected
Removed kSCNetworkConnectionDisconnecting
Removed kSCNetworkConnectionInvalid
Removed kSCNetworkConnectionPPPAuthenticating
Removed kSCNetworkConnectionPPPConnected
Removed kSCNetworkConnectionPPPConnectingLink
Removed kSCNetworkConnectionPPPDialOnTraffic
Removed kSCNetworkConnectionPPPDisconnected
Removed kSCNetworkConnectionPPPDisconnectingLink
Removed kSCNetworkConnectionPPPHoldingLinkOff
Removed kSCNetworkConnectionPPPInitializing
Removed kSCNetworkConnectionPPPNegotiatingLink
Removed kSCNetworkConnectionPPPNegotiatingNetwork
Removed kSCNetworkConnectionPPPSuspended
Removed kSCNetworkConnectionPPPTerminating
Removed kSCNetworkConnectionPPPWaitingForCallBack
Removed kSCNetworkConnectionPPPWaitingForRedial
Removed kSCNetworkReachabilityFlagsConnectionAutomatic
Removed kSCNetworkReachabilityFlagsConnectionOnDemand
Removed kSCNetworkReachabilityFlagsConnectionOnTraffic
Removed kSCNetworkReachabilityFlagsConnectionRequired
Removed kSCNetworkReachabilityFlagsInterventionRequired
Removed kSCNetworkReachabilityFlagsIsDirect
Removed kSCNetworkReachabilityFlagsIsLocalAddress
Removed kSCNetworkReachabilityFlagsIsWWAN
Removed kSCNetworkReachabilityFlagsReachable
Removed kSCNetworkReachabilityFlagsTransientConnection
Removed kSCPreferencesNotificationApply
Removed kSCPreferencesNotificationCommit
Removed SCNetworkConnectionPPPStatus
Removed SCNetworkConnectionStatus
Removed SCNetworkReachabilityFlags
Removed SCPreferencesNotification
Added SCDynamicStoreContext.init(version: CFIndex, info: UnsafeMutablePointer<Void>, retain: ((UnsafePointer<Void>) -> UnsafePointer<Void>)?, release: ((UnsafePointer<Void>) -> Void)?, copyDescription: ((UnsafePointer<Void>) -> Unmanaged<CFString>)?)
Added SCNetworkConnectionContext.init(version: CFIndex, info: UnsafeMutablePointer<Void>, retain: ((UnsafePointer<Void>) -> UnsafePointer<Void>)?, release: ((UnsafePointer<Void>) -> Void)?, copyDescription: ((UnsafePointer<Void>) -> Unmanaged<CFString>)?)
Added SCNetworkReachabilityContext.init(version: CFIndex, info: UnsafeMutablePointer<Void>, retain: ((UnsafePointer<Void>) -> UnsafePointer<Void>)?, release: ((UnsafePointer<Void>) -> Void)?, copyDescription: ((UnsafePointer<Void>) -> Unmanaged<CFString>)?)
Added SCNetworkReachabilityFlags.init(rawValue: UInt32)
Added SCPreferencesContext.init(version: CFIndex, info: UnsafeMutablePointer<Void>, retain: ((UnsafePointer<Void>) -> UnsafePointer<Void>)?, release: ((UnsafePointer<Void>) -> Void)?, copyDescription: ((UnsafePointer<Void>) -> Unmanaged<CFString>)?)
Added SCPreferencesNotification.init(rawValue: UInt32)
Declaration
From
struct SCDynamicStoreContext {
    var version: CFIndex
    var info: UnsafeMutablePointer<Void>
    var retain: CFunctionPointer<((UnsafePointer<Void>) -> UnsafePointer<Void>)>
    var release: CFunctionPointer<((UnsafePointer<Void>) -> Void)>
    var copyDescription: CFunctionPointer<((UnsafePointer<Void>) -> Unmanaged<CFString>!)>
    init()
    init(version version: CFIndex, info info: UnsafeMutablePointer<Void>, retain retain: CFunctionPointer<((UnsafePointer<Void>) -> UnsafePointer<Void>)>, release release: CFunctionPointer<((UnsafePointer<Void>) -> Void)>, copyDescription copyDescription: CFunctionPointer<((UnsafePointer<Void>) -> Unmanaged<CFString>!)>)
}
To
struct SCDynamicStoreContext {
    var version: CFIndex
    var info: UnsafeMutablePointer<Void>
    var retain: ((UnsafePointer<Void>) -> UnsafePointer<Void>)?
    var release: ((UnsafePointer<Void>) -> Void)?
    var copyDescription: ((UnsafePointer<Void>) -> Unmanaged<CFString>)?
    init()
    init(version version: CFIndex, info info: UnsafeMutablePointer<Void>, retain retain: ((UnsafePointer<Void>) -> UnsafePointer<Void>)?, release release: ((UnsafePointer<Void>) -> Void)?, copyDescription copyDescription: ((UnsafePointer<Void>) -> Unmanaged<CFString>)?)
}

Declaration
From
var copyDescription: CFunctionPointer<((UnsafePointer<Void>) -> Unmanaged<CFString>!)>
To
var copyDescription: ((UnsafePointer<Void>) -> Unmanaged<CFString>)?

Declaration
From
var release: CFunctionPointer<((UnsafePointer<Void>) -> Void)>
To
var release: ((UnsafePointer<Void>) -> Void)?

Declaration
From
var retain: CFunctionPointer<((UnsafePointer<Void>) -> UnsafePointer<Void>)>
To
var retain: ((UnsafePointer<Void>) -> UnsafePointer<Void>)?

Declaration
From
struct SCNetworkConnectionContext {
    var version: CFIndex
    var info: UnsafeMutablePointer<Void>
    var retain: CFunctionPointer<((UnsafePointer<Void>) -> UnsafePointer<Void>)>
    var release: CFunctionPointer<((UnsafePointer<Void>) -> Void)>
    var copyDescription: CFunctionPointer<((UnsafePointer<Void>) -> Unmanaged<CFString>!)>
    init()
    init(version version: CFIndex, info info: UnsafeMutablePointer<Void>, retain retain: CFunctionPointer<((UnsafePointer<Void>) -> UnsafePointer<Void>)>, release release: CFunctionPointer<((UnsafePointer<Void>) -> Void)>, copyDescription copyDescription: CFunctionPointer<((UnsafePointer<Void>) -> Unmanaged<CFString>!)>)
}
To
struct SCNetworkConnectionContext {
    var version: CFIndex
    var info: UnsafeMutablePointer<Void>
    var retain: ((UnsafePointer<Void>) -> UnsafePointer<Void>)?
    var release: ((UnsafePointer<Void>) -> Void)?
    var copyDescription: ((UnsafePointer<Void>) -> Unmanaged<CFString>)?
    init()
    init(version version: CFIndex, info info: UnsafeMutablePointer<Void>, retain retain: ((UnsafePointer<Void>) -> UnsafePointer<Void>)?, release release: ((UnsafePointer<Void>) -> Void)?, copyDescription copyDescription: ((UnsafePointer<Void>) -> Unmanaged<CFString>)?)
}

Declaration
From
var copyDescription: CFunctionPointer<((UnsafePointer<Void>) -> Unmanaged<CFString>!)>
To
var copyDescription: ((UnsafePointer<Void>) -> Unmanaged<CFString>)?

Declaration
From
var release: CFunctionPointer<((UnsafePointer<Void>) -> Void)>
To
var release: ((UnsafePointer<Void>) -> Void)?

Declaration
From
var retain: CFunctionPointer<((UnsafePointer<Void>) -> UnsafePointer<Void>)>
To
var retain: ((UnsafePointer<Void>) -> UnsafePointer<Void>)?

Declaration
From
struct SCNetworkReachabilityContext {
    var version: CFIndex
    var info: UnsafeMutablePointer<Void>
    var retain: CFunctionPointer<((UnsafePointer<Void>) -> UnsafePointer<Void>)>
    var release: CFunctionPointer<((UnsafePointer<Void>) -> Void)>
    var copyDescription: CFunctionPointer<((UnsafePointer<Void>) -> Unmanaged<CFString>!)>
    init()
    init(version version: CFIndex, info info: UnsafeMutablePointer<Void>, retain retain: CFunctionPointer<((UnsafePointer<Void>) -> UnsafePointer<Void>)>, release release: CFunctionPointer<((UnsafePointer<Void>) -> Void)>, copyDescription copyDescription: CFunctionPointer<((UnsafePointer<Void>) -> Unmanaged<CFString>!)>)
}
To
struct SCNetworkReachabilityContext {
    var version: CFIndex
    var info: UnsafeMutablePointer<Void>
    var retain: ((UnsafePointer<Void>) -> UnsafePointer<Void>)?
    var release: ((UnsafePointer<Void>) -> Void)?
    var copyDescription: ((UnsafePointer<Void>) -> Unmanaged<CFString>)?
    init()
    init(version version: CFIndex, info info: UnsafeMutablePointer<Void>, retain retain: ((UnsafePointer<Void>) -> UnsafePointer<Void>)?, release release: ((UnsafePointer<Void>) -> Void)?, copyDescription copyDescription: ((UnsafePointer<Void>) -> Unmanaged<CFString>)?)
}

Declaration
From
var copyDescription: CFunctionPointer<((UnsafePointer<Void>) -> Unmanaged<CFString>!)>
To
var copyDescription: ((UnsafePointer<Void>) -> Unmanaged<CFString>)?

Declaration
From
var release: CFunctionPointer<((UnsafePointer<Void>) -> Void)>
To
var release: ((UnsafePointer<Void>) -> Void)?

Declaration
From
var retain: CFunctionPointer<((UnsafePointer<Void>) -> UnsafePointer<Void>)>
To
var retain: ((UnsafePointer<Void>) -> UnsafePointer<Void>)?

Declaration
From
struct SCPreferencesContext {
    var version: CFIndex
    var info: UnsafeMutablePointer<Void>
    var retain: CFunctionPointer<((UnsafePointer<Void>) -> UnsafePointer<Void>)>
    var release: CFunctionPointer<((UnsafePointer<Void>) -> Void)>
    var copyDescription: CFunctionPointer<((UnsafePointer<Void>) -> Unmanaged<CFString>!)>
    init()
    init(version version: CFIndex, info info: UnsafeMutablePointer<Void>, retain retain: CFunctionPointer<((UnsafePointer<Void>) -> UnsafePointer<Void>)>, release release: CFunctionPointer<((UnsafePointer<Void>) -> Void)>, copyDescription copyDescription: CFunctionPointer<((UnsafePointer<Void>) -> Unmanaged<CFString>!)>)
}
To
struct SCPreferencesContext {
    var version: CFIndex
    var info: UnsafeMutablePointer<Void>
    var retain: ((UnsafePointer<Void>) -> UnsafePointer<Void>)?
    var release: ((UnsafePointer<Void>) -> Void)?
    var copyDescription: ((UnsafePointer<Void>) -> Unmanaged<CFString>)?
    init()
    init(version version: CFIndex, info info: UnsafeMutablePointer<Void>, retain retain: ((UnsafePointer<Void>) -> UnsafePointer<Void>)?, release release: ((UnsafePointer<Void>) -> Void)?, copyDescription copyDescription: ((UnsafePointer<Void>) -> Unmanaged<CFString>)?)
}

Declaration
From
var copyDescription: CFunctionPointer<((UnsafePointer<Void>) -> Unmanaged<CFString>!)>
To
var copyDescription: ((UnsafePointer<Void>) -> Unmanaged<CFString>)?

Declaration
From
var release: CFunctionPointer<((UnsafePointer<Void>) -> Void)>
To
var release: ((UnsafePointer<Void>) -> Void)?

Declaration
From
var retain: CFunctionPointer<((UnsafePointer<Void>) -> UnsafePointer<Void>)>
To
var retain: ((UnsafePointer<Void>) -> UnsafePointer<Void>)?

Declaration
From
let kCFErrorDomainSystemConfiguration: CFString!
To
let kCFErrorDomainSystemConfiguration: CFString

Declaration
From
func SCCopyLastError() -> Unmanaged<CFError>!
To
func SCCopyLastError() -> CFError

Declaration
From
typealias SCDynamicStoreCallBack = CFunctionPointer<((SCDynamicStore!, CFArray!, UnsafeMutablePointer<Void>) -> Void)>
To
typealias SCDynamicStoreCallBack = (SCDynamicStore, CFArray, UnsafeMutablePointer<Void>) -> Void

Declaration
From
typealias SCNetworkConnectionCallBack = CFunctionPointer<((SCNetworkConnection!, SCNetworkConnectionStatus, UnsafeMutablePointer<Void>) -> Void)>
To
typealias SCNetworkConnectionCallBack = (SCNetworkConnection, SCNetworkConnectionStatus, UnsafeMutablePointer<Void>) -> Void

Declaration
From
typealias SCNetworkReachabilityCallBack = CFunctionPointer<((SCNetworkReachability!, SCNetworkReachabilityFlags, UnsafeMutablePointer<Void>) -> Void)>
To
typealias SCNetworkReachabilityCallBack = (SCNetworkReachability, SCNetworkReachabilityFlags, UnsafeMutablePointer<Void>) -> Void

Declaration
From
func SCNetworkReachabilityCreateWithAddress(_ allocator: CFAllocator!, _ address: UnsafePointer<sockaddr>) -> Unmanaged<SCNetworkReachability>!
To
func SCNetworkReachabilityCreateWithAddress(_ allocator: CFAllocator?, _ address: UnsafePointer<sockaddr>) -> SCNetworkReachability?

Declaration
From
func SCNetworkReachabilityCreateWithAddressPair(_ allocator: CFAllocator!, _ localAddress: UnsafePointer<sockaddr>, _ remoteAddress: UnsafePointer<sockaddr>) -> Unmanaged<SCNetworkReachability>!
To
func SCNetworkReachabilityCreateWithAddressPair(_ allocator: CFAllocator?, _ localAddress: UnsafePointer<sockaddr>, _ remoteAddress: UnsafePointer<sockaddr>) -> SCNetworkReachability?

Declaration
From
func SCNetworkReachabilityCreateWithName(_ allocator: CFAllocator!, _ nodename: UnsafePointer<Int8>) -> Unmanaged<SCNetworkReachability>!
To
func SCNetworkReachabilityCreateWithName(_ allocator: CFAllocator?, _ nodename: UnsafePointer<Int8>) -> SCNetworkReachability?

Declaration
From
func SCNetworkReachabilityGetFlags(_ target: SCNetworkReachability!, _ flags: UnsafeMutablePointer<SCNetworkReachabilityFlags>) -> Boolean
To
func SCNetworkReachabilityGetFlags(_ target: SCNetworkReachability, _ flags: UnsafeMutablePointer<SCNetworkReachabilityFlags>) -> Bool

Declaration
From
func SCNetworkReachabilityScheduleWithRunLoop(_ target: SCNetworkReachability!, _ runLoop: CFRunLoop!, _ runLoopMode: CFString!) -> Boolean
To
func SCNetworkReachabilityScheduleWithRunLoop(_ target: SCNetworkReachability, _ runLoop: CFRunLoop, _ runLoopMode: CFString) -> Bool

Declaration
From
func SCNetworkReachabilitySetCallback(_ target: SCNetworkReachability!, _ callout: SCNetworkReachabilityCallBack, _ context: UnsafeMutablePointer<SCNetworkReachabilityContext>) -> Boolean
To
func SCNetworkReachabilitySetCallback(_ target: SCNetworkReachability, _ callout: SCNetworkReachabilityCallBack?, _ context: UnsafeMutablePointer<SCNetworkReachabilityContext>) -> Bool

Declaration
From
func SCNetworkReachabilitySetDispatchQueue(_ target: SCNetworkReachability!, _ queue: dispatch_queue_t!) -> Boolean
To
func SCNetworkReachabilitySetDispatchQueue(_ target: SCNetworkReachability, _ queue: dispatch_queue_t?) -> Bool

Declaration
From
func SCNetworkReachabilityUnscheduleFromRunLoop(_ target: SCNetworkReachability!, _ runLoop: CFRunLoop!, _ runLoopMode: CFString!) -> Boolean
To
func SCNetworkReachabilityUnscheduleFromRunLoop(_ target: SCNetworkReachability, _ runLoop: CFRunLoop, _ runLoopMode: CFString) -> Bool

Declaration
From
typealias SCPreferencesCallBack = CFunctionPointer<((SCPreferences!, SCPreferencesNotification, UnsafeMutablePointer<Void>) -> Void)>
To
typealias SCPreferencesCallBack = (SCPreferences, SCPreferencesNotification, UnsafeMutablePointer<Void>) -> Void