Documentation Archive Developer
Search

SystemConfiguration Changes for Swift

SystemConfiguration

Declaration
From
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>)?)
}
To
struct SCDynamicStoreContext {
    var version: CFIndex
    var info: UnsafeMutableRawPointer?
    var retain: ((UnsafeRawPointer) -> UnsafeRawPointer)?
    var release: ((UnsafeRawPointer) -> Swift.Void)?
    var copyDescription: ((UnsafeRawPointer) -> Unmanaged<CFString>)?
    init()
    init(version version: CFIndex, info info: UnsafeMutableRawPointer?, retain retain: (@escaping (UnsafeRawPointer) -> UnsafeRawPointer)?, release release: (@escaping (UnsafeRawPointer) -> Swift.Void)?, copyDescription copyDescription: (@escaping (UnsafeRawPointer) -> Unmanaged<CFString>)?)
}

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

Declaration
From
var info: UnsafeMutablePointer<Void>
To
var info: UnsafeMutableRawPointer?

Declaration
From
var release: ((UnsafePointer<Void>) -> Void)?
To
var release: ((UnsafeRawPointer) -> Swift.Void)?

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

Declaration
From
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>)?)
}
To
struct SCNetworkConnectionContext {
    var version: CFIndex
    var info: UnsafeMutableRawPointer?
    var retain: ((UnsafeRawPointer) -> UnsafeRawPointer)?
    var release: ((UnsafeRawPointer) -> Swift.Void)?
    var copyDescription: ((UnsafeRawPointer) -> Unmanaged<CFString>)?
    init()
    init(version version: CFIndex, info info: UnsafeMutableRawPointer?, retain retain: (@escaping (UnsafeRawPointer) -> UnsafeRawPointer)?, release release: (@escaping (UnsafeRawPointer) -> Swift.Void)?, copyDescription copyDescription: (@escaping (UnsafeRawPointer) -> Unmanaged<CFString>)?)
}

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

Declaration
From
var info: UnsafeMutablePointer<Void>
To
var info: UnsafeMutableRawPointer?

Declaration
From
var release: ((UnsafePointer<Void>) -> Void)?
To
var release: ((UnsafeRawPointer) -> Swift.Void)?

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

Declaration
From
enum SCNetworkConnectionPPPStatus : Int32 {
    case Disconnected
    case Initializing
    case ConnectingLink
    case DialOnTraffic
    case NegotiatingLink
    case Authenticating
    case WaitingForCallBack
    case NegotiatingNetwork
    case Connected
    case Terminating
    case DisconnectingLink
    case HoldingLinkOff
    case Suspended
    case WaitingForRedial
}
To
enum SCNetworkConnectionPPPStatus : Int32 {
    case disconnected
    case initializing
    case connectingLink
    case dialOnTraffic
    case negotiatingLink
    case authenticating
    case waitingForCallBack
    case negotiatingNetwork
    case connected
    case terminating
    case disconnectingLink
    case holdingLinkOff
    case suspended
    case waitingForRedial
}

Declaration
From
case Authenticating
To
case authenticating

Declaration
From
case Connected
To
case connected

Declaration
From
case ConnectingLink
To
case connectingLink

Declaration
From
case DialOnTraffic
To
case dialOnTraffic

Declaration
From
case Disconnected
To
case disconnected

Declaration
From
case DisconnectingLink
To
case disconnectingLink

Declaration
From
case HoldingLinkOff
To
case holdingLinkOff

Declaration
From
case Initializing
To
case initializing

Declaration
From
case NegotiatingLink
To
case negotiatingLink

Declaration
From
case NegotiatingNetwork
To
case negotiatingNetwork

Declaration
From
case Suspended
To
case suspended

Declaration
From
case Terminating
To
case terminating

Declaration
From
case WaitingForCallBack
To
case waitingForCallBack

Declaration
From
case WaitingForRedial
To
case waitingForRedial

Declaration
From
enum SCNetworkConnectionStatus : Int32 {
    case Invalid
    case Disconnected
    case Connecting
    case Connected
    case Disconnecting
}
To
enum SCNetworkConnectionStatus : Int32 {
    case invalid
    case disconnected
    case connecting
    case connected
    case disconnecting
}

Declaration
From
case Connected
To
case connected

Declaration
From
case Connecting
To
case connecting

Declaration
From
case Disconnected
To
case disconnected

Declaration
From
case Disconnecting
To
case disconnecting

Declaration
From
case Invalid
To
case invalid

