Guides and Sample Code Developer
Search

SystemConfiguration Changes for Swift

SystemConfiguration

Declaration
From
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>)?)
}
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: ((UnsafeRawPointer) -> UnsafeRawPointer)?, release release: ((UnsafeRawPointer) -> Swift.Void)?, copyDescription copyDescription: ((UnsafeRawPointer) -> Unmanaged<CFString>)?)
}

Declaration
From
init(version version: CFIndex, info info: UnsafeMutableRawPointer?, retain retain: (@escaping (UnsafeRawPointer) -> UnsafeRawPointer)?, release release: (@escaping (UnsafeRawPointer) -> Swift.Void)?, copyDescription copyDescription: (@escaping (UnsafeRawPointer) -> Unmanaged<CFString>)?)
To
init(version version: CFIndex, info info: UnsafeMutableRawPointer?, retain retain: ((UnsafeRawPointer) -> UnsafeRawPointer)?, release release: ((UnsafeRawPointer) -> Swift.Void)?, copyDescription copyDescription: ((UnsafeRawPointer) -> Unmanaged<CFString>)?)

Declaration
From
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>)?)
}
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: ((UnsafeRawPointer) -> UnsafeRawPointer)?, release release: ((UnsafeRawPointer) -> Swift.Void)?, copyDescription copyDescription: ((UnsafeRawPointer) -> Unmanaged<CFString>)?)
}

Declaration
From
init(version version: CFIndex, info info: UnsafeMutableRawPointer?, retain retain: (@escaping (UnsafeRawPointer) -> UnsafeRawPointer)?, release release: (@escaping (UnsafeRawPointer) -> Swift.Void)?, copyDescription copyDescription: (@escaping (UnsafeRawPointer) -> Unmanaged<CFString>)?)
To
init(version version: CFIndex, info info: UnsafeMutableRawPointer?, retain retain: ((UnsafeRawPointer) -> UnsafeRawPointer)?, release release: ((UnsafeRawPointer) -> Swift.Void)?, copyDescription copyDescription: ((UnsafeRawPointer) -> Unmanaged<CFString>)?)

Declaration
From
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>)?)
}
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: ((UnsafeRawPointer) -> UnsafeRawPointer)?, release release: ((UnsafeRawPointer) -> Swift.Void)?, copyDescription copyDescription: ((UnsafeRawPointer) -> Unmanaged<CFString>)?)
}

Declaration
From
init(version version: CFIndex, info info: UnsafeMutableRawPointer?, retain retain: (@escaping (UnsafeRawPointer) -> UnsafeRawPointer)?, release release: (@escaping (UnsafeRawPointer) -> Swift.Void)?, copyDescription copyDescription: (@escaping (UnsafeRawPointer) -> Unmanaged<CFString>)?)
To
init(version version: CFIndex, info info: UnsafeMutableRawPointer?, retain retain: ((UnsafeRawPointer) -> UnsafeRawPointer)?, release release: ((UnsafeRawPointer) -> Swift.Void)?, copyDescription copyDescription: ((UnsafeRawPointer) -> Unmanaged<CFString>)?)

Declaration
From
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>)?)
}
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: ((UnsafeRawPointer) -> UnsafeRawPointer)?, release release: ((UnsafeRawPointer) -> Swift.Void)?, copyDescription copyDescription: ((UnsafeRawPointer) -> Unmanaged<CFString>)?)
}

Declaration
From
init(version version: CFIndex, info info: UnsafeMutableRawPointer?, retain retain: (@escaping (UnsafeRawPointer) -> UnsafeRawPointer)?, release release: (@escaping (UnsafeRawPointer) -> Swift.Void)?, copyDescription copyDescription: (@escaping (UnsafeRawPointer) -> Unmanaged<CFString>)?)
To
init(version version: CFIndex, info info: UnsafeMutableRawPointer?, retain retain: ((UnsafeRawPointer) -> UnsafeRawPointer)?, release release: ((UnsafeRawPointer) -> Swift.Void)?, copyDescription copyDescription: ((UnsafeRawPointer) -> Unmanaged<CFString>)?)

Feedback