Declaration
From
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>)?)
}
To
struct SCNetworkReachabilityContext {
    var version: CFIndex
    var info: UnsafeMutableRawPointer?
    var retain: ((UnsafeRawPointer) -> UnsafeRawPointer)?
    var release: ((UnsafeRawPointer) -> Swift.Void)?
    var copyDescription: ((UnsafeRawPointer) -> Unmanaged<CFString>)?
    init()
    init(version version: CFIndex, info info: UnsafeMutableRawPointer?, retain retain: (@escaping (UnsafeRawPointer) -> UnsafeRawPointer)?, release release: (@escaping (UnsafeRawPointer) -> Swift.Void)?, copyDescription copyDescription: (@escaping (UnsafeRawPointer) -> Unmanaged<CFString>)?)
}

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

Declaration
From
var info: UnsafeMutablePointer<Void>
To
var info: UnsafeMutableRawPointer?

Declaration
From
var release: ((UnsafePointer<Void>) -> Void)?
To
var release: ((UnsafeRawPointer) -> Swift.Void)?

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

DeclarationProtocols
From
struct SCNetworkReachabilityFlags : OptionSetType {
    init(rawValue rawValue: UInt32)
    static var TransientConnection: SCNetworkReachabilityFlags { get }
    static var Reachable: SCNetworkReachabilityFlags { get }
    static var ConnectionRequired: SCNetworkReachabilityFlags { get }
    static var ConnectionOnTraffic: SCNetworkReachabilityFlags { get }
    static var InterventionRequired: SCNetworkReachabilityFlags { get }
    static var ConnectionOnDemand: SCNetworkReachabilityFlags { get }
    static var IsLocalAddress: SCNetworkReachabilityFlags { get }
    static var IsDirect: SCNetworkReachabilityFlags { get }
    static var IsWWAN: SCNetworkReachabilityFlags { get }
    static var ConnectionAutomatic: SCNetworkReachabilityFlags { get }
}
OptionSetType
To
struct SCNetworkReachabilityFlags : OptionSet {
    init(rawValue rawValue: UInt32)
    static var transientConnection: SCNetworkReachabilityFlags { get }
    static var reachable: SCNetworkReachabilityFlags { get }
    static var connectionRequired: SCNetworkReachabilityFlags { get }
    static var connectionOnTraffic: SCNetworkReachabilityFlags { get }
    static var interventionRequired: SCNetworkReachabilityFlags { get }
    static var connectionOnDemand: SCNetworkReachabilityFlags { get }
    static var isLocalAddress: SCNetworkReachabilityFlags { get }
    static var isDirect: SCNetworkReachabilityFlags { get }
    static var isWWAN: SCNetworkReachabilityFlags { get }
    static var connectionAutomatic: SCNetworkReachabilityFlags { get }
    func intersect(_ other: SCNetworkReachabilityFlags) -> SCNetworkReachabilityFlags
    func exclusiveOr(_ other: SCNetworkReachabilityFlags) -> SCNetworkReachabilityFlags
    mutating func unionInPlace(_ other: SCNetworkReachabilityFlags)
    mutating func intersectInPlace(_ other: SCNetworkReachabilityFlags)
    mutating func exclusiveOrInPlace(_ other: SCNetworkReachabilityFlags)
    func isSubsetOf(_ other: SCNetworkReachabilityFlags) -> Bool
    func isDisjointWith(_ other: SCNetworkReachabilityFlags) -> Bool
    func isSupersetOf(_ other: SCNetworkReachabilityFlags) -> Bool
    mutating func subtractInPlace(_ other: SCNetworkReachabilityFlags)
    func isStrictSupersetOf(_ other: SCNetworkReachabilityFlags) -> Bool
    func isStrictSubsetOf(_ other: SCNetworkReachabilityFlags) -> Bool
}
extension SCNetworkReachabilityFlags {
    func union(_ other: SCNetworkReachabilityFlags) -> SCNetworkReachabilityFlags
    func intersection(_ other: SCNetworkReachabilityFlags) -> SCNetworkReachabilityFlags
    func symmetricDifference(_ other: SCNetworkReachabilityFlags) -> SCNetworkReachabilityFlags
}
extension SCNetworkReachabilityFlags {
    func contains(_ member: SCNetworkReachabilityFlags) -> Bool
    mutating func insert(_ newMember: SCNetworkReachabilityFlags) -> (inserted: Bool, memberAfterInsert: SCNetworkReachabilityFlags)
    mutating func remove(_ member: SCNetworkReachabilityFlags) -> SCNetworkReachabilityFlags?
    mutating func update(with newMember: SCNetworkReachabilityFlags) -> SCNetworkReachabilityFlags?
}
extension SCNetworkReachabilityFlags {
    convenience init()
    mutating func formUnion(_ other: SCNetworkReachabilityFlags)
    mutating func formIntersection(_ other: SCNetworkReachabilityFlags)
    mutating func formSymmetricDifference(_ other: SCNetworkReachabilityFlags)
}
extension SCNetworkReachabilityFlags {
    convenience init<S : Sequence where S.Iterator.Element == SCNetworkReachabilityFlags>(_ sequence: S)
    convenience init(arrayLiteral arrayLiteral: SCNetworkReachabilityFlags...)
    mutating func subtract(_ other: SCNetworkReachabilityFlags)
    func isSubset(of other: SCNetworkReachabilityFlags) -> Bool
    func isSuperset(of other: SCNetworkReachabilityFlags) -> Bool
    func isDisjoint(with other: SCNetworkReachabilityFlags) -> Bool
    func subtracting(_ other: SCNetworkReachabilityFlags) -> SCNetworkReachabilityFlags
    var isEmpty: Bool { get }
    func isStrictSuperset(of other: SCNetworkReachabilityFlags) -> Bool
    func isStrictSubset(of other: SCNetworkReachabilityFlags) -> Bool
}
OptionSet

Declaration
From
static var ConnectionAutomatic: SCNetworkReachabilityFlags { get }
To
static var connectionAutomatic: SCNetworkReachabilityFlags { get }

Declaration
From
static var ConnectionOnDemand: SCNetworkReachabilityFlags { get }
To
static var connectionOnDemand: SCNetworkReachabilityFlags { get }

Declaration
From
static var ConnectionOnTraffic: SCNetworkReachabilityFlags { get }
To
static var connectionOnTraffic: SCNetworkReachabilityFlags { get }

Declaration
From
static var ConnectionRequired: SCNetworkReachabilityFlags { get }
To
static var connectionRequired: SCNetworkReachabilityFlags { get }

Declaration
From
static var InterventionRequired: SCNetworkReachabilityFlags { get }
To
static var interventionRequired: SCNetworkReachabilityFlags { get }

Declaration
From
static var IsDirect: SCNetworkReachabilityFlags { get }
To
static var isDirect: SCNetworkReachabilityFlags { get }

Declaration
From
static var IsLocalAddress: SCNetworkReachabilityFlags { get }
To
static var isLocalAddress: SCNetworkReachabilityFlags { get }

Declaration
From
static var IsWWAN: SCNetworkReachabilityFlags { get }
To
static var isWWAN: SCNetworkReachabilityFlags { get }

Declaration
From
static var Reachable: SCNetworkReachabilityFlags { get }
To
static var reachable: SCNetworkReachabilityFlags { get }

Declaration
From
static var TransientConnection: SCNetworkReachabilityFlags { get }
To
static var transientConnection: SCNetworkReachabilityFlags { get }

Declaration
From
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>)?)
}
To
struct SCPreferencesContext {
    var version: CFIndex
    var info: UnsafeMutableRawPointer?
    var retain: ((UnsafeRawPointer) -> UnsafeRawPointer)?
    var release: ((UnsafeRawPointer) -> Swift.Void)?
    var copyDescription: ((UnsafeRawPointer) -> Unmanaged<CFString>)?
    init()
    init(version version: CFIndex, info info: UnsafeMutableRawPointer?, retain retain: (@escaping (UnsafeRawPointer) -> UnsafeRawPointer)?, release release: (@escaping (UnsafeRawPointer) -> Swift.Void)?, copyDescription copyDescription: (@escaping (UnsafeRawPointer) -> Unmanaged<CFString>)?)
}

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

Declaration
From
var info: UnsafeMutablePointer<Void>
To
var info: UnsafeMutableRawPointer?

Declaration
From
var release: ((UnsafePointer<Void>) -> Void)?
To
var release: ((UnsafeRawPointer) -> Swift.Void)?

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

DeclarationProtocols
From
struct SCPreferencesNotification : OptionSetType {
    init(rawValue rawValue: UInt32)
    static var Commit: SCPreferencesNotification { get }
    static var Apply: SCPreferencesNotification { get }
}
OptionSetType
To
struct SCPreferencesNotification : OptionSet {
    init(rawValue rawValue: UInt32)
    static var commit: SCPreferencesNotification { get }
    static var apply: SCPreferencesNotification { get }
    func intersect(_ other: SCPreferencesNotification) -> SCPreferencesNotification
    func exclusiveOr(_ other: SCPreferencesNotification) -> SCPreferencesNotification
    mutating func unionInPlace(_ other: SCPreferencesNotification)
    mutating func intersectInPlace(_ other: SCPreferencesNotification)
    mutating func exclusiveOrInPlace(_ other: SCPreferencesNotification)
    func isSubsetOf(_ other: SCPreferencesNotification) -> Bool
    func isDisjointWith(_ other: SCPreferencesNotification) -> Bool
    func isSupersetOf(_ other: SCPreferencesNotification) -> Bool
    mutating func subtractInPlace(_ other: SCPreferencesNotification)
    func isStrictSupersetOf(_ other: SCPreferencesNotification) -> Bool
    func isStrictSubsetOf(_ other: SCPreferencesNotification) -> Bool
}
extension SCPreferencesNotification {
    func union(_ other: SCPreferencesNotification) -> SCPreferencesNotification
    func intersection(_ other: SCPreferencesNotification) -> SCPreferencesNotification
    func symmetricDifference(_ other: SCPreferencesNotification) -> SCPreferencesNotification
}
extension SCPreferencesNotification {
    func contains(_ member: SCPreferencesNotification) -> Bool
    mutating func insert(_ newMember: SCPreferencesNotification) -> (inserted: Bool, memberAfterInsert: SCPreferencesNotification)
    mutating func remove(_ member: SCPreferencesNotification) -> SCPreferencesNotification?
    mutating func update(with newMember: SCPreferencesNotification) -> SCPreferencesNotification?
}
extension SCPreferencesNotification {
    convenience init()
    mutating func formUnion(_ other: SCPreferencesNotification)
    mutating func formIntersection(_ other: SCPreferencesNotification)
    mutating func formSymmetricDifference(_ other: SCPreferencesNotification)
}
extension SCPreferencesNotification {
    convenience init<S : Sequence where S.Iterator.Element == SCPreferencesNotification>(_ sequence: S)
    convenience init(arrayLiteral arrayLiteral: SCPreferencesNotification...)
    mutating func subtract(_ other: SCPreferencesNotification)
    func isSubset(of other: SCPreferencesNotification) -> Bool
    func isSuperset(of other: SCPreferencesNotification) -> Bool
    func isDisjoint(with other: SCPreferencesNotification) -> Bool
    func subtracting(_ other: SCPreferencesNotification) -> SCPreferencesNotification
    var isEmpty: Bool { get }
    func isStrictSuperset(of other: SCPreferencesNotification) -> Bool
    func isStrictSubset(of other: SCPreferencesNotification) -> Bool
}
OptionSet

Declaration
From
static var Apply: SCPreferencesNotification { get }
To
static var apply: SCPreferencesNotification { get }

Declaration
From
static var Commit: SCPreferencesNotification { get }
To
static var commit: SCPreferencesNotification { get }

Declaration
From
typealias AuthorizationRef = COpaquePointer
To
typealias AuthorizationRef = OpaquePointer

Declaration
From
typealias SCBondInterface = SCNetworkInterfaceRef
To
typealias SCBondInterface = SCNetworkInterface

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

Declaration
From
typealias SCNetworkConnectionCallBack = (SCNetworkConnection, SCNetworkConnectionStatus, UnsafeMutablePointer<Void>) -> Void
To
typealias SCNetworkConnectionCallBack = (SCNetworkConnection, SCNetworkConnectionStatus, UnsafeMutableRawPointer?) -> Swift.Void

Declaration
From
typealias SCNetworkReachabilityCallBack = (SCNetworkReachability, SCNetworkReachabilityFlags, UnsafeMutablePointer<Void>) -> Void
To
typealias SCNetworkReachabilityCallBack = (SCNetworkReachability, SCNetworkReachabilityFlags, UnsafeMutableRawPointer?) -> Swift.Void

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

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

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

Declaration
From
typealias SCPreferencesCallBack = (SCPreferences, SCPreferencesNotification, UnsafeMutablePointer<Void>) -> Void
To
typealias SCPreferencesCallBack = (SCPreferences, SCPreferencesNotification, UnsafeMutableRawPointer?) -> Swift.Void

Declaration
From
typealias SCVLANInterfaceRef = SCVLANInterface
To
typealias SCVLANInterface = SCNetworkInterface