Documentation
¶
Overview ¶
Package systemconfiguration provides Go bindings for the SystemConfiguration framework.
Allow applications to access a device’s network configuration settings. Determine the reachability of the device, such as whether Wi-Fi or cell connectivity are active.
This collection of documents describes the programming interfaces of the System Configuration framework. The System Configuration framework provides functions that determine the reachability of target hosts in both a synchronous and an asynchronous manner. It also provides error detection facilities.
Entitlements ¶
- Access Wi-Fi Information Entitlement: A Boolean value indicating whether your app can access information about the connected Wi-Fi network.//
Code generated from Apple documentation. DO NOT EDIT.
Index ¶
- Variables
- func BindFunc(fptr any, name string) (err error)
- func CNCopySupportedInterfaces() corefoundation.CFArrayRef
- func CNMarkPortalOffline(interfaceName corefoundation.CFStringRef) bool
- func CNMarkPortalOnline(interfaceName corefoundation.CFStringRef) bool
- func CNSetSupportedSSIDs(ssidArray corefoundation.CFArrayRef) bool
- func DHCPClientPreferencesCopyApplicationOptions(applicationID corefoundation.CFStringRef, count *int) *uint8
- func DHCPClientPreferencesSetApplicationOptions(applicationID corefoundation.CFStringRef, options []byte, count int) bool
- func DHCPInfoGetLeaseExpirationTime(info corefoundation.CFDictionaryRef) corefoundation.CFDateRef
- func DHCPInfoGetLeaseStartTime(info corefoundation.CFDictionaryRef) corefoundation.CFDateRef
- func DHCPInfoGetOptionData(info corefoundation.CFDictionaryRef, code uint8) corefoundation.CFDataRef
- func SCBondInterfaceCopyAll(prefs SCPreferencesRef) corefoundation.CFArrayRef
- func SCBondInterfaceCopyAvailableMemberInterfaces(prefs SCPreferencesRef) corefoundation.CFArrayRef
- func SCBondInterfaceGetMemberInterfaces(bond SCBondInterfaceRef) corefoundation.CFArrayRef
- func SCBondInterfaceGetOptions(bond SCBondInterfaceRef) corefoundation.CFDictionaryRef
- func SCBondInterfaceRemove(bond SCBondInterfaceRef) bool
- func SCBondInterfaceSetLocalizedDisplayName(bond SCBondInterfaceRef, newName corefoundation.CFStringRef) bool
- func SCBondInterfaceSetMemberInterfaces(bond SCBondInterfaceRef, members corefoundation.CFArrayRef) bool
- func SCBondInterfaceSetOptions(bond SCBondInterfaceRef, newOptions corefoundation.CFDictionaryRef) bool
- func SCBondStatusGetInterfaceStatus(bondStatus SCBondStatusRef, interface_ SCNetworkInterfaceRef) corefoundation.CFDictionaryRef
- func SCBondStatusGetMemberInterfaces(bondStatus SCBondStatusRef) corefoundation.CFArrayRef
- func SCBondStatusGetTypeID() uint
- func SCCopyLastError() corefoundation.CFErrorRef
- func SCDynamicStoreAddTemporaryValue(store SCDynamicStoreRef, key corefoundation.CFStringRef, ...) bool
- func SCDynamicStoreAddValue(store SCDynamicStoreRef, key corefoundation.CFStringRef, ...) bool
- func SCDynamicStoreCopyComputerName(store SCDynamicStoreRef, nameEncoding *uint32) corefoundation.CFStringRef
- func SCDynamicStoreCopyConsoleUser(store SCDynamicStoreRef, uid *uint32, gid *uint32) corefoundation.CFStringRef
- func SCDynamicStoreCopyDHCPInfo(store SCDynamicStoreRef, serviceID corefoundation.CFStringRef) corefoundation.CFDictionaryRef
- func SCDynamicStoreCopyKeyList(store SCDynamicStoreRef, pattern corefoundation.CFStringRef) corefoundation.CFArrayRef
- func SCDynamicStoreCopyLocalHostName(store SCDynamicStoreRef) corefoundation.CFStringRef
- func SCDynamicStoreCopyLocation(store SCDynamicStoreRef) corefoundation.CFStringRef
- func SCDynamicStoreCopyMultiple(store SCDynamicStoreRef, keys corefoundation.CFArrayRef, ...) corefoundation.CFDictionaryRef
- func SCDynamicStoreCopyNotifiedKeys(store SCDynamicStoreRef) corefoundation.CFArrayRef
- func SCDynamicStoreCopyProxies(store SCDynamicStoreRef) corefoundation.CFDictionaryRef
- func SCDynamicStoreCopyValue(store SCDynamicStoreRef, key corefoundation.CFStringRef) corefoundation.CFPropertyListRef
- func SCDynamicStoreCreateRunLoopSource(allocator corefoundation.CFAllocatorRef, store SCDynamicStoreRef, order int) corefoundation.CFRunLoopSourceRef
- func SCDynamicStoreGetTypeID() uint
- func SCDynamicStoreKeyCreate(allocator corefoundation.CFAllocatorRef, fmt corefoundation.CFStringRef) corefoundation.CFStringRef
- func SCDynamicStoreKeyCreateComputerName(allocator corefoundation.CFAllocatorRef) corefoundation.CFStringRef
- func SCDynamicStoreKeyCreateConsoleUser(allocator corefoundation.CFAllocatorRef) corefoundation.CFStringRef
- func SCDynamicStoreKeyCreateHostNames(allocator corefoundation.CFAllocatorRef) corefoundation.CFStringRef
- func SCDynamicStoreKeyCreateLocation(allocator corefoundation.CFAllocatorRef) corefoundation.CFStringRef
- func SCDynamicStoreKeyCreateNetworkGlobalEntity(allocator corefoundation.CFAllocatorRef, domain corefoundation.CFStringRef, ...) corefoundation.CFStringRef
- func SCDynamicStoreKeyCreateNetworkInterface(allocator corefoundation.CFAllocatorRef, domain corefoundation.CFStringRef) corefoundation.CFStringRef
- func SCDynamicStoreKeyCreateNetworkInterfaceEntity(allocator corefoundation.CFAllocatorRef, domain corefoundation.CFStringRef, ...) corefoundation.CFStringRef
- func SCDynamicStoreKeyCreateNetworkServiceEntity(allocator corefoundation.CFAllocatorRef, domain corefoundation.CFStringRef, ...) corefoundation.CFStringRef
- func SCDynamicStoreKeyCreateProxies(allocator corefoundation.CFAllocatorRef) corefoundation.CFStringRef
- func SCDynamicStoreNotifyValue(store SCDynamicStoreRef, key corefoundation.CFStringRef) bool
- func SCDynamicStoreRemoveValue(store SCDynamicStoreRef, key corefoundation.CFStringRef) bool
- func SCDynamicStoreSetDispatchQueue(store SCDynamicStoreRef, queue dispatch.Queue) bool
- func SCDynamicStoreSetMultiple(store SCDynamicStoreRef, keysToSet corefoundation.CFDictionaryRef, ...) bool
- func SCDynamicStoreSetNotificationKeys(store SCDynamicStoreRef, keys corefoundation.CFArrayRef, ...) bool
- func SCDynamicStoreSetValue(store SCDynamicStoreRef, key corefoundation.CFStringRef, ...) bool
- func SCError() int32
- func SCErrorString(status int32) *byte
- func SCNetworkCheckReachabilityByAddress(address unsafe.Pointer, addrlen uint32, flags *SCNetworkConnectionFlags) booldeprecated
- func SCNetworkCheckReachabilityByName(nodename string, flags *SCNetworkConnectionFlags) booldeprecated
- func SCNetworkConnectionCopyExtendedStatus(connection SCNetworkConnectionRef) corefoundation.CFDictionaryRef
- func SCNetworkConnectionCopyServiceID(connection SCNetworkConnectionRef) corefoundation.CFStringRef
- func SCNetworkConnectionCopyStatistics(connection SCNetworkConnectionRef) corefoundation.CFDictionaryRef
- func SCNetworkConnectionCopyUserOptions(connection SCNetworkConnectionRef) corefoundation.CFDictionaryRef
- func SCNetworkConnectionCopyUserPreferences(selectionOptions corefoundation.CFDictionaryRef, ...) bool
- func SCNetworkConnectionGetTypeID() uint
- func SCNetworkConnectionScheduleWithRunLoop(connection SCNetworkConnectionRef, runLoop corefoundation.CFRunLoopRef, ...) bool
- func SCNetworkConnectionSetDispatchQueue(connection SCNetworkConnectionRef, queue dispatch.Queue) bool
- func SCNetworkConnectionStart(connection SCNetworkConnectionRef, userOptions corefoundation.CFDictionaryRef, ...) bool
- func SCNetworkConnectionStop(connection SCNetworkConnectionRef, forceDisconnect bool) bool
- func SCNetworkConnectionUnscheduleFromRunLoop(connection SCNetworkConnectionRef, runLoop corefoundation.CFRunLoopRef, ...) bool
- func SCNetworkInterfaceCopyAll() corefoundation.CFArrayRef
- func SCNetworkInterfaceCopyMTU(interface_ SCNetworkInterfaceRef, mtu_cur *int32, mtu_min *int32, ...) bool
- func SCNetworkInterfaceCopyMediaOptions(interface_ SCNetworkInterfaceRef, current *corefoundation.CFDictionaryRef, ...) bool
- func SCNetworkInterfaceCopyMediaSubTypeOptions(available corefoundation.CFArrayRef, subType corefoundation.CFStringRef) corefoundation.CFArrayRef
- func SCNetworkInterfaceCopyMediaSubTypes(available corefoundation.CFArrayRef) corefoundation.CFArrayRef
- func SCNetworkInterfaceForceConfigurationRefresh(interface_ SCNetworkInterfaceRef) bool
- func SCNetworkInterfaceGetBSDName(interface_ SCNetworkInterfaceRef) corefoundation.CFStringRef
- func SCNetworkInterfaceGetConfiguration(interface_ SCNetworkInterfaceRef) corefoundation.CFDictionaryRef
- func SCNetworkInterfaceGetExtendedConfiguration(interface_ SCNetworkInterfaceRef, extendedType corefoundation.CFStringRef) corefoundation.CFDictionaryRef
- func SCNetworkInterfaceGetHardwareAddressString(interface_ SCNetworkInterfaceRef) corefoundation.CFStringRef
- func SCNetworkInterfaceGetInterfaceType(interface_ SCNetworkInterfaceRef) corefoundation.CFStringRef
- func SCNetworkInterfaceGetLocalizedDisplayName(interface_ SCNetworkInterfaceRef) corefoundation.CFStringRef
- func SCNetworkInterfaceGetSupportedInterfaceTypes(interface_ SCNetworkInterfaceRef) corefoundation.CFArrayRef
- func SCNetworkInterfaceGetSupportedProtocolTypes(interface_ SCNetworkInterfaceRef) corefoundation.CFArrayRef
- func SCNetworkInterfaceGetTypeID() uint
- func SCNetworkInterfaceRefreshConfiguration(ifName corefoundation.CFStringRef) booldeprecated
- func SCNetworkInterfaceSetConfiguration(interface_ SCNetworkInterfaceRef, config corefoundation.CFDictionaryRef) bool
- func SCNetworkInterfaceSetExtendedConfiguration(interface_ SCNetworkInterfaceRef, extendedType corefoundation.CFStringRef, ...) bool
- func SCNetworkInterfaceSetMTU(interface_ SCNetworkInterfaceRef, mtu int32) bool
- func SCNetworkInterfaceSetMediaOptions(interface_ SCNetworkInterfaceRef, subtype corefoundation.CFStringRef, ...) bool
- func SCNetworkProtocolGetConfiguration(protocol_ SCNetworkProtocolRef) corefoundation.CFDictionaryRef
- func SCNetworkProtocolGetEnabled(protocol_ SCNetworkProtocolRef) bool
- func SCNetworkProtocolGetProtocolType(protocol_ SCNetworkProtocolRef) corefoundation.CFStringRef
- func SCNetworkProtocolGetTypeID() uint
- func SCNetworkProtocolSetConfiguration(protocol_ SCNetworkProtocolRef, config corefoundation.CFDictionaryRef) bool
- func SCNetworkProtocolSetEnabled(protocol_ SCNetworkProtocolRef, enabled bool) bool
- func SCNetworkReachabilityGetFlags(target SCNetworkReachabilityRef, flags *SCNetworkReachabilityFlags) booldeprecated
- func SCNetworkReachabilityGetTypeID() uintdeprecated
- func SCNetworkReachabilityScheduleWithRunLoop(target SCNetworkReachabilityRef, runLoop corefoundation.CFRunLoopRef, ...) booldeprecated
- func SCNetworkReachabilitySetCallback(target SCNetworkReachabilityRef, callout SCNetworkReachabilityCallBack, ...) booldeprecated
- func SCNetworkReachabilitySetDispatchQueue(target SCNetworkReachabilityRef, queue dispatch.Queue) booldeprecated
- func SCNetworkReachabilityUnscheduleFromRunLoop(target SCNetworkReachabilityRef, runLoop corefoundation.CFRunLoopRef, ...) booldeprecated
- func SCNetworkServiceAddProtocolType(service SCNetworkServiceRef, protocolType corefoundation.CFStringRef) bool
- func SCNetworkServiceCopyAll(prefs SCPreferencesRef) corefoundation.CFArrayRef
- func SCNetworkServiceCopyProtocols(service SCNetworkServiceRef) corefoundation.CFArrayRef
- func SCNetworkServiceEstablishDefaultConfiguration(service SCNetworkServiceRef) bool
- func SCNetworkServiceGetEnabled(service SCNetworkServiceRef) bool
- func SCNetworkServiceGetName(service SCNetworkServiceRef) corefoundation.CFStringRef
- func SCNetworkServiceGetServiceID(service SCNetworkServiceRef) corefoundation.CFStringRef
- func SCNetworkServiceGetTypeID() uint
- func SCNetworkServiceRemove(service SCNetworkServiceRef) bool
- func SCNetworkServiceRemoveProtocolType(service SCNetworkServiceRef, protocolType corefoundation.CFStringRef) bool
- func SCNetworkServiceSetEnabled(service SCNetworkServiceRef, enabled bool) bool
- func SCNetworkServiceSetName(service SCNetworkServiceRef, name corefoundation.CFStringRef) bool
- func SCNetworkSetAddService(set SCNetworkSetRef, service SCNetworkServiceRef) bool
- func SCNetworkSetContainsInterface(set SCNetworkSetRef, interface_ SCNetworkInterfaceRef) bool
- func SCNetworkSetCopyAll(prefs SCPreferencesRef) corefoundation.CFArrayRef
- func SCNetworkSetCopyServices(set SCNetworkSetRef) corefoundation.CFArrayRef
- func SCNetworkSetGetName(set SCNetworkSetRef) corefoundation.CFStringRef
- func SCNetworkSetGetServiceOrder(set SCNetworkSetRef) corefoundation.CFArrayRef
- func SCNetworkSetGetSetID(set SCNetworkSetRef) corefoundation.CFStringRef
- func SCNetworkSetGetTypeID() uint
- func SCNetworkSetRemove(set SCNetworkSetRef) bool
- func SCNetworkSetRemoveService(set SCNetworkSetRef, service SCNetworkServiceRef) bool
- func SCNetworkSetSetCurrent(set SCNetworkSetRef) bool
- func SCNetworkSetSetName(set SCNetworkSetRef, name corefoundation.CFStringRef) bool
- func SCNetworkSetSetServiceOrder(set SCNetworkSetRef, newOrder corefoundation.CFArrayRef) bool
- func SCPreferencesAddValue(prefs SCPreferencesRef, key corefoundation.CFStringRef, ...) bool
- func SCPreferencesApplyChanges(prefs SCPreferencesRef) bool
- func SCPreferencesCommitChanges(prefs SCPreferencesRef) bool
- func SCPreferencesCopyKeyList(prefs SCPreferencesRef) corefoundation.CFArrayRef
- func SCPreferencesGetSignature(prefs SCPreferencesRef) corefoundation.CFDataRef
- func SCPreferencesGetTypeID() uint
- func SCPreferencesGetValue(prefs SCPreferencesRef, key corefoundation.CFStringRef) corefoundation.CFPropertyListRef
- func SCPreferencesLock(prefs SCPreferencesRef, wait bool) bool
- func SCPreferencesPathCreateUniqueChild(prefs SCPreferencesRef, prefix corefoundation.CFStringRef) corefoundation.CFStringRef
- func SCPreferencesPathGetLink(prefs SCPreferencesRef, path corefoundation.CFStringRef) corefoundation.CFStringRef
- func SCPreferencesPathGetValue(prefs SCPreferencesRef, path corefoundation.CFStringRef) corefoundation.CFDictionaryRef
- func SCPreferencesPathRemoveValue(prefs SCPreferencesRef, path corefoundation.CFStringRef) bool
- func SCPreferencesPathSetLink(prefs SCPreferencesRef, path corefoundation.CFStringRef, ...) bool
- func SCPreferencesPathSetValue(prefs SCPreferencesRef, path corefoundation.CFStringRef, ...) bool
- func SCPreferencesRemoveValue(prefs SCPreferencesRef, key corefoundation.CFStringRef) bool
- func SCPreferencesScheduleWithRunLoop(prefs SCPreferencesRef, runLoop corefoundation.CFRunLoopRef, ...) bool
- func SCPreferencesSetCallback(prefs SCPreferencesRef, callout SCPreferencesCallBack, ...) bool
- func SCPreferencesSetComputerName(prefs SCPreferencesRef, name corefoundation.CFStringRef, nameEncoding uint32) bool
- func SCPreferencesSetDispatchQueue(prefs SCPreferencesRef, queue dispatch.Queue) bool
- func SCPreferencesSetLocalHostName(prefs SCPreferencesRef, name corefoundation.CFStringRef) bool
- func SCPreferencesSetValue(prefs SCPreferencesRef, key corefoundation.CFStringRef, ...) bool
- func SCPreferencesSynchronize(prefs SCPreferencesRef)
- func SCPreferencesUnlock(prefs SCPreferencesRef) bool
- func SCPreferencesUnscheduleFromRunLoop(prefs SCPreferencesRef, runLoop corefoundation.CFRunLoopRef, ...) bool
- func SCVLANInterfaceCopyAll(prefs SCPreferencesRef) corefoundation.CFArrayRef
- func SCVLANInterfaceCopyAvailablePhysicalInterfaces() corefoundation.CFArrayRef
- func SCVLANInterfaceGetOptions(vlan SCVLANInterfaceRef) corefoundation.CFDictionaryRef
- func SCVLANInterfaceGetTag(vlan SCVLANInterfaceRef) corefoundation.CFNumberRef
- func SCVLANInterfaceRemove(vlan SCVLANInterfaceRef) bool
- func SCVLANInterfaceSetLocalizedDisplayName(vlan SCVLANInterfaceRef, newName corefoundation.CFStringRef) bool
- func SCVLANInterfaceSetOptions(vlan SCVLANInterfaceRef, newOptions corefoundation.CFDictionaryRef) bool
- func SCVLANInterfaceSetPhysicalInterfaceAndTag(vlan SCVLANInterfaceRef, physical SCNetworkInterfaceRef, ...) bool
- func SymbolAddress(name string) (uintptr, error)
- func TryCNCopySupportedInterfaces() (corefoundation.CFArrayRef, error)
- func TryCNMarkPortalOffline(interfaceName corefoundation.CFStringRef) (bool, error)
- func TryCNMarkPortalOnline(interfaceName corefoundation.CFStringRef) (bool, error)
- func TryCNSetSupportedSSIDs(ssidArray corefoundation.CFArrayRef) (bool, error)
- func TryDHCPClientPreferencesCopyApplicationOptions(applicationID corefoundation.CFStringRef, count *int) (*uint8, error)
- func TryDHCPClientPreferencesSetApplicationOptions(applicationID corefoundation.CFStringRef, options []byte, count int) (bool, error)
- func TryDHCPInfoGetLeaseExpirationTime(info corefoundation.CFDictionaryRef) (corefoundation.CFDateRef, error)
- func TryDHCPInfoGetLeaseStartTime(info corefoundation.CFDictionaryRef) (corefoundation.CFDateRef, error)
- func TryDHCPInfoGetOptionData(info corefoundation.CFDictionaryRef, code uint8) (corefoundation.CFDataRef, error)
- func TrySCBondInterfaceCopyAll(prefs SCPreferencesRef) (corefoundation.CFArrayRef, error)
- func TrySCBondInterfaceCopyAvailableMemberInterfaces(prefs SCPreferencesRef) (corefoundation.CFArrayRef, error)
- func TrySCBondInterfaceGetMemberInterfaces(bond SCBondInterfaceRef) (corefoundation.CFArrayRef, error)
- func TrySCBondInterfaceGetOptions(bond SCBondInterfaceRef) (corefoundation.CFDictionaryRef, error)
- func TrySCBondInterfaceRemove(bond SCBondInterfaceRef) (bool, error)
- func TrySCBondInterfaceSetLocalizedDisplayName(bond SCBondInterfaceRef, newName corefoundation.CFStringRef) (bool, error)
- func TrySCBondInterfaceSetMemberInterfaces(bond SCBondInterfaceRef, members corefoundation.CFArrayRef) (bool, error)
- func TrySCBondInterfaceSetOptions(bond SCBondInterfaceRef, newOptions corefoundation.CFDictionaryRef) (bool, error)
- func TrySCBondStatusGetInterfaceStatus(bondStatus SCBondStatusRef, interface_ SCNetworkInterfaceRef) (corefoundation.CFDictionaryRef, error)
- func TrySCBondStatusGetMemberInterfaces(bondStatus SCBondStatusRef) (corefoundation.CFArrayRef, error)
- func TrySCBondStatusGetTypeID() (uint, error)
- func TrySCCopyLastError() (corefoundation.CFErrorRef, error)
- func TrySCDynamicStoreAddTemporaryValue(store SCDynamicStoreRef, key corefoundation.CFStringRef, ...) (bool, error)
- func TrySCDynamicStoreAddValue(store SCDynamicStoreRef, key corefoundation.CFStringRef, ...) (bool, error)
- func TrySCDynamicStoreCopyComputerName(store SCDynamicStoreRef, nameEncoding *uint32) (corefoundation.CFStringRef, error)
- func TrySCDynamicStoreCopyConsoleUser(store SCDynamicStoreRef, uid *uint32, gid *uint32) (corefoundation.CFStringRef, error)
- func TrySCDynamicStoreCopyDHCPInfo(store SCDynamicStoreRef, serviceID corefoundation.CFStringRef) (corefoundation.CFDictionaryRef, error)
- func TrySCDynamicStoreCopyKeyList(store SCDynamicStoreRef, pattern corefoundation.CFStringRef) (corefoundation.CFArrayRef, error)
- func TrySCDynamicStoreCopyLocalHostName(store SCDynamicStoreRef) (corefoundation.CFStringRef, error)
- func TrySCDynamicStoreCopyLocation(store SCDynamicStoreRef) (corefoundation.CFStringRef, error)
- func TrySCDynamicStoreCopyMultiple(store SCDynamicStoreRef, keys corefoundation.CFArrayRef, ...) (corefoundation.CFDictionaryRef, error)
- func TrySCDynamicStoreCopyNotifiedKeys(store SCDynamicStoreRef) (corefoundation.CFArrayRef, error)
- func TrySCDynamicStoreCopyProxies(store SCDynamicStoreRef) (corefoundation.CFDictionaryRef, error)
- func TrySCDynamicStoreCopyValue(store SCDynamicStoreRef, key corefoundation.CFStringRef) (corefoundation.CFPropertyListRef, error)
- func TrySCDynamicStoreCreateRunLoopSource(allocator corefoundation.CFAllocatorRef, store SCDynamicStoreRef, order int) (corefoundation.CFRunLoopSourceRef, error)
- func TrySCDynamicStoreGetTypeID() (uint, error)
- func TrySCDynamicStoreKeyCreate(allocator corefoundation.CFAllocatorRef, fmt corefoundation.CFStringRef) (corefoundation.CFStringRef, error)
- func TrySCDynamicStoreKeyCreateComputerName(allocator corefoundation.CFAllocatorRef) (corefoundation.CFStringRef, error)
- func TrySCDynamicStoreKeyCreateConsoleUser(allocator corefoundation.CFAllocatorRef) (corefoundation.CFStringRef, error)
- func TrySCDynamicStoreKeyCreateHostNames(allocator corefoundation.CFAllocatorRef) (corefoundation.CFStringRef, error)
- func TrySCDynamicStoreKeyCreateLocation(allocator corefoundation.CFAllocatorRef) (corefoundation.CFStringRef, error)
- func TrySCDynamicStoreKeyCreateNetworkGlobalEntity(allocator corefoundation.CFAllocatorRef, domain corefoundation.CFStringRef, ...) (corefoundation.CFStringRef, error)
- func TrySCDynamicStoreKeyCreateNetworkInterface(allocator corefoundation.CFAllocatorRef, domain corefoundation.CFStringRef) (corefoundation.CFStringRef, error)
- func TrySCDynamicStoreKeyCreateNetworkInterfaceEntity(allocator corefoundation.CFAllocatorRef, domain corefoundation.CFStringRef, ...) (corefoundation.CFStringRef, error)
- func TrySCDynamicStoreKeyCreateNetworkServiceEntity(allocator corefoundation.CFAllocatorRef, domain corefoundation.CFStringRef, ...) (corefoundation.CFStringRef, error)
- func TrySCDynamicStoreKeyCreateProxies(allocator corefoundation.CFAllocatorRef) (corefoundation.CFStringRef, error)
- func TrySCDynamicStoreNotifyValue(store SCDynamicStoreRef, key corefoundation.CFStringRef) (bool, error)
- func TrySCDynamicStoreRemoveValue(store SCDynamicStoreRef, key corefoundation.CFStringRef) (bool, error)
- func TrySCDynamicStoreSetDispatchQueue(store SCDynamicStoreRef, queue dispatch.Queue) (bool, error)
- func TrySCDynamicStoreSetMultiple(store SCDynamicStoreRef, keysToSet corefoundation.CFDictionaryRef, ...) (bool, error)
- func TrySCDynamicStoreSetNotificationKeys(store SCDynamicStoreRef, keys corefoundation.CFArrayRef, ...) (bool, error)
- func TrySCDynamicStoreSetValue(store SCDynamicStoreRef, key corefoundation.CFStringRef, ...) (bool, error)
- func TrySCError() (int32, error)
- func TrySCErrorString(status int32) (*byte, error)
- func TrySCNetworkCheckReachabilityByAddress(address unsafe.Pointer, addrlen uint32, flags *SCNetworkConnectionFlags) (bool, error)
- func TrySCNetworkCheckReachabilityByName(nodename string, flags *SCNetworkConnectionFlags) (bool, error)
- func TrySCNetworkConnectionCopyExtendedStatus(connection SCNetworkConnectionRef) (corefoundation.CFDictionaryRef, error)
- func TrySCNetworkConnectionCopyServiceID(connection SCNetworkConnectionRef) (corefoundation.CFStringRef, error)
- func TrySCNetworkConnectionCopyStatistics(connection SCNetworkConnectionRef) (corefoundation.CFDictionaryRef, error)
- func TrySCNetworkConnectionCopyUserOptions(connection SCNetworkConnectionRef) (corefoundation.CFDictionaryRef, error)
- func TrySCNetworkConnectionCopyUserPreferences(selectionOptions corefoundation.CFDictionaryRef, ...) (bool, error)
- func TrySCNetworkConnectionGetTypeID() (uint, error)
- func TrySCNetworkConnectionScheduleWithRunLoop(connection SCNetworkConnectionRef, runLoop corefoundation.CFRunLoopRef, ...) (bool, error)
- func TrySCNetworkConnectionSetDispatchQueue(connection SCNetworkConnectionRef, queue dispatch.Queue) (bool, error)
- func TrySCNetworkConnectionStart(connection SCNetworkConnectionRef, userOptions corefoundation.CFDictionaryRef, ...) (bool, error)
- func TrySCNetworkConnectionStop(connection SCNetworkConnectionRef, forceDisconnect bool) (bool, error)
- func TrySCNetworkConnectionUnscheduleFromRunLoop(connection SCNetworkConnectionRef, runLoop corefoundation.CFRunLoopRef, ...) (bool, error)
- func TrySCNetworkInterfaceCopyAll() (corefoundation.CFArrayRef, error)
- func TrySCNetworkInterfaceCopyMTU(interface_ SCNetworkInterfaceRef, mtu_cur *int32, mtu_min *int32, ...) (bool, error)
- func TrySCNetworkInterfaceCopyMediaOptions(interface_ SCNetworkInterfaceRef, current *corefoundation.CFDictionaryRef, ...) (bool, error)
- func TrySCNetworkInterfaceCopyMediaSubTypeOptions(available corefoundation.CFArrayRef, subType corefoundation.CFStringRef) (corefoundation.CFArrayRef, error)
- func TrySCNetworkInterfaceCopyMediaSubTypes(available corefoundation.CFArrayRef) (corefoundation.CFArrayRef, error)
- func TrySCNetworkInterfaceForceConfigurationRefresh(interface_ SCNetworkInterfaceRef) (bool, error)
- func TrySCNetworkInterfaceGetBSDName(interface_ SCNetworkInterfaceRef) (corefoundation.CFStringRef, error)
- func TrySCNetworkInterfaceGetConfiguration(interface_ SCNetworkInterfaceRef) (corefoundation.CFDictionaryRef, error)
- func TrySCNetworkInterfaceGetExtendedConfiguration(interface_ SCNetworkInterfaceRef, extendedType corefoundation.CFStringRef) (corefoundation.CFDictionaryRef, error)
- func TrySCNetworkInterfaceGetHardwareAddressString(interface_ SCNetworkInterfaceRef) (corefoundation.CFStringRef, error)
- func TrySCNetworkInterfaceGetInterfaceType(interface_ SCNetworkInterfaceRef) (corefoundation.CFStringRef, error)
- func TrySCNetworkInterfaceGetLocalizedDisplayName(interface_ SCNetworkInterfaceRef) (corefoundation.CFStringRef, error)
- func TrySCNetworkInterfaceGetSupportedInterfaceTypes(interface_ SCNetworkInterfaceRef) (corefoundation.CFArrayRef, error)
- func TrySCNetworkInterfaceGetSupportedProtocolTypes(interface_ SCNetworkInterfaceRef) (corefoundation.CFArrayRef, error)
- func TrySCNetworkInterfaceGetTypeID() (uint, error)
- func TrySCNetworkInterfaceRefreshConfiguration(ifName corefoundation.CFStringRef) (bool, error)
- func TrySCNetworkInterfaceSetConfiguration(interface_ SCNetworkInterfaceRef, config corefoundation.CFDictionaryRef) (bool, error)
- func TrySCNetworkInterfaceSetExtendedConfiguration(interface_ SCNetworkInterfaceRef, extendedType corefoundation.CFStringRef, ...) (bool, error)
- func TrySCNetworkInterfaceSetMTU(interface_ SCNetworkInterfaceRef, mtu int32) (bool, error)
- func TrySCNetworkInterfaceSetMediaOptions(interface_ SCNetworkInterfaceRef, subtype corefoundation.CFStringRef, ...) (bool, error)
- func TrySCNetworkProtocolGetConfiguration(protocol_ SCNetworkProtocolRef) (corefoundation.CFDictionaryRef, error)
- func TrySCNetworkProtocolGetEnabled(protocol_ SCNetworkProtocolRef) (bool, error)
- func TrySCNetworkProtocolGetProtocolType(protocol_ SCNetworkProtocolRef) (corefoundation.CFStringRef, error)
- func TrySCNetworkProtocolGetTypeID() (uint, error)
- func TrySCNetworkProtocolSetConfiguration(protocol_ SCNetworkProtocolRef, config corefoundation.CFDictionaryRef) (bool, error)
- func TrySCNetworkProtocolSetEnabled(protocol_ SCNetworkProtocolRef, enabled bool) (bool, error)
- func TrySCNetworkReachabilityGetFlags(target SCNetworkReachabilityRef, flags *SCNetworkReachabilityFlags) (bool, error)
- func TrySCNetworkReachabilityGetTypeID() (uint, error)
- func TrySCNetworkReachabilityScheduleWithRunLoop(target SCNetworkReachabilityRef, runLoop corefoundation.CFRunLoopRef, ...) (bool, error)
- func TrySCNetworkReachabilitySetCallback(target SCNetworkReachabilityRef, callout SCNetworkReachabilityCallBack, ...) (bool, error)
- func TrySCNetworkReachabilitySetDispatchQueue(target SCNetworkReachabilityRef, queue dispatch.Queue) (bool, error)
- func TrySCNetworkReachabilityUnscheduleFromRunLoop(target SCNetworkReachabilityRef, runLoop corefoundation.CFRunLoopRef, ...) (bool, error)
- func TrySCNetworkServiceAddProtocolType(service SCNetworkServiceRef, protocolType corefoundation.CFStringRef) (bool, error)
- func TrySCNetworkServiceCopyAll(prefs SCPreferencesRef) (corefoundation.CFArrayRef, error)
- func TrySCNetworkServiceCopyProtocols(service SCNetworkServiceRef) (corefoundation.CFArrayRef, error)
- func TrySCNetworkServiceEstablishDefaultConfiguration(service SCNetworkServiceRef) (bool, error)
- func TrySCNetworkServiceGetEnabled(service SCNetworkServiceRef) (bool, error)
- func TrySCNetworkServiceGetName(service SCNetworkServiceRef) (corefoundation.CFStringRef, error)
- func TrySCNetworkServiceGetServiceID(service SCNetworkServiceRef) (corefoundation.CFStringRef, error)
- func TrySCNetworkServiceGetTypeID() (uint, error)
- func TrySCNetworkServiceRemove(service SCNetworkServiceRef) (bool, error)
- func TrySCNetworkServiceRemoveProtocolType(service SCNetworkServiceRef, protocolType corefoundation.CFStringRef) (bool, error)
- func TrySCNetworkServiceSetEnabled(service SCNetworkServiceRef, enabled bool) (bool, error)
- func TrySCNetworkServiceSetName(service SCNetworkServiceRef, name corefoundation.CFStringRef) (bool, error)
- func TrySCNetworkSetAddService(set SCNetworkSetRef, service SCNetworkServiceRef) (bool, error)
- func TrySCNetworkSetContainsInterface(set SCNetworkSetRef, interface_ SCNetworkInterfaceRef) (bool, error)
- func TrySCNetworkSetCopyAll(prefs SCPreferencesRef) (corefoundation.CFArrayRef, error)
- func TrySCNetworkSetCopyServices(set SCNetworkSetRef) (corefoundation.CFArrayRef, error)
- func TrySCNetworkSetGetName(set SCNetworkSetRef) (corefoundation.CFStringRef, error)
- func TrySCNetworkSetGetServiceOrder(set SCNetworkSetRef) (corefoundation.CFArrayRef, error)
- func TrySCNetworkSetGetSetID(set SCNetworkSetRef) (corefoundation.CFStringRef, error)
- func TrySCNetworkSetGetTypeID() (uint, error)
- func TrySCNetworkSetRemove(set SCNetworkSetRef) (bool, error)
- func TrySCNetworkSetRemoveService(set SCNetworkSetRef, service SCNetworkServiceRef) (bool, error)
- func TrySCNetworkSetSetCurrent(set SCNetworkSetRef) (bool, error)
- func TrySCNetworkSetSetName(set SCNetworkSetRef, name corefoundation.CFStringRef) (bool, error)
- func TrySCNetworkSetSetServiceOrder(set SCNetworkSetRef, newOrder corefoundation.CFArrayRef) (bool, error)
- func TrySCPreferencesAddValue(prefs SCPreferencesRef, key corefoundation.CFStringRef, ...) (bool, error)
- func TrySCPreferencesApplyChanges(prefs SCPreferencesRef) (bool, error)
- func TrySCPreferencesCommitChanges(prefs SCPreferencesRef) (bool, error)
- func TrySCPreferencesCopyKeyList(prefs SCPreferencesRef) (corefoundation.CFArrayRef, error)
- func TrySCPreferencesGetSignature(prefs SCPreferencesRef) (corefoundation.CFDataRef, error)
- func TrySCPreferencesGetTypeID() (uint, error)
- func TrySCPreferencesGetValue(prefs SCPreferencesRef, key corefoundation.CFStringRef) (corefoundation.CFPropertyListRef, error)
- func TrySCPreferencesLock(prefs SCPreferencesRef, wait bool) (bool, error)
- func TrySCPreferencesPathCreateUniqueChild(prefs SCPreferencesRef, prefix corefoundation.CFStringRef) (corefoundation.CFStringRef, error)
- func TrySCPreferencesPathGetLink(prefs SCPreferencesRef, path corefoundation.CFStringRef) (corefoundation.CFStringRef, error)
- func TrySCPreferencesPathGetValue(prefs SCPreferencesRef, path corefoundation.CFStringRef) (corefoundation.CFDictionaryRef, error)
- func TrySCPreferencesPathRemoveValue(prefs SCPreferencesRef, path corefoundation.CFStringRef) (bool, error)
- func TrySCPreferencesPathSetLink(prefs SCPreferencesRef, path corefoundation.CFStringRef, ...) (bool, error)
- func TrySCPreferencesPathSetValue(prefs SCPreferencesRef, path corefoundation.CFStringRef, ...) (bool, error)
- func TrySCPreferencesRemoveValue(prefs SCPreferencesRef, key corefoundation.CFStringRef) (bool, error)
- func TrySCPreferencesScheduleWithRunLoop(prefs SCPreferencesRef, runLoop corefoundation.CFRunLoopRef, ...) (bool, error)
- func TrySCPreferencesSetCallback(prefs SCPreferencesRef, callout SCPreferencesCallBack, ...) (bool, error)
- func TrySCPreferencesSetComputerName(prefs SCPreferencesRef, name corefoundation.CFStringRef, nameEncoding uint32) (bool, error)
- func TrySCPreferencesSetDispatchQueue(prefs SCPreferencesRef, queue dispatch.Queue) (bool, error)
- func TrySCPreferencesSetLocalHostName(prefs SCPreferencesRef, name corefoundation.CFStringRef) (bool, error)
- func TrySCPreferencesSetValue(prefs SCPreferencesRef, key corefoundation.CFStringRef, ...) (bool, error)
- func TrySCPreferencesSynchronize(prefs SCPreferencesRef) error
- func TrySCPreferencesUnlock(prefs SCPreferencesRef) (bool, error)
- func TrySCPreferencesUnscheduleFromRunLoop(prefs SCPreferencesRef, runLoop corefoundation.CFRunLoopRef, ...) (bool, error)
- func TrySCVLANInterfaceCopyAll(prefs SCPreferencesRef) (corefoundation.CFArrayRef, error)
- func TrySCVLANInterfaceCopyAvailablePhysicalInterfaces() (corefoundation.CFArrayRef, error)
- func TrySCVLANInterfaceGetOptions(vlan SCVLANInterfaceRef) (corefoundation.CFDictionaryRef, error)
- func TrySCVLANInterfaceGetTag(vlan SCVLANInterfaceRef) (corefoundation.CFNumberRef, error)
- func TrySCVLANInterfaceRemove(vlan SCVLANInterfaceRef) (bool, error)
- func TrySCVLANInterfaceSetLocalizedDisplayName(vlan SCVLANInterfaceRef, newName corefoundation.CFStringRef) (bool, error)
- func TrySCVLANInterfaceSetOptions(vlan SCVLANInterfaceRef, newOptions corefoundation.CFDictionaryRef) (bool, error)
- func TrySCVLANInterfaceSetPhysicalInterfaceAndTag(vlan SCVLANInterfaceRef, physical SCNetworkInterfaceRef, ...) (bool, error)
- type KSCBondStatus
- type KSCNetworkFlags
- type KSCStatus
- type SCBondInterfaceRef
- type SCBondStatusRef
- type SCDynamicStoreCallBack
- type SCDynamicStoreContext
- type SCDynamicStoreRef
- func SCDynamicStoreCreate(allocator corefoundation.CFAllocatorRef, name corefoundation.CFStringRef, ...) SCDynamicStoreRef
- func SCDynamicStoreCreateWithOptions(allocator corefoundation.CFAllocatorRef, name corefoundation.CFStringRef, ...) SCDynamicStoreRef
- func TrySCDynamicStoreCreate(allocator corefoundation.CFAllocatorRef, name corefoundation.CFStringRef, ...) (SCDynamicStoreRef, error)
- func TrySCDynamicStoreCreateWithOptions(allocator corefoundation.CFAllocatorRef, name corefoundation.CFStringRef, ...) (SCDynamicStoreRef, error)
- type SCNetworkConnectionCallBack
- type SCNetworkConnectionContext
- type SCNetworkConnectionFlags
- type SCNetworkConnectionPPPStatus
- type SCNetworkConnectionRef
- func SCNetworkConnectionCreateWithServiceID(allocator corefoundation.CFAllocatorRef, serviceID corefoundation.CFStringRef, ...) SCNetworkConnectionRef
- func TrySCNetworkConnectionCreateWithServiceID(allocator corefoundation.CFAllocatorRef, serviceID corefoundation.CFStringRef, ...) (SCNetworkConnectionRef, error)
- type SCNetworkConnectionStatus
- type SCNetworkInterfaceRef
- func SCNetworkInterfaceCreateWithInterface(interface_ SCNetworkInterfaceRef, interfaceType corefoundation.CFStringRef) SCNetworkInterfaceRef
- func SCNetworkInterfaceGetInterface(interface_ SCNetworkInterfaceRef) SCNetworkInterfaceRef
- func SCNetworkServiceGetInterface(service SCNetworkServiceRef) SCNetworkInterfaceRef
- func SCVLANInterfaceGetPhysicalInterface(vlan SCVLANInterfaceRef) SCNetworkInterfaceRef
- func TrySCNetworkInterfaceCreateWithInterface(interface_ SCNetworkInterfaceRef, interfaceType corefoundation.CFStringRef) (SCNetworkInterfaceRef, error)
- func TrySCNetworkInterfaceGetInterface(interface_ SCNetworkInterfaceRef) (SCNetworkInterfaceRef, error)
- func TrySCNetworkServiceGetInterface(service SCNetworkServiceRef) (SCNetworkInterfaceRef, error)
- func TrySCVLANInterfaceGetPhysicalInterface(vlan SCVLANInterfaceRef) (SCNetworkInterfaceRef, error)
- type SCNetworkProtocolRef
- type SCNetworkReachabilityCallBack
- type SCNetworkReachabilityContext
- type SCNetworkReachabilityFlags
- type SCNetworkReachabilityRef
- func SCNetworkReachabilityCreateWithAddress(allocator corefoundation.CFAllocatorRef, address unsafe.Pointer) SCNetworkReachabilityRefdeprecated
- func SCNetworkReachabilityCreateWithAddressPair(allocator corefoundation.CFAllocatorRef, localAddress unsafe.Pointer, ...) SCNetworkReachabilityRefdeprecated
- func SCNetworkReachabilityCreateWithName(allocator corefoundation.CFAllocatorRef, nodename string) SCNetworkReachabilityRefdeprecated
- func TrySCNetworkReachabilityCreateWithAddress(allocator corefoundation.CFAllocatorRef, address unsafe.Pointer) (SCNetworkReachabilityRef, error)
- func TrySCNetworkReachabilityCreateWithAddressPair(allocator corefoundation.CFAllocatorRef, localAddress unsafe.Pointer, ...) (SCNetworkReachabilityRef, error)
- func TrySCNetworkReachabilityCreateWithName(allocator corefoundation.CFAllocatorRef, nodename string) (SCNetworkReachabilityRef, error)
- type SCNetworkServiceRef
- func SCNetworkServiceCopy(prefs SCPreferencesRef, serviceID corefoundation.CFStringRef) SCNetworkServiceRef
- func SCNetworkServiceCreate(prefs SCPreferencesRef, interface_ SCNetworkInterfaceRef) SCNetworkServiceRef
- func TrySCNetworkServiceCopy(prefs SCPreferencesRef, serviceID corefoundation.CFStringRef) (SCNetworkServiceRef, error)
- func TrySCNetworkServiceCreate(prefs SCPreferencesRef, interface_ SCNetworkInterfaceRef) (SCNetworkServiceRef, error)
- type SCNetworkSetRef
- func SCNetworkSetCopy(prefs SCPreferencesRef, setID corefoundation.CFStringRef) SCNetworkSetRef
- func SCNetworkSetCopyCurrent(prefs SCPreferencesRef) SCNetworkSetRef
- func SCNetworkSetCreate(prefs SCPreferencesRef) SCNetworkSetRef
- func TrySCNetworkSetCopy(prefs SCPreferencesRef, setID corefoundation.CFStringRef) (SCNetworkSetRef, error)
- func TrySCNetworkSetCopyCurrent(prefs SCPreferencesRef) (SCNetworkSetRef, error)
- func TrySCNetworkSetCreate(prefs SCPreferencesRef) (SCNetworkSetRef, error)
- type SCPreferencesCallBack
- type SCPreferencesContext
- type SCPreferencesNotification
- type SCPreferencesRef
- func SCPreferencesCreate(allocator corefoundation.CFAllocatorRef, name corefoundation.CFStringRef, ...) SCPreferencesRef
- func SCPreferencesCreateWithAuthorization(allocator corefoundation.CFAllocatorRef, name corefoundation.CFStringRef, ...) SCPreferencesRef
- func TrySCPreferencesCreate(allocator corefoundation.CFAllocatorRef, name corefoundation.CFStringRef, ...) (SCPreferencesRef, error)
- func TrySCPreferencesCreateWithAuthorization(allocator corefoundation.CFAllocatorRef, name corefoundation.CFStringRef, ...) (SCPreferencesRef, error)
- type SCVLANInterfaceRef
Constants ¶
This section is empty.
Variables ¶
var ( // KCFErrorDomainSystemConfiguration is a string constant identifying a Core Foundation error domain. See [CFError] for further information on error domains. // // See: https://developer.apple.com/documentation/SystemConfiguration/kCFErrorDomainSystemConfiguration KCFErrorDomainSystemConfiguration string // KSCBondStatusDeviceAggregationStatus is device is aggregating. See [Ethernet Bond Aggregation Status] for a list of possible values. // // See: https://developer.apple.com/documentation/SystemConfiguration/kSCBondStatusDeviceAggregationStatus KSCBondStatusDeviceAggregationStatus string // KSCBondStatusDeviceCollecting is can be `0` or `1`. // // See: https://developer.apple.com/documentation/SystemConfiguration/kSCBondStatusDeviceCollecting KSCBondStatusDeviceCollecting string // KSCBondStatusDeviceDistributing is can be `0` or `1`. // // See: https://developer.apple.com/documentation/SystemConfiguration/kSCBondStatusDeviceDistributing KSCBondStatusDeviceDistributing string // KSCCompAnyRegex is a regular expression pattern that matches any component. // // See: https://developer.apple.com/documentation/SystemConfiguration/kSCCompAnyRegex-swift.var KSCCompAnyRegex string // KSCCompGlobal is the Component key [Global]. // // See: https://developer.apple.com/documentation/SystemConfiguration/kSCCompGlobal-swift.var KSCCompGlobal string // KSCCompHostNames is the Component key [HostNames]. // // See: https://developer.apple.com/documentation/SystemConfiguration/kSCCompHostNames-swift.var KSCCompHostNames string // KSCCompInterface is the Component key [Interface]. // // See: https://developer.apple.com/documentation/SystemConfiguration/kSCCompInterface-swift.var KSCCompInterface string // KSCCompNetwork is the Component key [Network]. // // See: https://developer.apple.com/documentation/SystemConfiguration/kSCCompNetwork-swift.var KSCCompNetwork string // KSCCompService is the Component key [Service]. // // See: https://developer.apple.com/documentation/SystemConfiguration/kSCCompService-swift.var KSCCompService string // KSCCompSystem is the Component key [System]. // // See: https://developer.apple.com/documentation/SystemConfiguration/kSCCompSystem-swift.var KSCCompSystem string // KSCCompUsers is the Component key Users. // // See: https://developer.apple.com/documentation/SystemConfiguration/kSCCompUsers-swift.var KSCCompUsers string // KSCDynamicStoreDomainFile is the `File:` prefix. // // See: https://developer.apple.com/documentation/SystemConfiguration/kSCDynamicStoreDomainFile-swift.var KSCDynamicStoreDomainFile string // KSCDynamicStoreDomainPlugin is the `Plugin:` prefix. // // See: https://developer.apple.com/documentation/SystemConfiguration/kSCDynamicStoreDomainPlugin-swift.var KSCDynamicStoreDomainPlugin string // KSCDynamicStoreDomainPrefs is the `Prefs:` prefix. // // See: https://developer.apple.com/documentation/SystemConfiguration/kSCDynamicStoreDomainPrefs-swift.var KSCDynamicStoreDomainPrefs string // KSCDynamicStoreDomainSetup is the `Setup:` prefix. // // See: https://developer.apple.com/documentation/SystemConfiguration/kSCDynamicStoreDomainSetup-swift.var KSCDynamicStoreDomainSetup string // KSCDynamicStoreDomainState is the `State:` prefix. // // See: https://developer.apple.com/documentation/SystemConfiguration/kSCDynamicStoreDomainState-swift.var KSCDynamicStoreDomainState string // KSCDynamicStorePropNetInterfaces is the dynamic store key [Interfaces], whose value is of type [CFArray], containing elements of type [CFString]. // // See: https://developer.apple.com/documentation/SystemConfiguration/kSCDynamicStorePropNetInterfaces-swift.var KSCDynamicStorePropNetInterfaces string // KSCDynamicStorePropNetPrimaryInterface is the dynamic store key [PrimaryInterface], whose value is of type [CFString]. // // See: https://developer.apple.com/documentation/SystemConfiguration/kSCDynamicStorePropNetPrimaryInterface-swift.var KSCDynamicStorePropNetPrimaryInterface string // KSCDynamicStorePropNetPrimaryService is the dynamic store key [PrimaryService], whose value is of type [CFString]. // // See: https://developer.apple.com/documentation/SystemConfiguration/kSCDynamicStorePropNetPrimaryService-swift.var KSCDynamicStorePropNetPrimaryService string // KSCDynamicStorePropNetServiceIDs is the dynamic store key [ServiceIDs], whose value is of type [CFArray], containing elements of type [CFString]. // // See: https://developer.apple.com/documentation/SystemConfiguration/kSCDynamicStorePropNetServiceIDs-swift.var KSCDynamicStorePropNetServiceIDs string // KSCDynamicStorePropSetupCurrentSet is the dynamic store key [CurrentSet], whose value is of type [CFNumber]. // // See: https://developer.apple.com/documentation/SystemConfiguration/kSCDynamicStorePropSetupCurrentSet-swift.var KSCDynamicStorePropSetupCurrentSet string // KSCDynamicStorePropSetupLastUpdated is the dynamic store key [LastUpdated]. // // See: https://developer.apple.com/documentation/SystemConfiguration/kSCDynamicStorePropSetupLastUpdated-swift.var KSCDynamicStorePropSetupLastUpdated string // KSCDynamicStoreUseSessionKeys is all keys added or set into the dynamic store should be per-session keys. // // See: https://developer.apple.com/documentation/SystemConfiguration/kSCDynamicStoreUseSessionKeys KSCDynamicStoreUseSessionKeys string // KSCEntNet6to4 is the network entity key for the `6to4` dictionary. // // See: https://developer.apple.com/documentation/SystemConfiguration/kSCEntNet6to4-swift.var KSCEntNet6to4 string // KSCEntNetAirPort is the network entity key for the [AirPort] dictionary. // // See: https://developer.apple.com/documentation/SystemConfiguration/kSCEntNetAirPort-swift.var KSCEntNetAirPort string // KSCEntNetDHCP is the network entity key for the [DHCP] dictionary. // // See: https://developer.apple.com/documentation/SystemConfiguration/kSCEntNetDHCP-swift.var KSCEntNetDHCP string // KSCEntNetDNS is the network entity key for the [DNS] dictionary. // // See: https://developer.apple.com/documentation/SystemConfiguration/kSCEntNetDNS-swift.var KSCEntNetDNS string // KSCEntNetEthernet is the network entity key for the [Ethernet] dictionary. // // See: https://developer.apple.com/documentation/SystemConfiguration/kSCEntNetEthernet-swift.var KSCEntNetEthernet string // KSCEntNetFireWire is the network entity key for the [FireWire] dictionary. // // See: https://developer.apple.com/documentation/SystemConfiguration/kSCEntNetFireWire-swift.var KSCEntNetFireWire string // KSCEntNetIPSec is the network entity key for the [IPSec] dictionary. // // See: https://developer.apple.com/documentation/SystemConfiguration/kSCEntNetIPSec-swift.var KSCEntNetIPSec string // KSCEntNetIPv4 is the network entity key for the [IPv4] dictionary. // // See: https://developer.apple.com/documentation/SystemConfiguration/kSCEntNetIPv4-swift.var KSCEntNetIPv4 string // KSCEntNetIPv6 is the network entity key for the [IPv6] dictionary. // // See: https://developer.apple.com/documentation/SystemConfiguration/kSCEntNetIPv6-swift.var KSCEntNetIPv6 string // KSCEntNetInterface is the network entity key for the [Interface] dictionary. // // See: https://developer.apple.com/documentation/SystemConfiguration/kSCEntNetInterface-swift.var KSCEntNetInterface string // KSCEntNetL2TP is the network entity key for the [L2TP] dictionary. // // See: https://developer.apple.com/documentation/SystemConfiguration/kSCEntNetL2TP-swift.var KSCEntNetL2TP string // KSCEntNetLink is the network entity key for the [Link] dictionary. // // See: https://developer.apple.com/documentation/SystemConfiguration/kSCEntNetLink-swift.var KSCEntNetLink string // KSCEntNetModem is the network entity key for the [Modem] dictionary. // // See: https://developer.apple.com/documentation/SystemConfiguration/kSCEntNetModem-swift.var KSCEntNetModem string // KSCEntNetPPP is the network entity key for the [PPP] dictionary. // // See: https://developer.apple.com/documentation/SystemConfiguration/kSCEntNetPPP-swift.var KSCEntNetPPP string // KSCEntNetPPPSerial is the network entity key for the [PPPSerial] dictionary. // // See: https://developer.apple.com/documentation/SystemConfiguration/kSCEntNetPPPSerial-swift.var KSCEntNetPPPSerial string // KSCEntNetPPPoE is the network entity key for the [PPPoE] dictionary. // // See: https://developer.apple.com/documentation/SystemConfiguration/kSCEntNetPPPoE-swift.var KSCEntNetPPPoE string // KSCEntNetPPTP is the network entity key for the [PPTP] dictionary. // // Deprecated: Deprecated since macOS 10.12. No longer supported // // See: https://developer.apple.com/documentation/SystemConfiguration/kSCEntNetPPTP-swift.var KSCEntNetPPTP string // KSCEntNetProxies is the network entity key for the [Proxies] dictionary. // // See: https://developer.apple.com/documentation/SystemConfiguration/kSCEntNetProxies-swift.var KSCEntNetProxies string // KSCEntNetSMB is the network entity key for the [SMB] dictionary. // // See: https://developer.apple.com/documentation/SystemConfiguration/kSCEntNetSMB-swift.var KSCEntNetSMB string // KSCEntUsersConsoleUser is the CompUsers key [ConsoleUser]. // // See: https://developer.apple.com/documentation/SystemConfiguration/kSCEntUsersConsoleUser-swift.var KSCEntUsersConsoleUser string // KSCNetworkInterfaceType6to4 is the 6to4 interface. // // See: https://developer.apple.com/documentation/SystemConfiguration/kSCNetworkInterfaceType6to4 KSCNetworkInterfaceType6to4 string // KSCNetworkInterfaceTypeBluetooth is the Bluetooth interface. // // See: https://developer.apple.com/documentation/SystemConfiguration/kSCNetworkInterfaceTypeBluetooth KSCNetworkInterfaceTypeBluetooth string // KSCNetworkInterfaceTypeBond is the Ethernet bond interface. // // See: https://developer.apple.com/documentation/SystemConfiguration/kSCNetworkInterfaceTypeBond KSCNetworkInterfaceTypeBond string // KSCNetworkInterfaceTypeEthernet is the Ethernet interface. // // See: https://developer.apple.com/documentation/SystemConfiguration/kSCNetworkInterfaceTypeEthernet KSCNetworkInterfaceTypeEthernet string // KSCNetworkInterfaceTypeFireWire is the FireWire interface. // // See: https://developer.apple.com/documentation/SystemConfiguration/kSCNetworkInterfaceTypeFireWire KSCNetworkInterfaceTypeFireWire string // KSCNetworkInterfaceTypeIEEE80211 is the IEEE 802.11 interface. // // See: https://developer.apple.com/documentation/SystemConfiguration/kSCNetworkInterfaceTypeIEEE80211 KSCNetworkInterfaceTypeIEEE80211 string // KSCNetworkInterfaceTypeIPSec is the IPSec interface. // // See: https://developer.apple.com/documentation/SystemConfiguration/kSCNetworkInterfaceTypeIPSec KSCNetworkInterfaceTypeIPSec string // KSCNetworkInterfaceTypeIPv4 is the IPv4 interface. // // See: https://developer.apple.com/documentation/SystemConfiguration/kSCNetworkInterfaceTypeIPv4 KSCNetworkInterfaceTypeIPv4 string // KSCNetworkInterfaceTypeIrDA is the IrDA interface. // // Deprecated: Deprecated since macOS 12.0. No longer supported // // See: https://developer.apple.com/documentation/SystemConfiguration/kSCNetworkInterfaceTypeIrDA KSCNetworkInterfaceTypeIrDA string // KSCNetworkInterfaceTypeL2TP is the L2TP interface. // // See: https://developer.apple.com/documentation/SystemConfiguration/kSCNetworkInterfaceTypeL2TP KSCNetworkInterfaceTypeL2TP string // KSCNetworkInterfaceTypeModem is the modem interface. // // See: https://developer.apple.com/documentation/SystemConfiguration/kSCNetworkInterfaceTypeModem KSCNetworkInterfaceTypeModem string // KSCNetworkInterfaceTypePPP is the PPP interface. // // See: https://developer.apple.com/documentation/SystemConfiguration/kSCNetworkInterfaceTypePPP KSCNetworkInterfaceTypePPP string // KSCNetworkInterfaceTypePPTP is the PPTP interface. // // Deprecated: Deprecated since macOS 10.12. No longer supported // // See: https://developer.apple.com/documentation/SystemConfiguration/kSCNetworkInterfaceTypePPTP KSCNetworkInterfaceTypePPTP string // KSCNetworkInterfaceTypeSerial is the serial interface. // // See: https://developer.apple.com/documentation/SystemConfiguration/kSCNetworkInterfaceTypeSerial KSCNetworkInterfaceTypeSerial string // KSCNetworkInterfaceTypeVLAN is the VLAN interface. // // See: https://developer.apple.com/documentation/SystemConfiguration/kSCNetworkInterfaceTypeVLAN KSCNetworkInterfaceTypeVLAN string // KSCNetworkInterfaceTypeWWAN is the WWAN interface. // // See: https://developer.apple.com/documentation/SystemConfiguration/kSCNetworkInterfaceTypeWWAN KSCNetworkInterfaceTypeWWAN string // KSCNetworkProtocolTypeDNS is the DNS protocol. // // See: https://developer.apple.com/documentation/SystemConfiguration/kSCNetworkProtocolTypeDNS KSCNetworkProtocolTypeDNS string // KSCNetworkProtocolTypeIPv4 is the IPv4 protocol. // // See: https://developer.apple.com/documentation/SystemConfiguration/kSCNetworkProtocolTypeIPv4 KSCNetworkProtocolTypeIPv4 string // KSCNetworkProtocolTypeIPv6 is the IPv6 protocol. // // See: https://developer.apple.com/documentation/SystemConfiguration/kSCNetworkProtocolTypeIPv6 KSCNetworkProtocolTypeIPv6 string // KSCNetworkProtocolTypeProxies is protocol proxies. // // See: https://developer.apple.com/documentation/SystemConfiguration/kSCNetworkProtocolTypeProxies KSCNetworkProtocolTypeProxies string // KSCNetworkProtocolTypeSMB is the SMB procotol. // // See: https://developer.apple.com/documentation/SystemConfiguration/kSCNetworkProtocolTypeSMB KSCNetworkProtocolTypeSMB string // KSCPrefCurrentSet is the preference key [CurrentSet], whose value is of type [CFString]. // // See: https://developer.apple.com/documentation/SystemConfiguration/kSCPrefCurrentSet-swift.var KSCPrefCurrentSet string // KSCPrefNetworkServices is the preference key for the [NetworkServices] dictionary. // // See: https://developer.apple.com/documentation/SystemConfiguration/kSCPrefNetworkServices-swift.var KSCPrefNetworkServices string // KSCPrefSets is the preference key for the [Sets] dictionary. // // See: https://developer.apple.com/documentation/SystemConfiguration/kSCPrefSets-swift.var KSCPrefSets string // KSCPrefSystem is the preference key for the [System] dictionary. // // See: https://developer.apple.com/documentation/SystemConfiguration/kSCPrefSystem-swift.var KSCPrefSystem string // KSCPropInterfaceName is the generic key [InterfaceName], whose value is of type [CFString]. // // See: https://developer.apple.com/documentation/SystemConfiguration/kSCPropInterfaceName-swift.var KSCPropInterfaceName string // KSCPropMACAddress is the generic key [MACAddress], whose value is of type [CFString]. // // See: https://developer.apple.com/documentation/SystemConfiguration/kSCPropMACAddress-swift.var KSCPropMACAddress string // KSCPropNet6to4Relay is the 6to4 key [Relay], whose value is of type [CFString]. // // See: https://developer.apple.com/documentation/SystemConfiguration/kSCPropNet6to4Relay-swift.var KSCPropNet6to4Relay string // KSCPropNetAirPortAllowNetCreation is the AirPort key [AllowNetCreation], whose value is of type [CFNumber] and is equal to `0` or `1`. // // Deprecated: Deprecated since macOS 10.9. // // See: https://developer.apple.com/documentation/SystemConfiguration/kSCPropNetAirPortAllowNetCreation-c.var KSCPropNetAirPortAllowNetCreation string // KSCPropNetAirPortAuthPassword is the AirPort key [AuthPassword], whose value is of type [CFData]. // // Deprecated: Deprecated since macOS 10.9. // // See: https://developer.apple.com/documentation/SystemConfiguration/kSCPropNetAirPortAuthPassword-c.var KSCPropNetAirPortAuthPassword string // KSCPropNetAirPortAuthPasswordEncryption is the AirPort key [AuthPasswordEncryption], whose value is of type [CFString]. // // Deprecated: Deprecated since macOS 10.9. // // See: https://developer.apple.com/documentation/SystemConfiguration/kSCPropNetAirPortAuthPasswordEncryption-c.var KSCPropNetAirPortAuthPasswordEncryption string // KSCPropNetAirPortJoinMode is the AirPort key [JoinMode], whose value is of type [CFString]. // // Deprecated: Deprecated since macOS 10.9. // // See: https://developer.apple.com/documentation/SystemConfiguration/kSCPropNetAirPortJoinMode-c.var KSCPropNetAirPortJoinMode string // KSCPropNetAirPortPowerEnabled is the AirPort key [PowerEnabled], whose value is of type [CFNumber] and is equal to `0` or `1`. // // Deprecated: Deprecated since macOS 10.9. // // See: https://developer.apple.com/documentation/SystemConfiguration/kSCPropNetAirPortPowerEnabled-c.var KSCPropNetAirPortPowerEnabled string // KSCPropNetAirPortPreferredNetwork is the AirPort key [PreferredNetwork], whose value is of type [CFString]. // // Deprecated: Deprecated since macOS 10.9. // // See: https://developer.apple.com/documentation/SystemConfiguration/kSCPropNetAirPortPreferredNetwork-c.var KSCPropNetAirPortPreferredNetwork string // KSCPropNetAirPortSavePasswords is the AirPort key [SavePasswords], whose value is of type [CFNumber] and is equal to `0` or `1`. // // Deprecated: Deprecated since macOS 10.9. // // See: https://developer.apple.com/documentation/SystemConfiguration/kSCPropNetAirPortSavePasswords-c.var KSCPropNetAirPortSavePasswords string // KSCPropNetDNSDomainName is the DNS key [DomainName], whose value is of type [CFString]. // // See: https://developer.apple.com/documentation/SystemConfiguration/kSCPropNetDNSDomainName-swift.var KSCPropNetDNSDomainName string // KSCPropNetDNSOptions is the DNS key [Options], whose value is of type [CFString]. // // See: https://developer.apple.com/documentation/SystemConfiguration/kSCPropNetDNSOptions-swift.var KSCPropNetDNSOptions string // KSCPropNetDNSSearchDomains is the DNS key [SearchDomains], whose value is of type [CFArray], containing elements of type [CFString]. // // See: https://developer.apple.com/documentation/SystemConfiguration/kSCPropNetDNSSearchDomains-swift.var KSCPropNetDNSSearchDomains string // KSCPropNetDNSSearchOrder is the DNS key [SearchOrder], whose value is of type [CFNumber]. // // See: https://developer.apple.com/documentation/SystemConfiguration/kSCPropNetDNSSearchOrder-swift.var KSCPropNetDNSSearchOrder string // KSCPropNetDNSServerAddresses is the DNS key [ServerAddresses], whose value is of type [CFArray], containing elements of type [CFString]. // // See: https://developer.apple.com/documentation/SystemConfiguration/kSCPropNetDNSServerAddresses-swift.var KSCPropNetDNSServerAddresses string // KSCPropNetDNSServerPort is the DNS key [ServerPort], whose value is of type [CFNumber]. // // See: https://developer.apple.com/documentation/SystemConfiguration/kSCPropNetDNSServerPort-swift.var KSCPropNetDNSServerPort string // KSCPropNetDNSServerTimeout is the DNS key [ServerTimeout], whose value is of type [CFNumber]. // // See: https://developer.apple.com/documentation/SystemConfiguration/kSCPropNetDNSServerTimeout-swift.var KSCPropNetDNSServerTimeout string // KSCPropNetDNSSortList is the DNS key [SortList], whose value is of type [CFArray], containing elements of type [CFString]. // // See: https://developer.apple.com/documentation/SystemConfiguration/kSCPropNetDNSSortList-swift.var KSCPropNetDNSSortList string // KSCPropNetDNSSupplementalMatchDomains is the DNS key [SupplementalMatchDomains], whose value is of type [CFArray], containing elements of type [CFString]. // // See: https://developer.apple.com/documentation/SystemConfiguration/kSCPropNetDNSSupplementalMatchDomains-swift.var KSCPropNetDNSSupplementalMatchDomains string // KSCPropNetDNSSupplementalMatchOrders is the DNS key [SupplementalMatchOrders], whose value is of type [CFArray], containing elements of type [CFNumber]. // // See: https://developer.apple.com/documentation/SystemConfiguration/kSCPropNetDNSSupplementalMatchOrders-swift.var KSCPropNetDNSSupplementalMatchOrders string // KSCPropNetEthernetMTU is the Ethernet key [MTU], whose value is of type [CFNumber]. // // See: https://developer.apple.com/documentation/SystemConfiguration/kSCPropNetEthernetMTU-swift.var KSCPropNetEthernetMTU string // KSCPropNetEthernetMediaOptions is the Ethernet key [MediaOptions], whose value is of type [CFArray], containing elements of type [CFString]. // // See: https://developer.apple.com/documentation/SystemConfiguration/kSCPropNetEthernetMediaOptions-swift.var KSCPropNetEthernetMediaOptions string // KSCPropNetEthernetMediaSubType is the Ethernet key [MediaSubType], whose value is of type [CFString]. // // See: https://developer.apple.com/documentation/SystemConfiguration/kSCPropNetEthernetMediaSubType-swift.var KSCPropNetEthernetMediaSubType string // KSCPropNetIPSecAuthenticationMethod is the IPSec key [AuthenticationMethod], whose value is of type [CFString]. // // See: https://developer.apple.com/documentation/SystemConfiguration/kSCPropNetIPSecAuthenticationMethod-swift.var KSCPropNetIPSecAuthenticationMethod string // KSCPropNetIPSecConnectTime is the IPSec key ConnectTime. // // See: https://developer.apple.com/documentation/SystemConfiguration/kSCPropNetIPSecConnectTime-swift.var KSCPropNetIPSecConnectTime string // KSCPropNetIPSecLocalCertificate is the IPSec key [LocalCertificate], whose value is of type [CFData]. // // See: https://developer.apple.com/documentation/SystemConfiguration/kSCPropNetIPSecLocalCertificate-swift.var KSCPropNetIPSecLocalCertificate string // KSCPropNetIPSecLocalIdentifier is the IPSec key [LocalIdentifier], whose value is of type [CFString]. // // See: https://developer.apple.com/documentation/SystemConfiguration/kSCPropNetIPSecLocalIdentifier-swift.var KSCPropNetIPSecLocalIdentifier string // KSCPropNetIPSecLocalIdentifierType is the IPSec key [LocalIdentifierType], whose value is of type [CFString]. // // See: https://developer.apple.com/documentation/SystemConfiguration/kSCPropNetIPSecLocalIdentifierType-swift.var KSCPropNetIPSecLocalIdentifierType string // KSCPropNetIPSecRemoteAddress is the IPSec key RemoteAddress. // // See: https://developer.apple.com/documentation/SystemConfiguration/kSCPropNetIPSecRemoteAddress-swift.var KSCPropNetIPSecRemoteAddress string // // See: https://developer.apple.com/documentation/SystemConfiguration/kSCPropNetIPSecSharedSecret-swift.var KSCPropNetIPSecSharedSecret string // // See: https://developer.apple.com/documentation/SystemConfiguration/kSCPropNetIPSecSharedSecretEncryption-swift.var KSCPropNetIPSecSharedSecretEncryption string // KSCPropNetIPSecStatus is the IPSec key Status. // // See: https://developer.apple.com/documentation/SystemConfiguration/kSCPropNetIPSecStatus-swift.var KSCPropNetIPSecStatus string // KSCPropNetIPSecXAuthEnabled is the IPSec key XAuthEnabled. // // See: https://developer.apple.com/documentation/SystemConfiguration/kSCPropNetIPSecXAuthEnabled-swift.var KSCPropNetIPSecXAuthEnabled string // KSCPropNetIPSecXAuthName is the IPSec key XAuthName. // // See: https://developer.apple.com/documentation/SystemConfiguration/kSCPropNetIPSecXAuthName-swift.var KSCPropNetIPSecXAuthName string // KSCPropNetIPSecXAuthPassword is the IPSec key XAuthPassword. // // See: https://developer.apple.com/documentation/SystemConfiguration/kSCPropNetIPSecXAuthPassword-swift.var KSCPropNetIPSecXAuthPassword string // KSCPropNetIPSecXAuthPasswordEncryption is the IPSec key XAuthPasswordEncryption. // // See: https://developer.apple.com/documentation/SystemConfiguration/kSCPropNetIPSecXAuthPasswordEncryption-swift.var KSCPropNetIPSecXAuthPasswordEncryption string // KSCPropNetIPv4Addresses is the IPv4 key [Addresses], whose value is of type [CFArray], containing elements of type [CFString]. // // See: https://developer.apple.com/documentation/SystemConfiguration/kSCPropNetIPv4Addresses-swift.var KSCPropNetIPv4Addresses string // KSCPropNetIPv4BroadcastAddresses is the IPv4 key [BroadcastAddresses], whose value is of type [CFArray], containing elements of type [CFString]. // // See: https://developer.apple.com/documentation/SystemConfiguration/kSCPropNetIPv4BroadcastAddresses-swift.var KSCPropNetIPv4BroadcastAddresses string // KSCPropNetIPv4ConfigMethod is the IPv4 key [ConfigMethod], whose value is of type [CFString]. // // See: https://developer.apple.com/documentation/SystemConfiguration/kSCPropNetIPv4ConfigMethod-swift.var KSCPropNetIPv4ConfigMethod string // KSCPropNetIPv4DHCPClientID is the IPv4 key [DHCPClientID], whose value is of type [CFString]. // // See: https://developer.apple.com/documentation/SystemConfiguration/kSCPropNetIPv4DHCPClientID-swift.var KSCPropNetIPv4DHCPClientID string // KSCPropNetIPv4DestAddresses is the IPv4 key [DestAddresses], whose value is of type [CFArray], containing elements of type [CFString]. // // See: https://developer.apple.com/documentation/SystemConfiguration/kSCPropNetIPv4DestAddresses-swift.var KSCPropNetIPv4DestAddresses string // KSCPropNetIPv4Router is the IPv4 key [Router], whose value is of type [CFString]. // // See: https://developer.apple.com/documentation/SystemConfiguration/kSCPropNetIPv4Router-swift.var KSCPropNetIPv4Router string // KSCPropNetIPv4SubnetMasks is the IPv4 key [SubnetMasks], whose value is of type [CFArray], containing elements of type [CFString]. // // See: https://developer.apple.com/documentation/SystemConfiguration/kSCPropNetIPv4SubnetMasks-swift.var KSCPropNetIPv4SubnetMasks string // KSCPropNetIPv6Addresses is the IPv6 key [Addresses], whose value is of type [CFArray], containing elements of type [CFString]. // // See: https://developer.apple.com/documentation/SystemConfiguration/kSCPropNetIPv6Addresses-swift.var KSCPropNetIPv6Addresses string // KSCPropNetIPv6ConfigMethod is the IPv6 key [ConfigMethod], whose value is of type [CFString]. // // See: https://developer.apple.com/documentation/SystemConfiguration/kSCPropNetIPv6ConfigMethod-swift.var KSCPropNetIPv6ConfigMethod string // KSCPropNetIPv6DestAddresses is the IPv6 key [DestAddresses], whose value is of type [CFArray], containing elements of type [CFString]. // // See: https://developer.apple.com/documentation/SystemConfiguration/kSCPropNetIPv6DestAddresses-swift.var KSCPropNetIPv6DestAddresses string // KSCPropNetIPv6Flags is the IPv6 key [Flags], whose value is of type [CFNumber]. // // See: https://developer.apple.com/documentation/SystemConfiguration/kSCPropNetIPv6Flags-swift.var KSCPropNetIPv6Flags string // KSCPropNetIPv6PrefixLength is the IPv6 key [PrefixLength], whose value is of type [CFArray], containing elements of type [CFNumber]. // // See: https://developer.apple.com/documentation/SystemConfiguration/kSCPropNetIPv6PrefixLength-swift.var KSCPropNetIPv6PrefixLength string // KSCPropNetIPv6Router is the IPv6 key [Router], whose value is of type [CFString]. // // See: https://developer.apple.com/documentation/SystemConfiguration/kSCPropNetIPv6Router-swift.var KSCPropNetIPv6Router string // KSCPropNetInterfaceDeviceName is the Interface key [DeviceName], whose value is of type [CFString]. // // See: https://developer.apple.com/documentation/SystemConfiguration/kSCPropNetInterfaceDeviceName-swift.var KSCPropNetInterfaceDeviceName string // KSCPropNetInterfaceHardware is the Interface key [Hardware], whose value is of type [CFString]. // // See: https://developer.apple.com/documentation/SystemConfiguration/kSCPropNetInterfaceHardware-swift.var KSCPropNetInterfaceHardware string // KSCPropNetInterfaceSubType is the Interface key [SubType], whose value is of type [CFString]. // // See: https://developer.apple.com/documentation/SystemConfiguration/kSCPropNetInterfaceSubType-swift.var KSCPropNetInterfaceSubType string // KSCPropNetInterfaceSupportsModemOnHold is the Interface key [SupportsModemOnHold], whose value is of type [CFNumber] and is equal to `0` or `1`. // // Deprecated: Deprecated since macOS 10.13. No longer supported // // See: https://developer.apple.com/documentation/SystemConfiguration/kSCPropNetInterfaceSupportsModemOnHold-swift.var KSCPropNetInterfaceSupportsModemOnHold string // KSCPropNetInterfaceType is the Interface key [Type], whose value is of type [CFString]. // // See: https://developer.apple.com/documentation/SystemConfiguration/kSCPropNetInterfaceType-swift.var KSCPropNetInterfaceType string // KSCPropNetInterfaces is the Network key [Interfaces], whose value is of type [CFArray], containing elements of type [CFString]. // // See: https://developer.apple.com/documentation/SystemConfiguration/kSCPropNetInterfaces-swift.var KSCPropNetInterfaces string // // See: https://developer.apple.com/documentation/SystemConfiguration/kSCPropNetL2TPIPSecSharedSecret-swift.var KSCPropNetL2TPIPSecSharedSecret string // // See: https://developer.apple.com/documentation/SystemConfiguration/kSCPropNetL2TPIPSecSharedSecretEncryption-swift.var KSCPropNetL2TPIPSecSharedSecretEncryption string // KSCPropNetL2TPTransport is the L2TP key [Transport], whose value is of type [CFString]. // // See: https://developer.apple.com/documentation/SystemConfiguration/kSCPropNetL2TPTransport-swift.var KSCPropNetL2TPTransport string // KSCPropNetLinkActive is the Link key [Active], whose value is of type [CFBoolean]. // // See: https://developer.apple.com/documentation/SystemConfiguration/kSCPropNetLinkActive-swift.var KSCPropNetLinkActive string // KSCPropNetLinkDetaching is the Link key [Detaching], whose value is of type [CFBoolean]. // // See: https://developer.apple.com/documentation/SystemConfiguration/kSCPropNetLinkDetaching-swift.var KSCPropNetLinkDetaching string // KSCPropNetLocalHostName is the Network key [LocalHostName], whose value is of type [CFString]. // // See: https://developer.apple.com/documentation/SystemConfiguration/kSCPropNetLocalHostName-swift.var KSCPropNetLocalHostName string // KSCPropNetModemAccessPointName is the Modem key [AccessPointName], whose value is of type [CFString]. // // See: https://developer.apple.com/documentation/SystemConfiguration/kSCPropNetModemAccessPointName-swift.var KSCPropNetModemAccessPointName string // KSCPropNetModemConnectSpeed is the Modem key [ConnectSpeed], whose value is of type [CFNumber]. // // See: https://developer.apple.com/documentation/SystemConfiguration/kSCPropNetModemConnectSpeed-swift.var KSCPropNetModemConnectSpeed string // KSCPropNetModemConnectionPersonality is the Modem key [ConnectionPersonality], whose value is of type [CFString]. // // See: https://developer.apple.com/documentation/SystemConfiguration/kSCPropNetModemConnectionPersonality-swift.var KSCPropNetModemConnectionPersonality string // KSCPropNetModemConnectionScript is the Modem key [ConnectionScript], whose value is of type [CFString]. // // See: https://developer.apple.com/documentation/SystemConfiguration/kSCPropNetModemConnectionScript-swift.var KSCPropNetModemConnectionScript string // KSCPropNetModemDataCompression is the Modem key [DataCompression], whose value is of type [CFNumber] and is equal to `0` or `1`. // // See: https://developer.apple.com/documentation/SystemConfiguration/kSCPropNetModemDataCompression-swift.var KSCPropNetModemDataCompression string // KSCPropNetModemDeviceContextID is the Modem key [DeviceContextID], whose value is of type [CFString]. // // See: https://developer.apple.com/documentation/SystemConfiguration/kSCPropNetModemDeviceContextID-swift.var KSCPropNetModemDeviceContextID string // KSCPropNetModemDeviceModel is the Modem key [DeviceModel], whose value is of type [CFString]. // // See: https://developer.apple.com/documentation/SystemConfiguration/kSCPropNetModemDeviceModel-swift.var KSCPropNetModemDeviceModel string // KSCPropNetModemDeviceVendor is the Modem key [DeviceVendor], whose value is of type [CFString]. // // See: https://developer.apple.com/documentation/SystemConfiguration/kSCPropNetModemDeviceVendor-swift.var KSCPropNetModemDeviceVendor string // KSCPropNetModemDialMode is the Modem key [DialMode], whose value is of type [CFString]. // // See: https://developer.apple.com/documentation/SystemConfiguration/kSCPropNetModemDialMode-swift.var KSCPropNetModemDialMode string // KSCPropNetModemErrorCorrection is the Modem key [ErrorCorrection], whose value is of type [CFNumber] and is equal to `0` or `1`. // // See: https://developer.apple.com/documentation/SystemConfiguration/kSCPropNetModemErrorCorrection-swift.var KSCPropNetModemErrorCorrection string // KSCPropNetModemHoldCallWaitingAudibleAlert is the Modem key [HoldCallWaitingAudibleAlert], whose value is of type [CFNumber] and is equal to `0` or `1`. // // See: https://developer.apple.com/documentation/SystemConfiguration/kSCPropNetModemHoldCallWaitingAudibleAlert-swift.var KSCPropNetModemHoldCallWaitingAudibleAlert string // KSCPropNetModemHoldDisconnectOnAnswer is the Modem key [HoldDisconnectOnAnswer], whose value is of type [CFNumber] and is equal to `0` or `1`. // // See: https://developer.apple.com/documentation/SystemConfiguration/kSCPropNetModemHoldDisconnectOnAnswer-swift.var KSCPropNetModemHoldDisconnectOnAnswer string // KSCPropNetModemHoldEnabled is the Modem key [HoldEnabled], whose value is of type [CFNumber] and is equal to `0` or `1`. // // See: https://developer.apple.com/documentation/SystemConfiguration/kSCPropNetModemHoldEnabled-swift.var KSCPropNetModemHoldEnabled string // KSCPropNetModemHoldReminder is the Modem key [HoldReminder], whose value is of type [CFNumber] and is equal to `0` or `1`. // // See: https://developer.apple.com/documentation/SystemConfiguration/kSCPropNetModemHoldReminder-swift.var KSCPropNetModemHoldReminder string // KSCPropNetModemHoldReminderTime is the Modem key [HoldReminderTime], whose value is of type [CFNumber]. // // See: https://developer.apple.com/documentation/SystemConfiguration/kSCPropNetModemHoldReminderTime-swift.var KSCPropNetModemHoldReminderTime string // KSCPropNetModemNote is the Modem key [Note], whose value is of type [CFString]. // // See: https://developer.apple.com/documentation/SystemConfiguration/kSCPropNetModemNote-swift.var KSCPropNetModemNote string // KSCPropNetModemPulseDial is the Modem key [PulseDial], whose value is of type [CFNumber] and is equal to `0` or `1`. // // See: https://developer.apple.com/documentation/SystemConfiguration/kSCPropNetModemPulseDial-swift.var KSCPropNetModemPulseDial string // KSCPropNetModemSpeaker is the Modem key [Speaker], whose value is of type [CFNumber] and is equal to `0` or `1`. // // See: https://developer.apple.com/documentation/SystemConfiguration/kSCPropNetModemSpeaker-swift.var KSCPropNetModemSpeaker string // KSCPropNetModemSpeed is the Modem key [Speed], whose value is of type [CFNumber]. // // See: https://developer.apple.com/documentation/SystemConfiguration/kSCPropNetModemSpeed-swift.var KSCPropNetModemSpeed string // KSCPropNetOverridePrimary is the Network key [OverridePrimary], whose value is of type [CFNumber] and is equal to `0` or `1`. // // See: https://developer.apple.com/documentation/SystemConfiguration/kSCPropNetOverridePrimary-swift.var KSCPropNetOverridePrimary string // KSCPropNetPPPACSPEnabled is the PPP key [ACSPEnabled], whose value is of type [CFNumber] and is equal to `0` or `1`. // // See: https://developer.apple.com/documentation/SystemConfiguration/kSCPropNetPPPACSPEnabled-swift.var KSCPropNetPPPACSPEnabled string // KSCPropNetPPPAuthEAPPlugins is the PPP key [AuthEAPPlugins], whose value is of type [CFArray], containing elements of type [CFString]. // // Deprecated: Deprecated since macOS 10.15. No longer supported // // See: https://developer.apple.com/documentation/SystemConfiguration/kSCPropNetPPPAuthEAPPlugins-swift.var KSCPropNetPPPAuthEAPPlugins string // KSCPropNetPPPAuthName is the PPP key [AuthName], whose value is of type [CFString]. // // See: https://developer.apple.com/documentation/SystemConfiguration/kSCPropNetPPPAuthName-swift.var KSCPropNetPPPAuthName string // KSCPropNetPPPAuthPassword is the PPP key [AuthPassword], whose value is of type [CFString]. // // See: https://developer.apple.com/documentation/SystemConfiguration/kSCPropNetPPPAuthPassword-swift.var KSCPropNetPPPAuthPassword string // KSCPropNetPPPAuthPasswordEncryption is the PPP key [AuthPasswordEncryption], whose value is of type [CFString]. // // See: https://developer.apple.com/documentation/SystemConfiguration/kSCPropNetPPPAuthPasswordEncryption-swift.var KSCPropNetPPPAuthPasswordEncryption string // KSCPropNetPPPAuthPrompt is the PPP key [AuthPrompt], whose value is of type [CFString]. // // See: https://developer.apple.com/documentation/SystemConfiguration/kSCPropNetPPPAuthPrompt-swift.var KSCPropNetPPPAuthPrompt string // KSCPropNetPPPAuthProtocol is the PPP key [AuthProtocol], whose value is of type [CFArray], containing elements of type [CFString]. // // See: https://developer.apple.com/documentation/SystemConfiguration/kSCPropNetPPPAuthProtocol-swift.var KSCPropNetPPPAuthProtocol string // KSCPropNetPPPCCPEnabled is the PPP key [CCPEnabled], whose value is of type [CFNumber] and is equal to `0` or `1`. // // See: https://developer.apple.com/documentation/SystemConfiguration/kSCPropNetPPPCCPEnabled-swift.var KSCPropNetPPPCCPEnabled string // KSCPropNetPPPCCPMPPE128Enabled is the PPP key [CCPMPPE128Enabled], whose value is of type [CFNumber] and is equal to `0` or `1`. // // See: https://developer.apple.com/documentation/SystemConfiguration/kSCPropNetPPPCCPMPPE128Enabled-swift.var KSCPropNetPPPCCPMPPE128Enabled string // KSCPropNetPPPCCPMPPE40Enabled is the PPP key [CCPMPPE40Enabled], whose value is of type [CFNumber] and is equal to `0` or `1`. // // See: https://developer.apple.com/documentation/SystemConfiguration/kSCPropNetPPPCCPMPPE40Enabled-swift.var KSCPropNetPPPCCPMPPE40Enabled string // KSCPropNetPPPCommAlternateRemoteAddress is the PPP key [CommAlternateRemoteAddress], whose value is of type [CFString]. // // See: https://developer.apple.com/documentation/SystemConfiguration/kSCPropNetPPPCommAlternateRemoteAddress-swift.var KSCPropNetPPPCommAlternateRemoteAddress string // KSCPropNetPPPCommConnectDelay is the PPP key [CommConnectDelay], whose value is of type [CFNumber]. // // See: https://developer.apple.com/documentation/SystemConfiguration/kSCPropNetPPPCommConnectDelay-swift.var KSCPropNetPPPCommConnectDelay string // KSCPropNetPPPCommDisplayTerminalWindow is the PPP key [CommDisplayTerminalWindow], whose value is of type [CFNumber] and is equal to `0` or `1`. // // See: https://developer.apple.com/documentation/SystemConfiguration/kSCPropNetPPPCommDisplayTerminalWindow-swift.var KSCPropNetPPPCommDisplayTerminalWindow string // KSCPropNetPPPCommRedialCount is the PPP key [CommRedialCount], whose value is of type [CFNumber]. // // See: https://developer.apple.com/documentation/SystemConfiguration/kSCPropNetPPPCommRedialCount-swift.var KSCPropNetPPPCommRedialCount string // KSCPropNetPPPCommRedialEnabled is the PPP key [CommRedialEnabled], whose value is of type [CFNumber] and is equal to `0` or `1`. // // See: https://developer.apple.com/documentation/SystemConfiguration/kSCPropNetPPPCommRedialEnabled-swift.var KSCPropNetPPPCommRedialEnabled string // KSCPropNetPPPCommRedialInterval is the PPP key [CommRedialInterval], whose value is of type [CFNumber]. // // See: https://developer.apple.com/documentation/SystemConfiguration/kSCPropNetPPPCommRedialInterval-swift.var KSCPropNetPPPCommRedialInterval string // KSCPropNetPPPCommRemoteAddress is the PPP key [CommRemoteAddress], whose value is of type [CFString]. // // See: https://developer.apple.com/documentation/SystemConfiguration/kSCPropNetPPPCommRemoteAddress-swift.var KSCPropNetPPPCommRemoteAddress string // KSCPropNetPPPCommTerminalScript is the PPP key [CommTerminalScript], whose value is of type [CFString]. // // See: https://developer.apple.com/documentation/SystemConfiguration/kSCPropNetPPPCommTerminalScript-swift.var KSCPropNetPPPCommTerminalScript string // KSCPropNetPPPCommUseTerminalScript is the PPP key [CommUseTerminalScript], whose value is of type [CFNumber] and is equal to `0` or `1`. // // See: https://developer.apple.com/documentation/SystemConfiguration/kSCPropNetPPPCommUseTerminalScript-swift.var KSCPropNetPPPCommUseTerminalScript string // KSCPropNetPPPConnectTime is the PPP key [ConnectTime], whose value is of type [CFNumber]. // // See: https://developer.apple.com/documentation/SystemConfiguration/kSCPropNetPPPConnectTime-swift.var KSCPropNetPPPConnectTime string // KSCPropNetPPPDeviceLastCause is the PPP key [DeviceLastCause], whose value is of type [CFNumber]. // // See: https://developer.apple.com/documentation/SystemConfiguration/kSCPropNetPPPDeviceLastCause-swift.var KSCPropNetPPPDeviceLastCause string // KSCPropNetPPPDialOnDemand is the PPP key [DialOnDemand], whose value is of type [CFNumber] and is equal to `0` or `1`. // // See: https://developer.apple.com/documentation/SystemConfiguration/kSCPropNetPPPDialOnDemand-swift.var KSCPropNetPPPDialOnDemand string // KSCPropNetPPPDisconnectOnFastUserSwitch is the PPP key [DisconnectOnFastUserSwitch], whose value is of type [CFNumber] and is equal to `0` or `1`. // // See: https://developer.apple.com/documentation/SystemConfiguration/kSCPropNetPPPDisconnectOnFastUserSwitch-swift.var KSCPropNetPPPDisconnectOnFastUserSwitch string // KSCPropNetPPPDisconnectOnIdle is the PPP key [DisconnectOnIdle], whose value is of type [CFNumber] and is equal to `0` or `1`. // // See: https://developer.apple.com/documentation/SystemConfiguration/kSCPropNetPPPDisconnectOnIdle-swift.var KSCPropNetPPPDisconnectOnIdle string // KSCPropNetPPPDisconnectOnIdleTimer is the PPP key [DisconnectOnIdleTimer], whose value is of type [CFNumber]. // // See: https://developer.apple.com/documentation/SystemConfiguration/kSCPropNetPPPDisconnectOnIdleTimer-swift.var KSCPropNetPPPDisconnectOnIdleTimer string // KSCPropNetPPPDisconnectOnLogout is the PPP key [DisconnectOnLogout], whose value is of type [CFNumber] and is equal to `0` or `1`. // // See: https://developer.apple.com/documentation/SystemConfiguration/kSCPropNetPPPDisconnectOnLogout-swift.var KSCPropNetPPPDisconnectOnLogout string // KSCPropNetPPPDisconnectOnSleep is the PPP key [DisconnectOnSleep], whose value is of type [CFNumber] and is equal to `0` or `1`. // // See: https://developer.apple.com/documentation/SystemConfiguration/kSCPropNetPPPDisconnectOnSleep-swift.var KSCPropNetPPPDisconnectOnSleep string // KSCPropNetPPPDisconnectTime is the PPP key [DisconnectTime], whose value is of type [CFNumber]. // // See: https://developer.apple.com/documentation/SystemConfiguration/kSCPropNetPPPDisconnectTime-swift.var KSCPropNetPPPDisconnectTime string // KSCPropNetPPPIPCPCompressionVJ is the PPP key [IPCPCompressionVJ], whose value is of type [CFNumber] and is equal to `0` or `1`. // // See: https://developer.apple.com/documentation/SystemConfiguration/kSCPropNetPPPIPCPCompressionVJ-swift.var KSCPropNetPPPIPCPCompressionVJ string // KSCPropNetPPPIPCPUsePeerDNS is the PPP key [IPCPUsePeerDNS], whose value is of type [CFNumber] and is equal to `0` or `1`. // // See: https://developer.apple.com/documentation/SystemConfiguration/kSCPropNetPPPIPCPUsePeerDNS-swift.var KSCPropNetPPPIPCPUsePeerDNS string // KSCPropNetPPPIdleReminder is the PPP key [IdleReminder], whose value is of type [CFNumber] and is equal to `0` or `1`. // // See: https://developer.apple.com/documentation/SystemConfiguration/kSCPropNetPPPIdleReminder-swift.var KSCPropNetPPPIdleReminder string // KSCPropNetPPPIdleReminderTimer is the PPP key [IdleReminderTimer], whose value is of type [CFNumber]. // // See: https://developer.apple.com/documentation/SystemConfiguration/kSCPropNetPPPIdleReminderTimer-swift.var KSCPropNetPPPIdleReminderTimer string // KSCPropNetPPPLCPCompressionACField is the PPP key [LCPCompressionACField], whose value is of type [CFNumber] and is equal to `0` or `1`. // // See: https://developer.apple.com/documentation/SystemConfiguration/kSCPropNetPPPLCPCompressionACField-swift.var KSCPropNetPPPLCPCompressionACField string // KSCPropNetPPPLCPCompressionPField is the PPP key [LCPCompressionPField], whose value is of type [CFNumber] and is equal to `0` or `1`. // // See: https://developer.apple.com/documentation/SystemConfiguration/kSCPropNetPPPLCPCompressionPField-swift.var KSCPropNetPPPLCPCompressionPField string // KSCPropNetPPPLCPEchoEnabled is the PPP key [LCPEchoEnabled], whose value is of type [CFNumber] and is equal to `0` or `1`. // // See: https://developer.apple.com/documentation/SystemConfiguration/kSCPropNetPPPLCPEchoEnabled-swift.var KSCPropNetPPPLCPEchoEnabled string // KSCPropNetPPPLCPEchoFailure is the PPP key [LCPEchoFailure], whose value is of type [CFNumber]. // // See: https://developer.apple.com/documentation/SystemConfiguration/kSCPropNetPPPLCPEchoFailure-swift.var KSCPropNetPPPLCPEchoFailure string // KSCPropNetPPPLCPEchoInterval is the PPP key [LCPEchoInterval], whose value is of type [CFNumber]. // // See: https://developer.apple.com/documentation/SystemConfiguration/kSCPropNetPPPLCPEchoInterval-swift.var KSCPropNetPPPLCPEchoInterval string // KSCPropNetPPPLCPMRU is the PPP key [LCPMRU], whose value is of type [CFNumber]. // // See: https://developer.apple.com/documentation/SystemConfiguration/kSCPropNetPPPLCPMRU-swift.var KSCPropNetPPPLCPMRU string // KSCPropNetPPPLCPMTU is the PPP key [LCPMTU], whose value is of type [CFNumber]. // // See: https://developer.apple.com/documentation/SystemConfiguration/kSCPropNetPPPLCPMTU-swift.var KSCPropNetPPPLCPMTU string // KSCPropNetPPPLCPReceiveACCM is the PPP key [LCPReceiveACCM], whose value is of type [CFNumber]. // // See: https://developer.apple.com/documentation/SystemConfiguration/kSCPropNetPPPLCPReceiveACCM-swift.var KSCPropNetPPPLCPReceiveACCM string // KSCPropNetPPPLCPTransmitACCM is the PPP key [LCPTransmitACCM], whose value is of type [CFNumber]. // // See: https://developer.apple.com/documentation/SystemConfiguration/kSCPropNetPPPLCPTransmitACCM-swift.var KSCPropNetPPPLCPTransmitACCM string // KSCPropNetPPPLastCause is the PPP key [LastCause], whose value is of type [CFNumber]. // // See: https://developer.apple.com/documentation/SystemConfiguration/kSCPropNetPPPLastCause-swift.var KSCPropNetPPPLastCause string // KSCPropNetPPPLogfile is the PPP key [Logfile], whose value is of type [CFString]. // // See: https://developer.apple.com/documentation/SystemConfiguration/kSCPropNetPPPLogfile-swift.var KSCPropNetPPPLogfile string // KSCPropNetPPPOverridePrimary is the Network key [PPPOverridePrimary], whose value is of type [CFNumber] and is equal to `0` or `1`. // // See: https://developer.apple.com/documentation/SystemConfiguration/kSCPropNetPPPOverridePrimary-swift.var KSCPropNetPPPOverridePrimary string // KSCPropNetPPPPlugins is the PPP key [Plugins], whose value is of type [CFArray], containing elements of type [CFString]. // // Deprecated: Deprecated since macOS 10.15. No longer supported // // See: https://developer.apple.com/documentation/SystemConfiguration/kSCPropNetPPPPlugins-swift.var KSCPropNetPPPPlugins string // KSCPropNetPPPRetryConnectTime is the PPP key [RetryConnectTime], whose value is of type [CFNumber]. // // See: https://developer.apple.com/documentation/SystemConfiguration/kSCPropNetPPPRetryConnectTime-swift.var KSCPropNetPPPRetryConnectTime string // KSCPropNetPPPSessionTimer is the PPP key [SessionTimer], whose value is of type [CFNumber]. // // See: https://developer.apple.com/documentation/SystemConfiguration/kSCPropNetPPPSessionTimer-swift.var KSCPropNetPPPSessionTimer string // KSCPropNetPPPStatus is the PPP key [Status], whose value is of type [CFNumber]. // // See: https://developer.apple.com/documentation/SystemConfiguration/kSCPropNetPPPStatus-swift.var KSCPropNetPPPStatus string // KSCPropNetPPPUseSessionTimer is the PPP key [UseSessionTimer], whose value is of type [CFNumber] and is equal to `0` or `1`. // // See: https://developer.apple.com/documentation/SystemConfiguration/kSCPropNetPPPUseSessionTimer-swift.var KSCPropNetPPPUseSessionTimer string // KSCPropNetPPPVerboseLogging is the PPP key [VerboseLogging], whose value is of type [CFNumber] and is equal to `0` or `1`. // // See: https://developer.apple.com/documentation/SystemConfiguration/kSCPropNetPPPVerboseLogging-swift.var KSCPropNetPPPVerboseLogging string // KSCPropNetProxiesExceptionsList is the Proxies key [ExceptionsList], whose value is of type [CFArray], containing elements of type [CFString]. // // See: https://developer.apple.com/documentation/SystemConfiguration/kSCPropNetProxiesExceptionsList-swift.var KSCPropNetProxiesExceptionsList string // KSCPropNetProxiesExcludeSimpleHostnames is the Proxies key [ExcludeSimpleHostnames], whose value is of type [CFNumber] and is equal to `0` or `1`. // // See: https://developer.apple.com/documentation/SystemConfiguration/kSCPropNetProxiesExcludeSimpleHostnames-swift.var KSCPropNetProxiesExcludeSimpleHostnames string // KSCPropNetProxiesFTPEnable is the Proxies key [FTPEnable], whose value is of type [CFNumber] and is equal to `0` or `1`. // // See: https://developer.apple.com/documentation/SystemConfiguration/kSCPropNetProxiesFTPEnable-swift.var KSCPropNetProxiesFTPEnable string // KSCPropNetProxiesFTPPassive is the Proxies key [FTPPassive], whose value is of type [CFNumber] and is equal to `0` or `1`. // // See: https://developer.apple.com/documentation/SystemConfiguration/kSCPropNetProxiesFTPPassive-swift.var KSCPropNetProxiesFTPPassive string // KSCPropNetProxiesFTPPort is the Proxies key [FTPPort], whose value is of type [CFNumber]. // // See: https://developer.apple.com/documentation/SystemConfiguration/kSCPropNetProxiesFTPPort-swift.var KSCPropNetProxiesFTPPort string // KSCPropNetProxiesFTPProxy is the Proxies key [FTPProxy], whose value is of type [CFString]. // // See: https://developer.apple.com/documentation/SystemConfiguration/kSCPropNetProxiesFTPProxy-swift.var KSCPropNetProxiesFTPProxy string // See: https://developer.apple.com/documentation/SystemConfiguration/kSCPropNetProxiesFTPUser-swift.var KSCPropNetProxiesFTPUser string // KSCPropNetProxiesGopherEnable is the Proxies key [GopherEnable], whose value is of type [CFNumber] and is equal to `0` or `1`. // // See: https://developer.apple.com/documentation/SystemConfiguration/kSCPropNetProxiesGopherEnable-swift.var KSCPropNetProxiesGopherEnable string // KSCPropNetProxiesGopherPort is the Proxies key [GopherPort], whose value is of type [CFNumber]. // // See: https://developer.apple.com/documentation/SystemConfiguration/kSCPropNetProxiesGopherPort-swift.var KSCPropNetProxiesGopherPort string // KSCPropNetProxiesGopherProxy is the Proxies key [GopherProxy], whose value is of type [CFString]. // // See: https://developer.apple.com/documentation/SystemConfiguration/kSCPropNetProxiesGopherProxy-swift.var KSCPropNetProxiesGopherProxy string // See: https://developer.apple.com/documentation/SystemConfiguration/kSCPropNetProxiesGopherUser-swift.var KSCPropNetProxiesGopherUser string // KSCPropNetProxiesHTTPEnable is the Proxies key [HTTPEnable], whose value is of type [CFNumber] and is equal to `0` or `1`. // // See: https://developer.apple.com/documentation/SystemConfiguration/kSCPropNetProxiesHTTPEnable-swift.var KSCPropNetProxiesHTTPEnable string // KSCPropNetProxiesHTTPPort is the Proxies key [HTTPPort], whose value is of type [CFNumber]. // // See: https://developer.apple.com/documentation/SystemConfiguration/kSCPropNetProxiesHTTPPort-swift.var KSCPropNetProxiesHTTPPort string // KSCPropNetProxiesHTTPProxy is the Proxies key [HTTPProxy], whose value is of type [CFString]. // // See: https://developer.apple.com/documentation/SystemConfiguration/kSCPropNetProxiesHTTPProxy-swift.var KSCPropNetProxiesHTTPProxy string // KSCPropNetProxiesHTTPSEnable is the Proxies key [HTTPSEnable], whose value is of type [CFNumber] and is equal to `0` or `1`. // // See: https://developer.apple.com/documentation/SystemConfiguration/kSCPropNetProxiesHTTPSEnable-swift.var KSCPropNetProxiesHTTPSEnable string // KSCPropNetProxiesHTTPSPort is the Proxies key [HTTPSPort], whose value is of type [CFNumber]. // // See: https://developer.apple.com/documentation/SystemConfiguration/kSCPropNetProxiesHTTPSPort-swift.var KSCPropNetProxiesHTTPSPort string // KSCPropNetProxiesHTTPSProxy is the Proxies key [HTTPSProxy], whose value is of type [CFString]. // // See: https://developer.apple.com/documentation/SystemConfiguration/kSCPropNetProxiesHTTPSProxy-swift.var KSCPropNetProxiesHTTPSProxy string // See: https://developer.apple.com/documentation/SystemConfiguration/kSCPropNetProxiesHTTPSUser-swift.var KSCPropNetProxiesHTTPSUser string // See: https://developer.apple.com/documentation/SystemConfiguration/kSCPropNetProxiesHTTPUser-swift.var KSCPropNetProxiesHTTPUser string // KSCPropNetProxiesProxyAutoConfigEnable is the Proxies key [ProxyAutoConfigEnable], whose value is of type [CFNumber] and is equal to `0` or `1`. // // See: https://developer.apple.com/documentation/SystemConfiguration/kSCPropNetProxiesProxyAutoConfigEnable-swift.var KSCPropNetProxiesProxyAutoConfigEnable string // KSCPropNetProxiesProxyAutoConfigJavaScript is the Proxies key ProxyAutoConfigJavaScript. // // See: https://developer.apple.com/documentation/SystemConfiguration/kSCPropNetProxiesProxyAutoConfigJavaScript-swift.var KSCPropNetProxiesProxyAutoConfigJavaScript string // KSCPropNetProxiesProxyAutoConfigURLString is the Proxies key [ProxyAutoConfigURLString], whose value is of type [CFString]. // // See: https://developer.apple.com/documentation/SystemConfiguration/kSCPropNetProxiesProxyAutoConfigURLString-swift.var KSCPropNetProxiesProxyAutoConfigURLString string // KSCPropNetProxiesProxyAutoDiscoveryEnable is the Proxies key [ProxyAutoDiscoveryEnable], whose value is of type [CFNumber] and is equal to `0` or `1`. // // See: https://developer.apple.com/documentation/SystemConfiguration/kSCPropNetProxiesProxyAutoDiscoveryEnable-swift.var KSCPropNetProxiesProxyAutoDiscoveryEnable string // KSCPropNetProxiesRTSPEnable is the Proxies key [RTSPEnable], whose value is of type [CFNumber] and is equal to `0` or `1`. // // See: https://developer.apple.com/documentation/SystemConfiguration/kSCPropNetProxiesRTSPEnable-swift.var KSCPropNetProxiesRTSPEnable string // KSCPropNetProxiesRTSPPort is the Proxies key [RTSPPort], whose value is of type [CFNumber]. // // See: https://developer.apple.com/documentation/SystemConfiguration/kSCPropNetProxiesRTSPPort-swift.var KSCPropNetProxiesRTSPPort string // KSCPropNetProxiesRTSPProxy is the Proxies key [RTSPProxy], whose value is of type [CFString]. // // See: https://developer.apple.com/documentation/SystemConfiguration/kSCPropNetProxiesRTSPProxy-swift.var KSCPropNetProxiesRTSPProxy string // See: https://developer.apple.com/documentation/SystemConfiguration/kSCPropNetProxiesRTSPUser-swift.var KSCPropNetProxiesRTSPUser string // KSCPropNetProxiesSOCKSEnable is the Proxies key [SOCKSEnable], whose value is of type [CFNumber] and is equal to `0` or `1`. // // See: https://developer.apple.com/documentation/SystemConfiguration/kSCPropNetProxiesSOCKSEnable-swift.var KSCPropNetProxiesSOCKSEnable string // KSCPropNetProxiesSOCKSPort is the Proxies key [SOCKSPort], whose value is of type [CFNumber]. // // See: https://developer.apple.com/documentation/SystemConfiguration/kSCPropNetProxiesSOCKSPort-swift.var KSCPropNetProxiesSOCKSPort string // KSCPropNetProxiesSOCKSProxy is the Proxies key [SOCKSProxy], whose value is of type [CFString]. // // See: https://developer.apple.com/documentation/SystemConfiguration/kSCPropNetProxiesSOCKSProxy-swift.var KSCPropNetProxiesSOCKSProxy string // See: https://developer.apple.com/documentation/SystemConfiguration/kSCPropNetProxiesSOCKSUser-swift.var KSCPropNetProxiesSOCKSUser string // KSCPropNetSMBNetBIOSName is the SMB key [NetBIOSName], whose value is of type [CFString]. // // See: https://developer.apple.com/documentation/SystemConfiguration/kSCPropNetSMBNetBIOSName-swift.var KSCPropNetSMBNetBIOSName string // KSCPropNetSMBNetBIOSNodeType is the SMB key [NetBIOSNodeType], whose value is of type [CFString]. // // See: https://developer.apple.com/documentation/SystemConfiguration/kSCPropNetSMBNetBIOSNodeType-swift.var KSCPropNetSMBNetBIOSNodeType string // KSCPropNetSMBNetBIOSScope is the SMB key [NetBIOSScope], whose value is of type [CFString]. // // Deprecated: Deprecated since macOS 10.7. // // See: https://developer.apple.com/documentation/SystemConfiguration/kSCPropNetSMBNetBIOSScope-c.var KSCPropNetSMBNetBIOSScope string // KSCPropNetSMBWINSAddresses is the SMB key [WINSAddresses], whose value is of type [CFArray], containing elements of type [CFString]. // // See: https://developer.apple.com/documentation/SystemConfiguration/kSCPropNetSMBWINSAddresses-swift.var KSCPropNetSMBWINSAddresses string // KSCPropNetSMBWorkgroup is the SMB key [Workgroup], whose value is of type [CFString]. // // See: https://developer.apple.com/documentation/SystemConfiguration/kSCPropNetSMBWorkgroup-swift.var KSCPropNetSMBWorkgroup string // KSCPropNetServiceOrder is the Network key [ServiceOrder], whose value is of type [CFArray], containing elements of type [CFString]. // // See: https://developer.apple.com/documentation/SystemConfiguration/kSCPropNetServiceOrder-swift.var KSCPropNetServiceOrder string // KSCPropSystemComputerName is the CompSystem key [ComputerName], whose value is of type [CFString]. // // See: https://developer.apple.com/documentation/SystemConfiguration/kSCPropSystemComputerName-swift.var KSCPropSystemComputerName string // KSCPropSystemComputerNameEncoding is the CompSystem key [ComputerNameEncoding], whose value is of type [CFNumber]. // // See: https://developer.apple.com/documentation/SystemConfiguration/kSCPropSystemComputerNameEncoding-swift.var KSCPropSystemComputerNameEncoding string // KSCPropUserDefinedName is the generic key [UserDefinedName], whose value is of type [CFString]. // // See: https://developer.apple.com/documentation/SystemConfiguration/kSCPropUserDefinedName-swift.var KSCPropUserDefinedName string // KSCPropUsersConsoleUserGID is the deprecated key GID. // // Deprecated: Deprecated since macOS 10.4. // // See: https://developer.apple.com/documentation/SystemConfiguration/kSCPropUsersConsoleUserGID-c.var KSCPropUsersConsoleUserGID string // KSCPropUsersConsoleUserName is the deprecated key Name. // // Deprecated: Deprecated since macOS 10.4. // // See: https://developer.apple.com/documentation/SystemConfiguration/kSCPropUsersConsoleUserName-c.var KSCPropUsersConsoleUserName string // KSCPropUsersConsoleUserUID is the deprecated key UID. // // Deprecated: Deprecated since macOS 10.4. // // See: https://developer.apple.com/documentation/SystemConfiguration/kSCPropUsersConsoleUserUID-c.var KSCPropUsersConsoleUserUID string // KSCPropVersion is the generic key [Version], whose value is of type [CFString]. // // See: https://developer.apple.com/documentation/SystemConfiguration/kSCPropVersion-swift.var KSCPropVersion string // KSCResvInactive is the reserved key __INACTIVE__. // // See: https://developer.apple.com/documentation/SystemConfiguration/kSCResvInactive-swift.var KSCResvInactive string // KSCResvLink is the reserved key __LINK__. // // See: https://developer.apple.com/documentation/SystemConfiguration/kSCResvLink-swift.var KSCResvLink string // KSCValNetAirPortAuthPasswordEncryptionKeychain is the deprecated value Keychain. // // Deprecated: Deprecated since macOS 10.9. // // See: https://developer.apple.com/documentation/SystemConfiguration/kSCValNetAirPortAuthPasswordEncryptionKeychain-c.var KSCValNetAirPortAuthPasswordEncryptionKeychain string // KSCValNetAirPortJoinModeAutomatic is the deprecated value Automatic. // // Deprecated: Deprecated since macOS 10.9. // // See: https://developer.apple.com/documentation/SystemConfiguration/kSCValNetAirPortJoinModeAutomatic-c.var KSCValNetAirPortJoinModeAutomatic string // KSCValNetAirPortJoinModePreferred is the deprecated value Preferred. // // Deprecated: Deprecated since macOS 10.9. // // See: https://developer.apple.com/documentation/SystemConfiguration/kSCValNetAirPortJoinModePreferred-c.var KSCValNetAirPortJoinModePreferred string // KSCValNetAirPortJoinModeRanked is the deprecated value Ranked. // // Deprecated: Deprecated since macOS 10.9. // // See: https://developer.apple.com/documentation/SystemConfiguration/kSCValNetAirPortJoinModeRanked-c.var KSCValNetAirPortJoinModeRanked string // KSCValNetAirPortJoinModeRecent is the deprecated value Recent. // // Deprecated: Deprecated since macOS 10.9. // // See: https://developer.apple.com/documentation/SystemConfiguration/kSCValNetAirPortJoinModeRecent-c.var KSCValNetAirPortJoinModeRecent string // KSCValNetAirPortJoinModeStrongest is the deprecated value Strongest. // // Deprecated: Deprecated since macOS 10.9. // // See: https://developer.apple.com/documentation/SystemConfiguration/kSCValNetAirPortJoinModeStrongest-c.var KSCValNetAirPortJoinModeStrongest string // KSCValNetIPSecAuthenticationMethodCertificate is the constant value Certificate. // // See: https://developer.apple.com/documentation/SystemConfiguration/kSCValNetIPSecAuthenticationMethodCertificate-swift.var KSCValNetIPSecAuthenticationMethodCertificate string // KSCValNetIPSecAuthenticationMethodHybrid is the constant value Hybrid. // // See: https://developer.apple.com/documentation/SystemConfiguration/kSCValNetIPSecAuthenticationMethodHybrid-swift.var KSCValNetIPSecAuthenticationMethodHybrid string // // See: https://developer.apple.com/documentation/SystemConfiguration/kSCValNetIPSecAuthenticationMethodSharedSecret-swift.var KSCValNetIPSecAuthenticationMethodSharedSecret string // KSCValNetIPSecLocalIdentifierTypeKeyID is the constant value KeyID. // // See: https://developer.apple.com/documentation/SystemConfiguration/kSCValNetIPSecLocalIdentifierTypeKeyID-swift.var KSCValNetIPSecLocalIdentifierTypeKeyID string // // See: https://developer.apple.com/documentation/SystemConfiguration/kSCValNetIPSecSharedSecretEncryptionKeychain-swift.var KSCValNetIPSecSharedSecretEncryptionKeychain string // KSCValNetIPSecXAuthPasswordEncryptionKeychain is the constant value Keychain. // // See: https://developer.apple.com/documentation/SystemConfiguration/kSCValNetIPSecXAuthPasswordEncryptionKeychain-swift.var KSCValNetIPSecXAuthPasswordEncryptionKeychain string // KSCValNetIPSecXAuthPasswordEncryptionPrompt is the constant value Prompt. // // See: https://developer.apple.com/documentation/SystemConfiguration/kSCValNetIPSecXAuthPasswordEncryptionPrompt-swift.var KSCValNetIPSecXAuthPasswordEncryptionPrompt string // KSCValNetIPv4ConfigMethodAutomatic is the constant value Automatic. // // See: https://developer.apple.com/documentation/SystemConfiguration/kSCValNetIPv4ConfigMethodAutomatic-swift.var KSCValNetIPv4ConfigMethodAutomatic string // KSCValNetIPv4ConfigMethodBOOTP is the constant value BOOTP. // // See: https://developer.apple.com/documentation/SystemConfiguration/kSCValNetIPv4ConfigMethodBOOTP-swift.var KSCValNetIPv4ConfigMethodBOOTP string // KSCValNetIPv4ConfigMethodDHCP is the constant value DHCP. // // See: https://developer.apple.com/documentation/SystemConfiguration/kSCValNetIPv4ConfigMethodDHCP-swift.var KSCValNetIPv4ConfigMethodDHCP string // KSCValNetIPv4ConfigMethodINFORM is the constant value INFORM. // // See: https://developer.apple.com/documentation/SystemConfiguration/kSCValNetIPv4ConfigMethodINFORM-swift.var KSCValNetIPv4ConfigMethodINFORM string // KSCValNetIPv4ConfigMethodLinkLocal is the constant value LinkLocal. // // See: https://developer.apple.com/documentation/SystemConfiguration/kSCValNetIPv4ConfigMethodLinkLocal-swift.var KSCValNetIPv4ConfigMethodLinkLocal string // KSCValNetIPv4ConfigMethodManual is the constant value Manual. // // See: https://developer.apple.com/documentation/SystemConfiguration/kSCValNetIPv4ConfigMethodManual-swift.var KSCValNetIPv4ConfigMethodManual string // KSCValNetIPv4ConfigMethodPPP is the constant value PPP. // // See: https://developer.apple.com/documentation/SystemConfiguration/kSCValNetIPv4ConfigMethodPPP-swift.var KSCValNetIPv4ConfigMethodPPP string // KSCValNetIPv6ConfigMethod6to4 is the constant value 6to4. // // See: https://developer.apple.com/documentation/SystemConfiguration/kSCValNetIPv6ConfigMethod6to4-swift.var KSCValNetIPv6ConfigMethod6to4 string // KSCValNetIPv6ConfigMethodAutomatic is the constant value Automatic. // // See: https://developer.apple.com/documentation/SystemConfiguration/kSCValNetIPv6ConfigMethodAutomatic-swift.var KSCValNetIPv6ConfigMethodAutomatic string // KSCValNetIPv6ConfigMethodLinkLocal is the constant value LinkLocal. // // See: https://developer.apple.com/documentation/SystemConfiguration/kSCValNetIPv6ConfigMethodLinkLocal-swift.var KSCValNetIPv6ConfigMethodLinkLocal string // KSCValNetIPv6ConfigMethodManual is the constant value Manual. // // See: https://developer.apple.com/documentation/SystemConfiguration/kSCValNetIPv6ConfigMethodManual-swift.var KSCValNetIPv6ConfigMethodManual string // KSCValNetIPv6ConfigMethodRouterAdvertisement is the constant value RouterAdvertisement. // // See: https://developer.apple.com/documentation/SystemConfiguration/kSCValNetIPv6ConfigMethodRouterAdvertisement-swift.var KSCValNetIPv6ConfigMethodRouterAdvertisement string // KSCValNetInterfaceSubTypeL2TP is the constant value L2TP. // // See: https://developer.apple.com/documentation/SystemConfiguration/kSCValNetInterfaceSubTypeL2TP-swift.var KSCValNetInterfaceSubTypeL2TP string // KSCValNetInterfaceSubTypePPPSerial is the constant value PPPSerial. // // See: https://developer.apple.com/documentation/SystemConfiguration/kSCValNetInterfaceSubTypePPPSerial-swift.var KSCValNetInterfaceSubTypePPPSerial string // KSCValNetInterfaceSubTypePPPoE is the constant value PPPoE. // // See: https://developer.apple.com/documentation/SystemConfiguration/kSCValNetInterfaceSubTypePPPoE-swift.var KSCValNetInterfaceSubTypePPPoE string // KSCValNetInterfaceSubTypePPTP is the constant value PPTP. // // Deprecated: Deprecated since macOS 10.12. No longer supported // // See: https://developer.apple.com/documentation/SystemConfiguration/kSCValNetInterfaceSubTypePPTP-swift.var KSCValNetInterfaceSubTypePPTP string // KSCValNetInterfaceType6to4 is the constant value 6to4. // // See: https://developer.apple.com/documentation/SystemConfiguration/kSCValNetInterfaceType6to4-swift.var KSCValNetInterfaceType6to4 string // KSCValNetInterfaceTypeEthernet is the constant value Ethernet. // // See: https://developer.apple.com/documentation/SystemConfiguration/kSCValNetInterfaceTypeEthernet-swift.var KSCValNetInterfaceTypeEthernet string // KSCValNetInterfaceTypeFireWire is the constant value FireWire. // // See: https://developer.apple.com/documentation/SystemConfiguration/kSCValNetInterfaceTypeFireWire-swift.var KSCValNetInterfaceTypeFireWire string // KSCValNetInterfaceTypeIPSec is the constant value IPSec. // // See: https://developer.apple.com/documentation/SystemConfiguration/kSCValNetInterfaceTypeIPSec-swift.var KSCValNetInterfaceTypeIPSec string // KSCValNetInterfaceTypePPP is the constant value PPP. // // See: https://developer.apple.com/documentation/SystemConfiguration/kSCValNetInterfaceTypePPP-swift.var KSCValNetInterfaceTypePPP string // // See: https://developer.apple.com/documentation/SystemConfiguration/kSCValNetL2TPIPSecSharedSecretEncryptionKeychain-swift.var KSCValNetL2TPIPSecSharedSecretEncryptionKeychain string // KSCValNetL2TPTransportIP is the constant value IP. // // See: https://developer.apple.com/documentation/SystemConfiguration/kSCValNetL2TPTransportIP-swift.var KSCValNetL2TPTransportIP string // KSCValNetL2TPTransportIPSec is the constant value IPSec. // // See: https://developer.apple.com/documentation/SystemConfiguration/kSCValNetL2TPTransportIPSec-swift.var KSCValNetL2TPTransportIPSec string // KSCValNetModemDialModeIgnoreDialTone is the constant value IgnoreDialTone. // // See: https://developer.apple.com/documentation/SystemConfiguration/kSCValNetModemDialModeIgnoreDialTone-swift.var KSCValNetModemDialModeIgnoreDialTone string // KSCValNetModemDialModeManual is the constant value Manual. // // See: https://developer.apple.com/documentation/SystemConfiguration/kSCValNetModemDialModeManual-swift.var KSCValNetModemDialModeManual string // KSCValNetModemDialModeWaitForDialTone is the constant value WaitForDialTone. // // See: https://developer.apple.com/documentation/SystemConfiguration/kSCValNetModemDialModeWaitForDialTone-swift.var KSCValNetModemDialModeWaitForDialTone string // KSCValNetPPPAuthPasswordEncryptionKeychain is the constant value Keychain. // // See: https://developer.apple.com/documentation/SystemConfiguration/kSCValNetPPPAuthPasswordEncryptionKeychain-swift.var KSCValNetPPPAuthPasswordEncryptionKeychain string // KSCValNetPPPAuthPasswordEncryptionToken is the constant value Token. // // See: https://developer.apple.com/documentation/SystemConfiguration/kSCValNetPPPAuthPasswordEncryptionToken-swift.var KSCValNetPPPAuthPasswordEncryptionToken string // KSCValNetPPPAuthPromptAfter is the constant value After. // // See: https://developer.apple.com/documentation/SystemConfiguration/kSCValNetPPPAuthPromptAfter-swift.var KSCValNetPPPAuthPromptAfter string // KSCValNetPPPAuthPromptBefore is the constant value Before. // // See: https://developer.apple.com/documentation/SystemConfiguration/kSCValNetPPPAuthPromptBefore-swift.var KSCValNetPPPAuthPromptBefore string // KSCValNetPPPAuthProtocolCHAP is the constant value CHAP. // // See: https://developer.apple.com/documentation/SystemConfiguration/kSCValNetPPPAuthProtocolCHAP-swift.var KSCValNetPPPAuthProtocolCHAP string // KSCValNetPPPAuthProtocolEAP is the constant value EAP. // // See: https://developer.apple.com/documentation/SystemConfiguration/kSCValNetPPPAuthProtocolEAP-swift.var KSCValNetPPPAuthProtocolEAP string // KSCValNetPPPAuthProtocolMSCHAP1 is the constant value MSCHAP1. // // See: https://developer.apple.com/documentation/SystemConfiguration/kSCValNetPPPAuthProtocolMSCHAP1-swift.var KSCValNetPPPAuthProtocolMSCHAP1 string // KSCValNetPPPAuthProtocolMSCHAP2 is the constant value MSCHAP2. // // See: https://developer.apple.com/documentation/SystemConfiguration/kSCValNetPPPAuthProtocolMSCHAP2-swift.var KSCValNetPPPAuthProtocolMSCHAP2 string // KSCValNetPPPAuthProtocolPAP is the constant value PAP. // // See: https://developer.apple.com/documentation/SystemConfiguration/kSCValNetPPPAuthProtocolPAP-swift.var KSCValNetPPPAuthProtocolPAP string // KSCValNetSMBNetBIOSNodeTypeBroadcast is the constant value Broadcast. // // See: https://developer.apple.com/documentation/SystemConfiguration/kSCValNetSMBNetBIOSNodeTypeBroadcast-swift.var KSCValNetSMBNetBIOSNodeTypeBroadcast string // KSCValNetSMBNetBIOSNodeTypeHybrid is the constant value Hybrid. // // See: https://developer.apple.com/documentation/SystemConfiguration/kSCValNetSMBNetBIOSNodeTypeHybrid-swift.var KSCValNetSMBNetBIOSNodeTypeHybrid string // KSCValNetSMBNetBIOSNodeTypeMixed is the constant value Mixed. // // See: https://developer.apple.com/documentation/SystemConfiguration/kSCValNetSMBNetBIOSNodeTypeMixed-swift.var KSCValNetSMBNetBIOSNodeTypeMixed string // KSCValNetSMBNetBIOSNodeTypePeer is the constant value Peer. // // See: https://developer.apple.com/documentation/SystemConfiguration/kSCValNetSMBNetBIOSNodeTypePeer-swift.var KSCValNetSMBNetBIOSNodeTypePeer string )
Functions ¶
func BindFunc ¶
BindFunc binds the SystemConfiguration symbol name into fptr, which must be a pointer to a func variable.
The caller supplies the signature, and nothing checks it. A dylib records no argument count or types for a C symbol, so a wrong signature here is not a type error: it is the wrong number of machine words moved on a live stack, and the failure surfaces somewhere else entirely. Prefer a generated binding, whose signature carries recorded evidence, and reach for this only for a symbol that has none. purego.RegisterFunc panics on a signature it cannot lower; that is recovered and returned, because an escape hatch that takes down the process on a mistyped experiment is not one anybody can experiment with.
func CNCopySupportedInterfaces ¶
func CNCopySupportedInterfaces() corefoundation.CFArrayRef
CNCopySupportedInterfaces returns the names of all network interfaces Captive Network Support is monitoring.
It panics if CNCopySupportedInterfaces is unavailable at run time; use TryCNCopySupportedInterfaces to get an error instead.
See: https://developer.apple.com/documentation/SystemConfiguration/CNCopySupportedInterfaces
func CNMarkPortalOffline ¶
func CNMarkPortalOffline(interfaceName corefoundation.CFStringRef) bool
CNMarkPortalOffline informs Captive Network Support that the device is not authenticated on a captive network.
It panics if CNMarkPortalOffline is unavailable at run time; use TryCNMarkPortalOffline to get an error instead.
See: https://developer.apple.com/documentation/SystemConfiguration/CNMarkPortalOffline
func CNMarkPortalOnline ¶
func CNMarkPortalOnline(interfaceName corefoundation.CFStringRef) bool
CNMarkPortalOnline informs Captive Network Support that the application has successfully authenticated the device to a captive network.
It panics if CNMarkPortalOnline is unavailable at run time; use TryCNMarkPortalOnline to get an error instead.
See: https://developer.apple.com/documentation/SystemConfiguration/CNMarkPortalOnline
func CNSetSupportedSSIDs ¶
func CNSetSupportedSSIDs(ssidArray corefoundation.CFArrayRef) bool
CNSetSupportedSSIDs specifies an updated list of captive network SSIDs that the application performs authentication on.
It panics if CNSetSupportedSSIDs is unavailable at run time; use TryCNSetSupportedSSIDs to get an error instead.
See: https://developer.apple.com/documentation/SystemConfiguration/CNSetSupportedSSIDs
func DHCPClientPreferencesCopyApplicationOptions ¶
func DHCPClientPreferencesCopyApplicationOptions(applicationID corefoundation.CFStringRef, count *int) *uint8
DHCPClientPreferencesCopyApplicationOptions returns the list of options for the specified application ID.
It panics if DHCPClientPreferencesCopyApplicationOptions is unavailable at run time; use TryDHCPClientPreferencesCopyApplicationOptions to get an error instead.
func DHCPClientPreferencesSetApplicationOptions ¶
func DHCPClientPreferencesSetApplicationOptions(applicationID corefoundation.CFStringRef, options []byte, count int) bool
DHCPClientPreferencesSetApplicationOptions updates the DHCP client preferences to include the specified list of options for the specified application ID.
It panics if DHCPClientPreferencesSetApplicationOptions is unavailable at run time; use TryDHCPClientPreferencesSetApplicationOptions to get an error instead.
func DHCPInfoGetLeaseExpirationTime ¶
func DHCPInfoGetLeaseExpirationTime(info corefoundation.CFDictionaryRef) corefoundation.CFDateRef
DHCPInfoGetLeaseExpirationTime returns the lease expiration time data.
It panics if DHCPInfoGetLeaseExpirationTime is unavailable at run time; use TryDHCPInfoGetLeaseExpirationTime to get an error instead.
See: https://developer.apple.com/documentation/SystemConfiguration/DHCPInfoGetLeaseExpirationTime
func DHCPInfoGetLeaseStartTime ¶
func DHCPInfoGetLeaseStartTime(info corefoundation.CFDictionaryRef) corefoundation.CFDateRef
DHCPInfoGetLeaseStartTime returns the lease start time data.
It panics if DHCPInfoGetLeaseStartTime is unavailable at run time; use TryDHCPInfoGetLeaseStartTime to get an error instead.
See: https://developer.apple.com/documentation/SystemConfiguration/DHCPInfoGetLeaseStartTime
func DHCPInfoGetOptionData ¶
func DHCPInfoGetOptionData(info corefoundation.CFDictionaryRef, code uint8) corefoundation.CFDataRef
DHCPInfoGetOptionData returns DHCP option data, if present.
It panics if DHCPInfoGetOptionData is unavailable at run time; use TryDHCPInfoGetOptionData to get an error instead.
See: https://developer.apple.com/documentation/SystemConfiguration/DHCPInfoGetOptionData
func SCBondInterfaceCopyAll ¶
func SCBondInterfaceCopyAll(prefs SCPreferencesRef) corefoundation.CFArrayRef
SCBondInterfaceCopyAll returns all Ethernet bond interfaces on the system.
It panics if SCBondInterfaceCopyAll is unavailable at run time; use TrySCBondInterfaceCopyAll to get an error instead.
See: https://developer.apple.com/documentation/SystemConfiguration/SCBondInterfaceCopyAll(_:)
func SCBondInterfaceCopyAvailableMemberInterfaces ¶
func SCBondInterfaceCopyAvailableMemberInterfaces(prefs SCPreferencesRef) corefoundation.CFArrayRef
SCBondInterfaceCopyAvailableMemberInterfaces returns all network capable devices on the system that can be added to an Ethernet bond interface.
It panics if SCBondInterfaceCopyAvailableMemberInterfaces is unavailable at run time; use TrySCBondInterfaceCopyAvailableMemberInterfaces to get an error instead.
func SCBondInterfaceGetMemberInterfaces ¶
func SCBondInterfaceGetMemberInterfaces(bond SCBondInterfaceRef) corefoundation.CFArrayRef
SCBondInterfaceGetMemberInterfaces returns the member interfaces for the specified Ethernet bond interface.
It panics if SCBondInterfaceGetMemberInterfaces is unavailable at run time; use TrySCBondInterfaceGetMemberInterfaces to get an error instead.
See: https://developer.apple.com/documentation/SystemConfiguration/SCBondInterfaceGetMemberInterfaces(_:)
func SCBondInterfaceGetOptions ¶
func SCBondInterfaceGetOptions(bond SCBondInterfaceRef) corefoundation.CFDictionaryRef
SCBondInterfaceGetOptions returns the configuration settings associated with the specified Ethernet bond interface.
It panics if SCBondInterfaceGetOptions is unavailable at run time; use TrySCBondInterfaceGetOptions to get an error instead.
See: https://developer.apple.com/documentation/SystemConfiguration/SCBondInterfaceGetOptions(_:)
func SCBondInterfaceRemove ¶
func SCBondInterfaceRemove(bond SCBondInterfaceRef) bool
SCBondInterfaceRemove removes the Ethernet bond interface from the configuration.
It panics if SCBondInterfaceRemove is unavailable at run time; use TrySCBondInterfaceRemove to get an error instead.
See: https://developer.apple.com/documentation/SystemConfiguration/SCBondInterfaceRemove(_:)
func SCBondInterfaceSetLocalizedDisplayName ¶
func SCBondInterfaceSetLocalizedDisplayName(bond SCBondInterfaceRef, newName corefoundation.CFStringRef) bool
SCBondInterfaceSetLocalizedDisplayName sets the localized display name for the specified Ethernet bond interface.
It panics if SCBondInterfaceSetLocalizedDisplayName is unavailable at run time; use TrySCBondInterfaceSetLocalizedDisplayName to get an error instead.
func SCBondInterfaceSetMemberInterfaces ¶
func SCBondInterfaceSetMemberInterfaces(bond SCBondInterfaceRef, members corefoundation.CFArrayRef) bool
SCBondInterfaceSetMemberInterfaces sets the member interfaces for the specified Ethernet bond interface.
It panics if SCBondInterfaceSetMemberInterfaces is unavailable at run time; use TrySCBondInterfaceSetMemberInterfaces to get an error instead.
func SCBondInterfaceSetOptions ¶
func SCBondInterfaceSetOptions(bond SCBondInterfaceRef, newOptions corefoundation.CFDictionaryRef) bool
SCBondInterfaceSetOptions sets the configuration settings for the specified Ethernet bond interface.
It panics if SCBondInterfaceSetOptions is unavailable at run time; use TrySCBondInterfaceSetOptions to get an error instead.
See: https://developer.apple.com/documentation/SystemConfiguration/SCBondInterfaceSetOptions(_:_:)
func SCBondStatusGetInterfaceStatus ¶
func SCBondStatusGetInterfaceStatus(bondStatus SCBondStatusRef, interface_ SCNetworkInterfaceRef) corefoundation.CFDictionaryRef
SCBondStatusGetInterfaceStatus returns the status of the specified member interface of an Ethernet bond or the status of the bond as a whole.
It panics if SCBondStatusGetInterfaceStatus is unavailable at run time; use TrySCBondStatusGetInterfaceStatus to get an error instead.
See: https://developer.apple.com/documentation/SystemConfiguration/SCBondStatusGetInterfaceStatus(_:_:)
func SCBondStatusGetMemberInterfaces ¶
func SCBondStatusGetMemberInterfaces(bondStatus SCBondStatusRef) corefoundation.CFArrayRef
SCBondStatusGetMemberInterfaces returns the member interfaces that are represented with the Ethernet bond interface.
It panics if SCBondStatusGetMemberInterfaces is unavailable at run time; use TrySCBondStatusGetMemberInterfaces to get an error instead.
See: https://developer.apple.com/documentation/SystemConfiguration/SCBondStatusGetMemberInterfaces(_:)
func SCBondStatusGetTypeID ¶
func SCBondStatusGetTypeID() uint
SCBondStatusGetTypeID returns the type identifier of all SCBondStatusRef instances.
It panics if SCBondStatusGetTypeID is unavailable at run time; use TrySCBondStatusGetTypeID to get an error instead.
See: https://developer.apple.com/documentation/SystemConfiguration/SCBondStatusGetTypeID()
func SCCopyLastError ¶
func SCCopyLastError() corefoundation.CFErrorRef
SCCopyLastError returns an error or status code associated with the most recent function call.
It panics if SCCopyLastError is unavailable at run time; use TrySCCopyLastError to get an error instead.
See: https://developer.apple.com/documentation/SystemConfiguration/SCCopyLastError()
func SCDynamicStoreAddTemporaryValue ¶
func SCDynamicStoreAddTemporaryValue(store SCDynamicStoreRef, key corefoundation.CFStringRef, value corefoundation.CFPropertyListRef) bool
SCDynamicStoreAddTemporaryValue temporarily adds the specified key-value pair to the dynamic store, if no such key already exists.
It panics if SCDynamicStoreAddTemporaryValue is unavailable at run time; use TrySCDynamicStoreAddTemporaryValue to get an error instead.
func SCDynamicStoreAddValue ¶
func SCDynamicStoreAddValue(store SCDynamicStoreRef, key corefoundation.CFStringRef, value corefoundation.CFPropertyListRef) bool
SCDynamicStoreAddValue adds the specified key-value pair to the dynamic store, if no such key already exists.
It panics if SCDynamicStoreAddValue is unavailable at run time; use TrySCDynamicStoreAddValue to get an error instead.
See: https://developer.apple.com/documentation/SystemConfiguration/SCDynamicStoreAddValue(_:_:_:)
func SCDynamicStoreCopyComputerName ¶
func SCDynamicStoreCopyComputerName(store SCDynamicStoreRef, nameEncoding *uint32) corefoundation.CFStringRef
SCDynamicStoreCopyComputerName returns the current computer name.
It panics if SCDynamicStoreCopyComputerName is unavailable at run time; use TrySCDynamicStoreCopyComputerName to get an error instead.
See: https://developer.apple.com/documentation/SystemConfiguration/SCDynamicStoreCopyComputerName(_:_:)
func SCDynamicStoreCopyConsoleUser ¶
func SCDynamicStoreCopyConsoleUser(store SCDynamicStoreRef, uid *uint32, gid *uint32) corefoundation.CFStringRef
SCDynamicStoreCopyConsoleUser returns information about the user currently logged into the system.
It panics if SCDynamicStoreCopyConsoleUser is unavailable at run time; use TrySCDynamicStoreCopyConsoleUser to get an error instead.
See: https://developer.apple.com/documentation/SystemConfiguration/SCDynamicStoreCopyConsoleUser(_:_:_:)
func SCDynamicStoreCopyDHCPInfo ¶
func SCDynamicStoreCopyDHCPInfo(store SCDynamicStoreRef, serviceID corefoundation.CFStringRef) corefoundation.CFDictionaryRef
SCDynamicStoreCopyDHCPInfo returns the DHCP information for the specified service.
It panics if SCDynamicStoreCopyDHCPInfo is unavailable at run time; use TrySCDynamicStoreCopyDHCPInfo to get an error instead.
See: https://developer.apple.com/documentation/SystemConfiguration/SCDynamicStoreCopyDHCPInfo
func SCDynamicStoreCopyKeyList ¶
func SCDynamicStoreCopyKeyList(store SCDynamicStoreRef, pattern corefoundation.CFStringRef) corefoundation.CFArrayRef
SCDynamicStoreCopyKeyList returns the keys that represent the current dynamic store entries that match the specified pattern.
It panics if SCDynamicStoreCopyKeyList is unavailable at run time; use TrySCDynamicStoreCopyKeyList to get an error instead.
See: https://developer.apple.com/documentation/SystemConfiguration/SCDynamicStoreCopyKeyList(_:_:)
func SCDynamicStoreCopyLocalHostName ¶
func SCDynamicStoreCopyLocalHostName(store SCDynamicStoreRef) corefoundation.CFStringRef
SCDynamicStoreCopyLocalHostName returns the current local host name.
It panics if SCDynamicStoreCopyLocalHostName is unavailable at run time; use TrySCDynamicStoreCopyLocalHostName to get an error instead.
See: https://developer.apple.com/documentation/SystemConfiguration/SCDynamicStoreCopyLocalHostName(_:)
func SCDynamicStoreCopyLocation ¶
func SCDynamicStoreCopyLocation(store SCDynamicStoreRef) corefoundation.CFStringRef
SCDynamicStoreCopyLocation returns the current location identifier.
It panics if SCDynamicStoreCopyLocation is unavailable at run time; use TrySCDynamicStoreCopyLocation to get an error instead.
See: https://developer.apple.com/documentation/SystemConfiguration/SCDynamicStoreCopyLocation(_:)
func SCDynamicStoreCopyMultiple ¶
func SCDynamicStoreCopyMultiple(store SCDynamicStoreRef, keys corefoundation.CFArrayRef, patterns corefoundation.CFArrayRef) corefoundation.CFDictionaryRef
SCDynamicStoreCopyMultiple returns the key-value pairs that match the specified keys and key patterns.
It panics if SCDynamicStoreCopyMultiple is unavailable at run time; use TrySCDynamicStoreCopyMultiple to get an error instead.
See: https://developer.apple.com/documentation/SystemConfiguration/SCDynamicStoreCopyMultiple(_:_:_:)
func SCDynamicStoreCopyNotifiedKeys ¶
func SCDynamicStoreCopyNotifiedKeys(store SCDynamicStoreRef) corefoundation.CFArrayRef
SCDynamicStoreCopyNotifiedKeys returns the keys that have changed since the last call to this function.
It panics if SCDynamicStoreCopyNotifiedKeys is unavailable at run time; use TrySCDynamicStoreCopyNotifiedKeys to get an error instead.
See: https://developer.apple.com/documentation/SystemConfiguration/SCDynamicStoreCopyNotifiedKeys(_:)
func SCDynamicStoreCopyProxies ¶
func SCDynamicStoreCopyProxies(store SCDynamicStoreRef) corefoundation.CFDictionaryRef
SCDynamicStoreCopyProxies returns the key-value pairs that represent the current internet proxy settings.
It panics if SCDynamicStoreCopyProxies is unavailable at run time; use TrySCDynamicStoreCopyProxies to get an error instead.
See: https://developer.apple.com/documentation/SystemConfiguration/SCDynamicStoreCopyProxies(_:)
func SCDynamicStoreCopyValue ¶
func SCDynamicStoreCopyValue(store SCDynamicStoreRef, key corefoundation.CFStringRef) corefoundation.CFPropertyListRef
SCDynamicStoreCopyValue returns the value associated with the specified key.
It panics if SCDynamicStoreCopyValue is unavailable at run time; use TrySCDynamicStoreCopyValue to get an error instead.
See: https://developer.apple.com/documentation/SystemConfiguration/SCDynamicStoreCopyValue(_:_:)
func SCDynamicStoreCreateRunLoopSource ¶
func SCDynamicStoreCreateRunLoopSource(allocator corefoundation.CFAllocatorRef, store SCDynamicStoreRef, order int) corefoundation.CFRunLoopSourceRef
SCDynamicStoreCreateRunLoopSource creates a run loop source object that can be added to the application’s run loop.
It panics if SCDynamicStoreCreateRunLoopSource is unavailable at run time; use TrySCDynamicStoreCreateRunLoopSource to get an error instead.
func SCDynamicStoreGetTypeID ¶
func SCDynamicStoreGetTypeID() uint
SCDynamicStoreGetTypeID returns the type identifier of all [SCDynamicStore] instances.
It panics if SCDynamicStoreGetTypeID is unavailable at run time; use TrySCDynamicStoreGetTypeID to get an error instead.
See: https://developer.apple.com/documentation/SystemConfiguration/SCDynamicStoreGetTypeID()
func SCDynamicStoreKeyCreate ¶
func SCDynamicStoreKeyCreate(allocator corefoundation.CFAllocatorRef, fmt corefoundation.CFStringRef) corefoundation.CFStringRef
SCDynamicStoreKeyCreate creates a dynamic store key using the specified format.
It panics if SCDynamicStoreKeyCreate is unavailable at run time; use TrySCDynamicStoreKeyCreate to get an error instead.
See: https://developer.apple.com/documentation/SystemConfiguration/SCDynamicStoreKeyCreate
func SCDynamicStoreKeyCreateComputerName ¶
func SCDynamicStoreKeyCreateComputerName(allocator corefoundation.CFAllocatorRef) corefoundation.CFStringRef
SCDynamicStoreKeyCreateComputerName creates a key that can be used to receive notifications when the current computer name changes.
It panics if SCDynamicStoreKeyCreateComputerName is unavailable at run time; use TrySCDynamicStoreKeyCreateComputerName to get an error instead.
func SCDynamicStoreKeyCreateConsoleUser ¶
func SCDynamicStoreKeyCreateConsoleUser(allocator corefoundation.CFAllocatorRef) corefoundation.CFStringRef
SCDynamicStoreKeyCreateConsoleUser creates a key that can be used to receive notifications when the current console user changes.
It panics if SCDynamicStoreKeyCreateConsoleUser is unavailable at run time; use TrySCDynamicStoreKeyCreateConsoleUser to get an error instead.
See: https://developer.apple.com/documentation/SystemConfiguration/SCDynamicStoreKeyCreateConsoleUser(_:)
func SCDynamicStoreKeyCreateHostNames ¶
func SCDynamicStoreKeyCreateHostNames(allocator corefoundation.CFAllocatorRef) corefoundation.CFStringRef
SCDynamicStoreKeyCreateHostNames creates a key that can be used to receive notifications when the [HostNames] entity changes.
It panics if SCDynamicStoreKeyCreateHostNames is unavailable at run time; use TrySCDynamicStoreKeyCreateHostNames to get an error instead.
See: https://developer.apple.com/documentation/SystemConfiguration/SCDynamicStoreKeyCreateHostNames(_:)
func SCDynamicStoreKeyCreateLocation ¶
func SCDynamicStoreKeyCreateLocation(allocator corefoundation.CFAllocatorRef) corefoundation.CFStringRef
SCDynamicStoreKeyCreateLocation creates a key that can be used to receive notifications when the location identifier changes.
It panics if SCDynamicStoreKeyCreateLocation is unavailable at run time; use TrySCDynamicStoreKeyCreateLocation to get an error instead.
See: https://developer.apple.com/documentation/SystemConfiguration/SCDynamicStoreKeyCreateLocation(_:)
func SCDynamicStoreKeyCreateNetworkGlobalEntity ¶
func SCDynamicStoreKeyCreateNetworkGlobalEntity(allocator corefoundation.CFAllocatorRef, domain corefoundation.CFStringRef, entity corefoundation.CFStringRef) corefoundation.CFStringRef
SCDynamicStoreKeyCreateNetworkGlobalEntity creates a dynamic store key that can be used to access a specific global (as opposed to a per-service or per-interface) network configuration entity.
It panics if SCDynamicStoreKeyCreateNetworkGlobalEntity is unavailable at run time; use TrySCDynamicStoreKeyCreateNetworkGlobalEntity to get an error instead.
func SCDynamicStoreKeyCreateNetworkInterface ¶
func SCDynamicStoreKeyCreateNetworkInterface(allocator corefoundation.CFAllocatorRef, domain corefoundation.CFStringRef) corefoundation.CFStringRef
SCDynamicStoreKeyCreateNetworkInterface creates a dynamic store key that can be used to access the network interface configuration information in the dynamic store.
It panics if SCDynamicStoreKeyCreateNetworkInterface is unavailable at run time; use TrySCDynamicStoreKeyCreateNetworkInterface to get an error instead.
func SCDynamicStoreKeyCreateNetworkInterfaceEntity ¶
func SCDynamicStoreKeyCreateNetworkInterfaceEntity(allocator corefoundation.CFAllocatorRef, domain corefoundation.CFStringRef, ifname corefoundation.CFStringRef, entity corefoundation.CFStringRef) corefoundation.CFStringRef
SCDynamicStoreKeyCreateNetworkInterfaceEntity creates a dynamic store key that can be used to access the per-interface network configuration information in the dynamic store.
It panics if SCDynamicStoreKeyCreateNetworkInterfaceEntity is unavailable at run time; use TrySCDynamicStoreKeyCreateNetworkInterfaceEntity to get an error instead.
func SCDynamicStoreKeyCreateNetworkServiceEntity ¶
func SCDynamicStoreKeyCreateNetworkServiceEntity(allocator corefoundation.CFAllocatorRef, domain corefoundation.CFStringRef, serviceID corefoundation.CFStringRef, entity corefoundation.CFStringRef) corefoundation.CFStringRef
SCDynamicStoreKeyCreateNetworkServiceEntity creates a dynamic store key that can be used to access the per-service network configuration information.
It panics if SCDynamicStoreKeyCreateNetworkServiceEntity is unavailable at run time; use TrySCDynamicStoreKeyCreateNetworkServiceEntity to get an error instead.
func SCDynamicStoreKeyCreateProxies ¶
func SCDynamicStoreKeyCreateProxies(allocator corefoundation.CFAllocatorRef) corefoundation.CFStringRef
SCDynamicStoreKeyCreateProxies creates a key that can be used to receive notifications when the current network proxy settings are changed.
It panics if SCDynamicStoreKeyCreateProxies is unavailable at run time; use TrySCDynamicStoreKeyCreateProxies to get an error instead.
See: https://developer.apple.com/documentation/SystemConfiguration/SCDynamicStoreKeyCreateProxies(_:)
func SCDynamicStoreNotifyValue ¶
func SCDynamicStoreNotifyValue(store SCDynamicStoreRef, key corefoundation.CFStringRef) bool
SCDynamicStoreNotifyValue causes a notification to be delivered for the specified key in the dynamic store.
It panics if SCDynamicStoreNotifyValue is unavailable at run time; use TrySCDynamicStoreNotifyValue to get an error instead.
See: https://developer.apple.com/documentation/SystemConfiguration/SCDynamicStoreNotifyValue(_:_:)
func SCDynamicStoreRemoveValue ¶
func SCDynamicStoreRemoveValue(store SCDynamicStoreRef, key corefoundation.CFStringRef) bool
SCDynamicStoreRemoveValue removes the value of the specified key from the dynamic store.
It panics if SCDynamicStoreRemoveValue is unavailable at run time; use TrySCDynamicStoreRemoveValue to get an error instead.
See: https://developer.apple.com/documentation/SystemConfiguration/SCDynamicStoreRemoveValue(_:_:)
func SCDynamicStoreSetDispatchQueue ¶
func SCDynamicStoreSetDispatchQueue(store SCDynamicStoreRef, queue dispatch.Queue) bool
SCDynamicStoreSetDispatchQueue initiates notifications for the notification keys, using the specified dispatch queue for the callback.
It panics if SCDynamicStoreSetDispatchQueue is unavailable at run time; use TrySCDynamicStoreSetDispatchQueue to get an error instead.
See: https://developer.apple.com/documentation/SystemConfiguration/SCDynamicStoreSetDispatchQueue(_:_:)
func SCDynamicStoreSetMultiple ¶
func SCDynamicStoreSetMultiple(store SCDynamicStoreRef, keysToSet corefoundation.CFDictionaryRef, keysToRemove corefoundation.CFArrayRef, keysToNotify corefoundation.CFArrayRef) bool
SCDynamicStoreSetMultiple updates multiple values in the dynamic store.
It panics if SCDynamicStoreSetMultiple is unavailable at run time; use TrySCDynamicStoreSetMultiple to get an error instead.
See: https://developer.apple.com/documentation/SystemConfiguration/SCDynamicStoreSetMultiple(_:_:_:_:)
func SCDynamicStoreSetNotificationKeys ¶
func SCDynamicStoreSetNotificationKeys(store SCDynamicStoreRef, keys corefoundation.CFArrayRef, patterns corefoundation.CFArrayRef) bool
SCDynamicStoreSetNotificationKeys specifies a set of keys and key patterns that should be monitored for changes.
It panics if SCDynamicStoreSetNotificationKeys is unavailable at run time; use TrySCDynamicStoreSetNotificationKeys to get an error instead.
func SCDynamicStoreSetValue ¶
func SCDynamicStoreSetValue(store SCDynamicStoreRef, key corefoundation.CFStringRef, value corefoundation.CFPropertyListRef) bool
SCDynamicStoreSetValue adds or replaces a value in the dynamic store for the specified key.
It panics if SCDynamicStoreSetValue is unavailable at run time; use TrySCDynamicStoreSetValue to get an error instead.
See: https://developer.apple.com/documentation/SystemConfiguration/SCDynamicStoreSetValue(_:_:_:)
func SCError ¶
func SCError() int32
SCError returns an error or status code associated with the most recent function call.
It panics if SCError is unavailable at run time; use TrySCError to get an error instead.
See: https://developer.apple.com/documentation/SystemConfiguration/SCError()
func SCErrorString ¶
SCErrorString returns a string describing the specified status code or error code.
It panics if SCErrorString is unavailable at run time; use TrySCErrorString to get an error instead.
See: https://developer.apple.com/documentation/SystemConfiguration/SCErrorString(_:)
func SCNetworkCheckReachabilityByAddress
deprecated
func SCNetworkCheckReachabilityByAddress(address unsafe.Pointer, addrlen uint32, flags *SCNetworkConnectionFlags) bool
SCNetworkCheckReachabilityByAddress determines whether the specified network address is reachable using the current network configuration.
It panics if SCNetworkCheckReachabilityByAddress is unavailable at run time; use TrySCNetworkCheckReachabilityByAddress to get an error instead.
Deprecated: Deprecated since macOS 10.6. See the discussion for a coding alternative.
See: https://developer.apple.com/documentation/SystemConfiguration/SCNetworkCheckReachabilityByAddress
func SCNetworkCheckReachabilityByName
deprecated
func SCNetworkCheckReachabilityByName(nodename string, flags *SCNetworkConnectionFlags) bool
SCNetworkCheckReachabilityByName determines whether the specified network host or node name is reachable using the current network configuration.
It panics if SCNetworkCheckReachabilityByName is unavailable at run time; use TrySCNetworkCheckReachabilityByName to get an error instead.
Deprecated: Deprecated since macOS 10.6. See the discussion for a coding alternative.
See: https://developer.apple.com/documentation/SystemConfiguration/SCNetworkCheckReachabilityByName
func SCNetworkConnectionCopyExtendedStatus ¶
func SCNetworkConnectionCopyExtendedStatus(connection SCNetworkConnectionRef) corefoundation.CFDictionaryRef
SCNetworkConnectionCopyExtendedStatus returns the extended status of the connection.
It panics if SCNetworkConnectionCopyExtendedStatus is unavailable at run time; use TrySCNetworkConnectionCopyExtendedStatus to get an error instead.
func SCNetworkConnectionCopyServiceID ¶
func SCNetworkConnectionCopyServiceID(connection SCNetworkConnectionRef) corefoundation.CFStringRef
SCNetworkConnectionCopyServiceID returns the service ID associated with the specified network connection.
It panics if SCNetworkConnectionCopyServiceID is unavailable at run time; use TrySCNetworkConnectionCopyServiceID to get an error instead.
See: https://developer.apple.com/documentation/SystemConfiguration/SCNetworkConnectionCopyServiceID(_:)
func SCNetworkConnectionCopyStatistics ¶
func SCNetworkConnectionCopyStatistics(connection SCNetworkConnectionRef) corefoundation.CFDictionaryRef
SCNetworkConnectionCopyStatistics returns the statistics of the specified connection.
It panics if SCNetworkConnectionCopyStatistics is unavailable at run time; use TrySCNetworkConnectionCopyStatistics to get an error instead.
See: https://developer.apple.com/documentation/SystemConfiguration/SCNetworkConnectionCopyStatistics(_:)
func SCNetworkConnectionCopyUserOptions ¶
func SCNetworkConnectionCopyUserOptions(connection SCNetworkConnectionRef) corefoundation.CFDictionaryRef
SCNetworkConnectionCopyUserOptions gets the user options used to start the specified connection.
It panics if SCNetworkConnectionCopyUserOptions is unavailable at run time; use TrySCNetworkConnectionCopyUserOptions to get an error instead.
See: https://developer.apple.com/documentation/SystemConfiguration/SCNetworkConnectionCopyUserOptions(_:)
func SCNetworkConnectionCopyUserPreferences ¶
func SCNetworkConnectionCopyUserPreferences(selectionOptions corefoundation.CFDictionaryRef, serviceID *corefoundation.CFStringRef, userOptions *corefoundation.CFDictionaryRef) bool
SCNetworkConnectionCopyUserPreferences provides the default service ID and a dictionary of user options for the specified connection.
It panics if SCNetworkConnectionCopyUserPreferences is unavailable at run time; use TrySCNetworkConnectionCopyUserPreferences to get an error instead.
func SCNetworkConnectionGetTypeID ¶
func SCNetworkConnectionGetTypeID() uint
SCNetworkConnectionGetTypeID returns the type identifier of all [SCNetworkConnection] instances.
It panics if SCNetworkConnectionGetTypeID is unavailable at run time; use TrySCNetworkConnectionGetTypeID to get an error instead.
See: https://developer.apple.com/documentation/SystemConfiguration/SCNetworkConnectionGetTypeID()
func SCNetworkConnectionScheduleWithRunLoop ¶
func SCNetworkConnectionScheduleWithRunLoop(connection SCNetworkConnectionRef, runLoop corefoundation.CFRunLoopRef, runLoopMode corefoundation.CFStringRef) bool
SCNetworkConnectionScheduleWithRunLoop schedules the specified connection with the specified run loop.
It panics if SCNetworkConnectionScheduleWithRunLoop is unavailable at run time; use TrySCNetworkConnectionScheduleWithRunLoop to get an error instead.
func SCNetworkConnectionSetDispatchQueue ¶
func SCNetworkConnectionSetDispatchQueue(connection SCNetworkConnectionRef, queue dispatch.Queue) bool
SCNetworkConnectionSetDispatchQueue specifies a dispatch queue to use for the connection’s callback function and enables notifications.
It panics if SCNetworkConnectionSetDispatchQueue is unavailable at run time; use TrySCNetworkConnectionSetDispatchQueue to get an error instead.
func SCNetworkConnectionStart ¶
func SCNetworkConnectionStart(connection SCNetworkConnectionRef, userOptions corefoundation.CFDictionaryRef, linger bool) bool
SCNetworkConnectionStart starts the connection process for the specified network connection.
It panics if SCNetworkConnectionStart is unavailable at run time; use TrySCNetworkConnectionStart to get an error instead.
See: https://developer.apple.com/documentation/SystemConfiguration/SCNetworkConnectionStart(_:_:_:)
func SCNetworkConnectionStop ¶
func SCNetworkConnectionStop(connection SCNetworkConnectionRef, forceDisconnect bool) bool
SCNetworkConnectionStop stops the connection process for the specified network connection.
It panics if SCNetworkConnectionStop is unavailable at run time; use TrySCNetworkConnectionStop to get an error instead.
See: https://developer.apple.com/documentation/SystemConfiguration/SCNetworkConnectionStop(_:_:)
func SCNetworkConnectionUnscheduleFromRunLoop ¶
func SCNetworkConnectionUnscheduleFromRunLoop(connection SCNetworkConnectionRef, runLoop corefoundation.CFRunLoopRef, runLoopMode corefoundation.CFStringRef) bool
SCNetworkConnectionUnscheduleFromRunLoop unschedules the specified connection from the specified run loop.
It panics if SCNetworkConnectionUnscheduleFromRunLoop is unavailable at run time; use TrySCNetworkConnectionUnscheduleFromRunLoop to get an error instead.
func SCNetworkInterfaceCopyAll ¶
func SCNetworkInterfaceCopyAll() corefoundation.CFArrayRef
SCNetworkInterfaceCopyAll returns all network-capable interfaces on the system.
It panics if SCNetworkInterfaceCopyAll is unavailable at run time; use TrySCNetworkInterfaceCopyAll to get an error instead.
See: https://developer.apple.com/documentation/SystemConfiguration/SCNetworkInterfaceCopyAll()
func SCNetworkInterfaceCopyMTU ¶
func SCNetworkInterfaceCopyMTU(interface_ SCNetworkInterfaceRef, mtu_cur *int32, mtu_min *int32, mtu_max *int32) bool
SCNetworkInterfaceCopyMTU returns the current MTU setting and the range of allowable values for the specified network interface.
It panics if SCNetworkInterfaceCopyMTU is unavailable at run time; use TrySCNetworkInterfaceCopyMTU to get an error instead.
See: https://developer.apple.com/documentation/SystemConfiguration/SCNetworkInterfaceCopyMTU(_:_:_:_:)
func SCNetworkInterfaceCopyMediaOptions ¶
func SCNetworkInterfaceCopyMediaOptions(interface_ SCNetworkInterfaceRef, current *corefoundation.CFDictionaryRef, active *corefoundation.CFDictionaryRef, available *corefoundation.CFArrayRef, filter bool) bool
SCNetworkInterfaceCopyMediaOptions returns information media options for the specified network interface.
It panics if SCNetworkInterfaceCopyMediaOptions is unavailable at run time; use TrySCNetworkInterfaceCopyMediaOptions to get an error instead.
func SCNetworkInterfaceCopyMediaSubTypeOptions ¶
func SCNetworkInterfaceCopyMediaSubTypeOptions(available corefoundation.CFArrayRef, subType corefoundation.CFStringRef) corefoundation.CFArrayRef
SCNetworkInterfaceCopyMediaSubTypeOptions returns a list of available media options for the specified interface configuration options and subtype.
It panics if SCNetworkInterfaceCopyMediaSubTypeOptions is unavailable at run time; use TrySCNetworkInterfaceCopyMediaSubTypeOptions to get an error instead.
func SCNetworkInterfaceCopyMediaSubTypes ¶
func SCNetworkInterfaceCopyMediaSubTypes(available corefoundation.CFArrayRef) corefoundation.CFArrayRef
SCNetworkInterfaceCopyMediaSubTypes returns a list of available media subtypes for the specified interface configuration options.
It panics if SCNetworkInterfaceCopyMediaSubTypes is unavailable at run time; use TrySCNetworkInterfaceCopyMediaSubTypes to get an error instead.
func SCNetworkInterfaceForceConfigurationRefresh ¶
func SCNetworkInterfaceForceConfigurationRefresh(interface_ SCNetworkInterfaceRef) bool
SCNetworkInterfaceForceConfigurationRefresh sends a notification to interested network configuration agents to immediately retry their configuration.
It panics if SCNetworkInterfaceForceConfigurationRefresh is unavailable at run time; use TrySCNetworkInterfaceForceConfigurationRefresh to get an error instead.
func SCNetworkInterfaceGetBSDName ¶
func SCNetworkInterfaceGetBSDName(interface_ SCNetworkInterfaceRef) corefoundation.CFStringRef
SCNetworkInterfaceGetBSDName returns the BSD interface or device name for the specified interface.
It panics if SCNetworkInterfaceGetBSDName is unavailable at run time; use TrySCNetworkInterfaceGetBSDName to get an error instead.
See: https://developer.apple.com/documentation/SystemConfiguration/SCNetworkInterfaceGetBSDName(_:)
func SCNetworkInterfaceGetConfiguration ¶
func SCNetworkInterfaceGetConfiguration(interface_ SCNetworkInterfaceRef) corefoundation.CFDictionaryRef
SCNetworkInterfaceGetConfiguration returns the configuration settings associated with the specified interface.
It panics if SCNetworkInterfaceGetConfiguration is unavailable at run time; use TrySCNetworkInterfaceGetConfiguration to get an error instead.
See: https://developer.apple.com/documentation/SystemConfiguration/SCNetworkInterfaceGetConfiguration(_:)
func SCNetworkInterfaceGetExtendedConfiguration ¶
func SCNetworkInterfaceGetExtendedConfiguration(interface_ SCNetworkInterfaceRef, extendedType corefoundation.CFStringRef) corefoundation.CFDictionaryRef
SCNetworkInterfaceGetExtendedConfiguration returns the extended configuration settings associated with the specified interface.
It panics if SCNetworkInterfaceGetExtendedConfiguration is unavailable at run time; use TrySCNetworkInterfaceGetExtendedConfiguration to get an error instead.
func SCNetworkInterfaceGetHardwareAddressString ¶
func SCNetworkInterfaceGetHardwareAddressString(interface_ SCNetworkInterfaceRef) corefoundation.CFStringRef
SCNetworkInterfaceGetHardwareAddressString returns a displayable link layer address for the specified interface.
It panics if SCNetworkInterfaceGetHardwareAddressString is unavailable at run time; use TrySCNetworkInterfaceGetHardwareAddressString to get an error instead.
func SCNetworkInterfaceGetInterfaceType ¶
func SCNetworkInterfaceGetInterfaceType(interface_ SCNetworkInterfaceRef) corefoundation.CFStringRef
SCNetworkInterfaceGetInterfaceType returns the network interface type of the specified interface.
It panics if SCNetworkInterfaceGetInterfaceType is unavailable at run time; use TrySCNetworkInterfaceGetInterfaceType to get an error instead.
See: https://developer.apple.com/documentation/SystemConfiguration/SCNetworkInterfaceGetInterfaceType(_:)
func SCNetworkInterfaceGetLocalizedDisplayName ¶
func SCNetworkInterfaceGetLocalizedDisplayName(interface_ SCNetworkInterfaceRef) corefoundation.CFStringRef
SCNetworkInterfaceGetLocalizedDisplayName returns the localized display name, such as “Ethernet” or “FireWire”, for the specified interface.
It panics if SCNetworkInterfaceGetLocalizedDisplayName is unavailable at run time; use TrySCNetworkInterfaceGetLocalizedDisplayName to get an error instead.
func SCNetworkInterfaceGetSupportedInterfaceTypes ¶
func SCNetworkInterfaceGetSupportedInterfaceTypes(interface_ SCNetworkInterfaceRef) corefoundation.CFArrayRef
SCNetworkInterfaceGetSupportedInterfaceTypes identifies all of the network interface types, such as PPP, that can be layered on top of the specified interface.
It panics if SCNetworkInterfaceGetSupportedInterfaceTypes is unavailable at run time; use TrySCNetworkInterfaceGetSupportedInterfaceTypes to get an error instead.
func SCNetworkInterfaceGetSupportedProtocolTypes ¶
func SCNetworkInterfaceGetSupportedProtocolTypes(interface_ SCNetworkInterfaceRef) corefoundation.CFArrayRef
SCNetworkInterfaceGetSupportedProtocolTypes identifies all of the network protocol types, such as IPv4 and IPv6, that can be layered on top of the specified interface.
It panics if SCNetworkInterfaceGetSupportedProtocolTypes is unavailable at run time; use TrySCNetworkInterfaceGetSupportedProtocolTypes to get an error instead.
func SCNetworkInterfaceGetTypeID ¶
func SCNetworkInterfaceGetTypeID() uint
SCNetworkInterfaceGetTypeID returns the type identifier of all [SCNetworkInterface] instances.
It panics if SCNetworkInterfaceGetTypeID is unavailable at run time; use TrySCNetworkInterfaceGetTypeID to get an error instead.
See: https://developer.apple.com/documentation/SystemConfiguration/SCNetworkInterfaceGetTypeID()
func SCNetworkInterfaceRefreshConfiguration
deprecated
func SCNetworkInterfaceRefreshConfiguration(ifName corefoundation.CFStringRef) bool
SCNetworkInterfaceRefreshConfiguration sends a notification to interested configuration agents to have them immediately retry their configuration over a particular network interface.
It panics if SCNetworkInterfaceRefreshConfiguration is unavailable at run time; use TrySCNetworkInterfaceRefreshConfiguration to get an error instead.
Deprecated: Deprecated since macOS 10.5. Use the [SCNetworkInterfaceForceConfigurationRefresh(_:)](<https://developer.apple.com/documentation/SystemConfiguration/SCNetworkInterfaceForceConfigurationRefresh(_:)>) function instead.
See: https://developer.apple.com/documentation/SystemConfiguration/SCNetworkInterfaceRefreshConfiguration
func SCNetworkInterfaceSetConfiguration ¶
func SCNetworkInterfaceSetConfiguration(interface_ SCNetworkInterfaceRef, config corefoundation.CFDictionaryRef) bool
SCNetworkInterfaceSetConfiguration stores the configuration settings for the specified interface.
It panics if SCNetworkInterfaceSetConfiguration is unavailable at run time; use TrySCNetworkInterfaceSetConfiguration to get an error instead.
func SCNetworkInterfaceSetExtendedConfiguration ¶
func SCNetworkInterfaceSetExtendedConfiguration(interface_ SCNetworkInterfaceRef, extendedType corefoundation.CFStringRef, config corefoundation.CFDictionaryRef) bool
SCNetworkInterfaceSetExtendedConfiguration stores the extended configuration settings for the specified interface.
It panics if SCNetworkInterfaceSetExtendedConfiguration is unavailable at run time; use TrySCNetworkInterfaceSetExtendedConfiguration to get an error instead.
func SCNetworkInterfaceSetMTU ¶
func SCNetworkInterfaceSetMTU(interface_ SCNetworkInterfaceRef, mtu int32) bool
SCNetworkInterfaceSetMTU sets the requested MTU setting for the specified network interface.
It panics if SCNetworkInterfaceSetMTU is unavailable at run time; use TrySCNetworkInterfaceSetMTU to get an error instead.
See: https://developer.apple.com/documentation/SystemConfiguration/SCNetworkInterfaceSetMTU(_:_:)
func SCNetworkInterfaceSetMediaOptions ¶
func SCNetworkInterfaceSetMediaOptions(interface_ SCNetworkInterfaceRef, subtype corefoundation.CFStringRef, options corefoundation.CFArrayRef) bool
SCNetworkInterfaceSetMediaOptions sets the requested media subtype and options for the specified network interface.
It panics if SCNetworkInterfaceSetMediaOptions is unavailable at run time; use TrySCNetworkInterfaceSetMediaOptions to get an error instead.
func SCNetworkProtocolGetConfiguration ¶
func SCNetworkProtocolGetConfiguration(protocol_ SCNetworkProtocolRef) corefoundation.CFDictionaryRef
SCNetworkProtocolGetConfiguration returns the configuration settings associated with the specified protocol.
It panics if SCNetworkProtocolGetConfiguration is unavailable at run time; use TrySCNetworkProtocolGetConfiguration to get an error instead.
See: https://developer.apple.com/documentation/SystemConfiguration/SCNetworkProtocolGetConfiguration(_:)
func SCNetworkProtocolGetEnabled ¶
func SCNetworkProtocolGetEnabled(protocol_ SCNetworkProtocolRef) bool
SCNetworkProtocolGetEnabled returns a Boolean value indicating whether the specified protocol is enabled.
It panics if SCNetworkProtocolGetEnabled is unavailable at run time; use TrySCNetworkProtocolGetEnabled to get an error instead.
See: https://developer.apple.com/documentation/SystemConfiguration/SCNetworkProtocolGetEnabled(_:)
func SCNetworkProtocolGetProtocolType ¶
func SCNetworkProtocolGetProtocolType(protocol_ SCNetworkProtocolRef) corefoundation.CFStringRef
SCNetworkProtocolGetProtocolType returns the type of the specified network protocol.
It panics if SCNetworkProtocolGetProtocolType is unavailable at run time; use TrySCNetworkProtocolGetProtocolType to get an error instead.
See: https://developer.apple.com/documentation/SystemConfiguration/SCNetworkProtocolGetProtocolType(_:)
func SCNetworkProtocolGetTypeID ¶
func SCNetworkProtocolGetTypeID() uint
SCNetworkProtocolGetTypeID returns the type identifier of all [SCNetworkProtocol] instances.
It panics if SCNetworkProtocolGetTypeID is unavailable at run time; use TrySCNetworkProtocolGetTypeID to get an error instead.
See: https://developer.apple.com/documentation/SystemConfiguration/SCNetworkProtocolGetTypeID()
func SCNetworkProtocolSetConfiguration ¶
func SCNetworkProtocolSetConfiguration(protocol_ SCNetworkProtocolRef, config corefoundation.CFDictionaryRef) bool
SCNetworkProtocolSetConfiguration stores the configuration settings for the specified network protocol.
It panics if SCNetworkProtocolSetConfiguration is unavailable at run time; use TrySCNetworkProtocolSetConfiguration to get an error instead.
func SCNetworkProtocolSetEnabled ¶
func SCNetworkProtocolSetEnabled(protocol_ SCNetworkProtocolRef, enabled bool) bool
SCNetworkProtocolSetEnabled enables or disables the specified protocol.
It panics if SCNetworkProtocolSetEnabled is unavailable at run time; use TrySCNetworkProtocolSetEnabled to get an error instead.
See: https://developer.apple.com/documentation/SystemConfiguration/SCNetworkProtocolSetEnabled(_:_:)
func SCNetworkReachabilityGetFlags
deprecated
func SCNetworkReachabilityGetFlags(target SCNetworkReachabilityRef, flags *SCNetworkReachabilityFlags) bool
SCNetworkReachabilityGetFlags determines if the specified network target is reachable using the current network configuration.
It panics if SCNetworkReachabilityGetFlags is unavailable at run time; use TrySCNetworkReachabilityGetFlags to get an error instead.
Deprecated: Deprecated since macOS 14.4.
See: https://developer.apple.com/documentation/SystemConfiguration/SCNetworkReachabilityGetFlags(_:_:)
func SCNetworkReachabilityGetTypeID
deprecated
func SCNetworkReachabilityGetTypeID() uint
SCNetworkReachabilityGetTypeID returns the type identifier of all [SCNetworkReachability] instances.
It panics if SCNetworkReachabilityGetTypeID is unavailable at run time; use TrySCNetworkReachabilityGetTypeID to get an error instead.
Deprecated: Deprecated since macOS 14.4.
See: https://developer.apple.com/documentation/SystemConfiguration/SCNetworkReachabilityGetTypeID()
func SCNetworkReachabilityScheduleWithRunLoop
deprecated
func SCNetworkReachabilityScheduleWithRunLoop(target SCNetworkReachabilityRef, runLoop corefoundation.CFRunLoopRef, runLoopMode corefoundation.CFStringRef) bool
SCNetworkReachabilityScheduleWithRunLoop schedules the specified network target with the specified run loop and mode.
It panics if SCNetworkReachabilityScheduleWithRunLoop is unavailable at run time; use TrySCNetworkReachabilityScheduleWithRunLoop to get an error instead.
Deprecated: Deprecated since macOS 14.4.
func SCNetworkReachabilitySetCallback
deprecated
func SCNetworkReachabilitySetCallback(target SCNetworkReachabilityRef, callout SCNetworkReachabilityCallBack, context *SCNetworkReachabilityContext) bool
SCNetworkReachabilitySetCallback assigns a client to the specified target, which receives callbacks when the reachability of the target changes.
It panics if SCNetworkReachabilitySetCallback is unavailable at run time; use TrySCNetworkReachabilitySetCallback to get an error instead.
Deprecated: Deprecated since macOS 14.4.
func SCNetworkReachabilitySetDispatchQueue
deprecated
func SCNetworkReachabilitySetDispatchQueue(target SCNetworkReachabilityRef, queue dispatch.Queue) bool
SCNetworkReachabilitySetDispatchQueue schedules callbacks for the specified target on the specified dispatch queue.
It panics if SCNetworkReachabilitySetDispatchQueue is unavailable at run time; use TrySCNetworkReachabilitySetDispatchQueue to get an error instead.
Deprecated: Deprecated since macOS 14.4.
func SCNetworkReachabilityUnscheduleFromRunLoop
deprecated
func SCNetworkReachabilityUnscheduleFromRunLoop(target SCNetworkReachabilityRef, runLoop corefoundation.CFRunLoopRef, runLoopMode corefoundation.CFStringRef) bool
SCNetworkReachabilityUnscheduleFromRunLoop unschedules the specified target from the specified run loop and mode.
It panics if SCNetworkReachabilityUnscheduleFromRunLoop is unavailable at run time; use TrySCNetworkReachabilityUnscheduleFromRunLoop to get an error instead.
Deprecated: Deprecated since macOS 14.4.
func SCNetworkServiceAddProtocolType ¶
func SCNetworkServiceAddProtocolType(service SCNetworkServiceRef, protocolType corefoundation.CFStringRef) bool
SCNetworkServiceAddProtocolType adds the network protocol of the specified type to the specified service.
It panics if SCNetworkServiceAddProtocolType is unavailable at run time; use TrySCNetworkServiceAddProtocolType to get an error instead.
See: https://developer.apple.com/documentation/SystemConfiguration/SCNetworkServiceAddProtocolType(_:_:)
func SCNetworkServiceCopyAll ¶
func SCNetworkServiceCopyAll(prefs SCPreferencesRef) corefoundation.CFArrayRef
SCNetworkServiceCopyAll returns all available network services for the specified preferences.
It panics if SCNetworkServiceCopyAll is unavailable at run time; use TrySCNetworkServiceCopyAll to get an error instead.
See: https://developer.apple.com/documentation/SystemConfiguration/SCNetworkServiceCopyAll(_:)
func SCNetworkServiceCopyProtocols ¶
func SCNetworkServiceCopyProtocols(service SCNetworkServiceRef) corefoundation.CFArrayRef
SCNetworkServiceCopyProtocols returns all network protocols associated with the specified service.
It panics if SCNetworkServiceCopyProtocols is unavailable at run time; use TrySCNetworkServiceCopyProtocols to get an error instead.
See: https://developer.apple.com/documentation/SystemConfiguration/SCNetworkServiceCopyProtocols(_:)
func SCNetworkServiceEstablishDefaultConfiguration ¶
func SCNetworkServiceEstablishDefaultConfiguration(service SCNetworkServiceRef) bool
SCNetworkServiceEstablishDefaultConfiguration establishes the default configuration for the specified network service.
It panics if SCNetworkServiceEstablishDefaultConfiguration is unavailable at run time; use TrySCNetworkServiceEstablishDefaultConfiguration to get an error instead.
func SCNetworkServiceGetEnabled ¶
func SCNetworkServiceGetEnabled(service SCNetworkServiceRef) bool
SCNetworkServiceGetEnabled returns a Boolean value indicating whether the specified service is enabled.
It panics if SCNetworkServiceGetEnabled is unavailable at run time; use TrySCNetworkServiceGetEnabled to get an error instead.
See: https://developer.apple.com/documentation/SystemConfiguration/SCNetworkServiceGetEnabled(_:)
func SCNetworkServiceGetName ¶
func SCNetworkServiceGetName(service SCNetworkServiceRef) corefoundation.CFStringRef
SCNetworkServiceGetName returns the user-specified name associated with the specified service.
It panics if SCNetworkServiceGetName is unavailable at run time; use TrySCNetworkServiceGetName to get an error instead.
See: https://developer.apple.com/documentation/SystemConfiguration/SCNetworkServiceGetName(_:)
func SCNetworkServiceGetServiceID ¶
func SCNetworkServiceGetServiceID(service SCNetworkServiceRef) corefoundation.CFStringRef
SCNetworkServiceGetServiceID returns the identifier for the specified service.
It panics if SCNetworkServiceGetServiceID is unavailable at run time; use TrySCNetworkServiceGetServiceID to get an error instead.
See: https://developer.apple.com/documentation/SystemConfiguration/SCNetworkServiceGetServiceID(_:)
func SCNetworkServiceGetTypeID ¶
func SCNetworkServiceGetTypeID() uint
SCNetworkServiceGetTypeID returns the type identifier of all [SCNetworkService] instances.
It panics if SCNetworkServiceGetTypeID is unavailable at run time; use TrySCNetworkServiceGetTypeID to get an error instead.
See: https://developer.apple.com/documentation/SystemConfiguration/SCNetworkServiceGetTypeID()
func SCNetworkServiceRemove ¶
func SCNetworkServiceRemove(service SCNetworkServiceRef) bool
SCNetworkServiceRemove removes the specified network service from the configuration.
It panics if SCNetworkServiceRemove is unavailable at run time; use TrySCNetworkServiceRemove to get an error instead.
See: https://developer.apple.com/documentation/SystemConfiguration/SCNetworkServiceRemove(_:)
func SCNetworkServiceRemoveProtocolType ¶
func SCNetworkServiceRemoveProtocolType(service SCNetworkServiceRef, protocolType corefoundation.CFStringRef) bool
SCNetworkServiceRemoveProtocolType removes the network protocol of the specified type from the specified service.
It panics if SCNetworkServiceRemoveProtocolType is unavailable at run time; use TrySCNetworkServiceRemoveProtocolType to get an error instead.
func SCNetworkServiceSetEnabled ¶
func SCNetworkServiceSetEnabled(service SCNetworkServiceRef, enabled bool) bool
SCNetworkServiceSetEnabled enables or disables the specified service.
It panics if SCNetworkServiceSetEnabled is unavailable at run time; use TrySCNetworkServiceSetEnabled to get an error instead.
See: https://developer.apple.com/documentation/SystemConfiguration/SCNetworkServiceSetEnabled(_:_:)
func SCNetworkServiceSetName ¶
func SCNetworkServiceSetName(service SCNetworkServiceRef, name corefoundation.CFStringRef) bool
SCNetworkServiceSetName stores the user-specified name for the specified service.
It panics if SCNetworkServiceSetName is unavailable at run time; use TrySCNetworkServiceSetName to get an error instead.
See: https://developer.apple.com/documentation/SystemConfiguration/SCNetworkServiceSetName(_:_:)
func SCNetworkSetAddService ¶
func SCNetworkSetAddService(set SCNetworkSetRef, service SCNetworkServiceRef) bool
SCNetworkSetAddService adds the specified network service to the specified set.
It panics if SCNetworkSetAddService is unavailable at run time; use TrySCNetworkSetAddService to get an error instead.
See: https://developer.apple.com/documentation/SystemConfiguration/SCNetworkSetAddService(_:_:)
func SCNetworkSetContainsInterface ¶
func SCNetworkSetContainsInterface(set SCNetworkSetRef, interface_ SCNetworkInterfaceRef) bool
SCNetworkSetContainsInterface returns a Boolean value indicating whether the specified interface is represented by at least one network service in the specified set.
It panics if SCNetworkSetContainsInterface is unavailable at run time; use TrySCNetworkSetContainsInterface to get an error instead.
See: https://developer.apple.com/documentation/SystemConfiguration/SCNetworkSetContainsInterface(_:_:)
func SCNetworkSetCopyAll ¶
func SCNetworkSetCopyAll(prefs SCPreferencesRef) corefoundation.CFArrayRef
SCNetworkSetCopyAll returns all available sets for the specified preferences session.
It panics if SCNetworkSetCopyAll is unavailable at run time; use TrySCNetworkSetCopyAll to get an error instead.
See: https://developer.apple.com/documentation/SystemConfiguration/SCNetworkSetCopyAll(_:)
func SCNetworkSetCopyServices ¶
func SCNetworkSetCopyServices(set SCNetworkSetRef) corefoundation.CFArrayRef
SCNetworkSetCopyServices returns all network services associated with the specified set.
It panics if SCNetworkSetCopyServices is unavailable at run time; use TrySCNetworkSetCopyServices to get an error instead.
See: https://developer.apple.com/documentation/SystemConfiguration/SCNetworkSetCopyServices(_:)
func SCNetworkSetGetName ¶
func SCNetworkSetGetName(set SCNetworkSetRef) corefoundation.CFStringRef
SCNetworkSetGetName returns the user-specified name associated with the specified set.
It panics if SCNetworkSetGetName is unavailable at run time; use TrySCNetworkSetGetName to get an error instead.
See: https://developer.apple.com/documentation/SystemConfiguration/SCNetworkSetGetName(_:)
func SCNetworkSetGetServiceOrder ¶
func SCNetworkSetGetServiceOrder(set SCNetworkSetRef) corefoundation.CFArrayRef
SCNetworkSetGetServiceOrder returns the user-specified ordering of network services within the specified set.
It panics if SCNetworkSetGetServiceOrder is unavailable at run time; use TrySCNetworkSetGetServiceOrder to get an error instead.
See: https://developer.apple.com/documentation/SystemConfiguration/SCNetworkSetGetServiceOrder(_:)
func SCNetworkSetGetSetID ¶
func SCNetworkSetGetSetID(set SCNetworkSetRef) corefoundation.CFStringRef
SCNetworkSetGetSetID returns the identifier for the specified set.
It panics if SCNetworkSetGetSetID is unavailable at run time; use TrySCNetworkSetGetSetID to get an error instead.
See: https://developer.apple.com/documentation/SystemConfiguration/SCNetworkSetGetSetID(_:)
func SCNetworkSetGetTypeID ¶
func SCNetworkSetGetTypeID() uint
SCNetworkSetGetTypeID returns the type identifier of all [SCNetworkSet] instances.
It panics if SCNetworkSetGetTypeID is unavailable at run time; use TrySCNetworkSetGetTypeID to get an error instead.
See: https://developer.apple.com/documentation/SystemConfiguration/SCNetworkSetGetTypeID()
func SCNetworkSetRemove ¶
func SCNetworkSetRemove(set SCNetworkSetRef) bool
SCNetworkSetRemove removes the specified set from the configuration.
It panics if SCNetworkSetRemove is unavailable at run time; use TrySCNetworkSetRemove to get an error instead.
See: https://developer.apple.com/documentation/SystemConfiguration/SCNetworkSetRemove(_:)
func SCNetworkSetRemoveService ¶
func SCNetworkSetRemoveService(set SCNetworkSetRef, service SCNetworkServiceRef) bool
SCNetworkSetRemoveService removes the specified network service from the specified set.
It panics if SCNetworkSetRemoveService is unavailable at run time; use TrySCNetworkSetRemoveService to get an error instead.
See: https://developer.apple.com/documentation/SystemConfiguration/SCNetworkSetRemoveService(_:_:)
func SCNetworkSetSetCurrent ¶
func SCNetworkSetSetCurrent(set SCNetworkSetRef) bool
SCNetworkSetSetCurrent specifies the set that should be the current set.
It panics if SCNetworkSetSetCurrent is unavailable at run time; use TrySCNetworkSetSetCurrent to get an error instead.
See: https://developer.apple.com/documentation/SystemConfiguration/SCNetworkSetSetCurrent(_:)
func SCNetworkSetSetName ¶
func SCNetworkSetSetName(set SCNetworkSetRef, name corefoundation.CFStringRef) bool
SCNetworkSetSetName stores the user-specified name for the specified set.
It panics if SCNetworkSetSetName is unavailable at run time; use TrySCNetworkSetSetName to get an error instead.
See: https://developer.apple.com/documentation/SystemConfiguration/SCNetworkSetSetName(_:_:)
func SCNetworkSetSetServiceOrder ¶
func SCNetworkSetSetServiceOrder(set SCNetworkSetRef, newOrder corefoundation.CFArrayRef) bool
SCNetworkSetSetServiceOrder stores the user-specified ordering of network services for the specified set.
It panics if SCNetworkSetSetServiceOrder is unavailable at run time; use TrySCNetworkSetSetServiceOrder to get an error instead.
See: https://developer.apple.com/documentation/SystemConfiguration/SCNetworkSetSetServiceOrder(_:_:)
func SCPreferencesAddValue ¶
func SCPreferencesAddValue(prefs SCPreferencesRef, key corefoundation.CFStringRef, value corefoundation.CFPropertyListRef) bool
SCPreferencesAddValue associates the specified value with the specified preference key.
It panics if SCPreferencesAddValue is unavailable at run time; use TrySCPreferencesAddValue to get an error instead.
See: https://developer.apple.com/documentation/SystemConfiguration/SCPreferencesAddValue(_:_:_:)
func SCPreferencesApplyChanges ¶
func SCPreferencesApplyChanges(prefs SCPreferencesRef) bool
SCPreferencesApplyChanges requests that the currently stored configuration preferences be applied to the active configuration.
It panics if SCPreferencesApplyChanges is unavailable at run time; use TrySCPreferencesApplyChanges to get an error instead.
See: https://developer.apple.com/documentation/SystemConfiguration/SCPreferencesApplyChanges(_:)
func SCPreferencesCommitChanges ¶
func SCPreferencesCommitChanges(prefs SCPreferencesRef) bool
SCPreferencesCommitChanges commits changes made to the configuration preferences to persistent storage.
It panics if SCPreferencesCommitChanges is unavailable at run time; use TrySCPreferencesCommitChanges to get an error instead.
See: https://developer.apple.com/documentation/SystemConfiguration/SCPreferencesCommitChanges(_:)
func SCPreferencesCopyKeyList ¶
func SCPreferencesCopyKeyList(prefs SCPreferencesRef) corefoundation.CFArrayRef
SCPreferencesCopyKeyList returns the currently defined preference keys.
It panics if SCPreferencesCopyKeyList is unavailable at run time; use TrySCPreferencesCopyKeyList to get an error instead.
See: https://developer.apple.com/documentation/SystemConfiguration/SCPreferencesCopyKeyList(_:)
func SCPreferencesGetSignature ¶
func SCPreferencesGetSignature(prefs SCPreferencesRef) corefoundation.CFDataRef
SCPreferencesGetSignature returns a value that can be used to determine if the saved configuration preferences have changed.
It panics if SCPreferencesGetSignature is unavailable at run time; use TrySCPreferencesGetSignature to get an error instead.
See: https://developer.apple.com/documentation/SystemConfiguration/SCPreferencesGetSignature(_:)
func SCPreferencesGetTypeID ¶
func SCPreferencesGetTypeID() uint
SCPreferencesGetTypeID returns the type identifier of all [SCPreferences] instances.
It panics if SCPreferencesGetTypeID is unavailable at run time; use TrySCPreferencesGetTypeID to get an error instead.
See: https://developer.apple.com/documentation/SystemConfiguration/SCPreferencesGetTypeID()
func SCPreferencesGetValue ¶
func SCPreferencesGetValue(prefs SCPreferencesRef, key corefoundation.CFStringRef) corefoundation.CFPropertyListRef
SCPreferencesGetValue retrieves the value associated with the specified preference key.
It panics if SCPreferencesGetValue is unavailable at run time; use TrySCPreferencesGetValue to get an error instead.
See: https://developer.apple.com/documentation/SystemConfiguration/SCPreferencesGetValue(_:_:)
func SCPreferencesLock ¶
func SCPreferencesLock(prefs SCPreferencesRef, wait bool) bool
SCPreferencesLock locks access to the configuration preferences.
It panics if SCPreferencesLock is unavailable at run time; use TrySCPreferencesLock to get an error instead.
See: https://developer.apple.com/documentation/SystemConfiguration/SCPreferencesLock(_:_:)
func SCPreferencesPathCreateUniqueChild ¶
func SCPreferencesPathCreateUniqueChild(prefs SCPreferencesRef, prefix corefoundation.CFStringRef) corefoundation.CFStringRef
SCPreferencesPathCreateUniqueChild creates a new path component rooted at the specified path in the dictionary hierarchy.
It panics if SCPreferencesPathCreateUniqueChild is unavailable at run time; use TrySCPreferencesPathCreateUniqueChild to get an error instead.
func SCPreferencesPathGetLink ¶
func SCPreferencesPathGetLink(prefs SCPreferencesRef, path corefoundation.CFStringRef) corefoundation.CFStringRef
SCPreferencesPathGetLink returns the link associated with the specified path.
It panics if SCPreferencesPathGetLink is unavailable at run time; use TrySCPreferencesPathGetLink to get an error instead.
See: https://developer.apple.com/documentation/SystemConfiguration/SCPreferencesPathGetLink(_:_:)
func SCPreferencesPathGetValue ¶
func SCPreferencesPathGetValue(prefs SCPreferencesRef, path corefoundation.CFStringRef) corefoundation.CFDictionaryRef
SCPreferencesPathGetValue returns the dictionary associated with the specified path.
It panics if SCPreferencesPathGetValue is unavailable at run time; use TrySCPreferencesPathGetValue to get an error instead.
See: https://developer.apple.com/documentation/SystemConfiguration/SCPreferencesPathGetValue(_:_:)
func SCPreferencesPathRemoveValue ¶
func SCPreferencesPathRemoveValue(prefs SCPreferencesRef, path corefoundation.CFStringRef) bool
SCPreferencesPathRemoveValue removes the data associated with the specified path.
It panics if SCPreferencesPathRemoveValue is unavailable at run time; use TrySCPreferencesPathRemoveValue to get an error instead.
See: https://developer.apple.com/documentation/SystemConfiguration/SCPreferencesPathRemoveValue(_:_:)
func SCPreferencesPathSetLink ¶
func SCPreferencesPathSetLink(prefs SCPreferencesRef, path corefoundation.CFStringRef, link corefoundation.CFStringRef) bool
SCPreferencesPathSetLink associates a link to a second dictionary at the specified path.
It panics if SCPreferencesPathSetLink is unavailable at run time; use TrySCPreferencesPathSetLink to get an error instead.
See: https://developer.apple.com/documentation/SystemConfiguration/SCPreferencesPathSetLink(_:_:_:)
func SCPreferencesPathSetValue ¶
func SCPreferencesPathSetValue(prefs SCPreferencesRef, path corefoundation.CFStringRef, value corefoundation.CFDictionaryRef) bool
SCPreferencesPathSetValue associates the specified dictionary with the specified path.
It panics if SCPreferencesPathSetValue is unavailable at run time; use TrySCPreferencesPathSetValue to get an error instead.
See: https://developer.apple.com/documentation/SystemConfiguration/SCPreferencesPathSetValue(_:_:_:)
func SCPreferencesRemoveValue ¶
func SCPreferencesRemoveValue(prefs SCPreferencesRef, key corefoundation.CFStringRef) bool
SCPreferencesRemoveValue removes the data associated with the specified preference key.
It panics if SCPreferencesRemoveValue is unavailable at run time; use TrySCPreferencesRemoveValue to get an error instead.
See: https://developer.apple.com/documentation/SystemConfiguration/SCPreferencesRemoveValue(_:_:)
func SCPreferencesScheduleWithRunLoop ¶
func SCPreferencesScheduleWithRunLoop(prefs SCPreferencesRef, runLoop corefoundation.CFRunLoopRef, runLoopMode corefoundation.CFStringRef) bool
SCPreferencesScheduleWithRunLoop schedules commit and apply notifications for the specified preferences session using the specified run loop and mode.
It panics if SCPreferencesScheduleWithRunLoop is unavailable at run time; use TrySCPreferencesScheduleWithRunLoop to get an error instead.
func SCPreferencesSetCallback ¶
func SCPreferencesSetCallback(prefs SCPreferencesRef, callout SCPreferencesCallBack, context *SCPreferencesContext) bool
SCPreferencesSetCallback assigns the specified callback to the specified preferences session.
It panics if SCPreferencesSetCallback is unavailable at run time; use TrySCPreferencesSetCallback to get an error instead.
See: https://developer.apple.com/documentation/SystemConfiguration/SCPreferencesSetCallback(_:_:_:)
func SCPreferencesSetComputerName ¶
func SCPreferencesSetComputerName(prefs SCPreferencesRef, name corefoundation.CFStringRef, nameEncoding uint32) bool
SCPreferencesSetComputerName sets the computer name preference to the specified name.
It panics if SCPreferencesSetComputerName is unavailable at run time; use TrySCPreferencesSetComputerName to get an error instead.
See: https://developer.apple.com/documentation/SystemConfiguration/SCPreferencesSetComputerName(_:_:_:)
func SCPreferencesSetDispatchQueue ¶
func SCPreferencesSetDispatchQueue(prefs SCPreferencesRef, queue dispatch.Queue) bool
SCPreferencesSetDispatchQueue schedules commit and apply notifications for the specified preferences session using the specified dispatch queue.
It panics if SCPreferencesSetDispatchQueue is unavailable at run time; use TrySCPreferencesSetDispatchQueue to get an error instead.
See: https://developer.apple.com/documentation/SystemConfiguration/SCPreferencesSetDispatchQueue(_:_:)
func SCPreferencesSetLocalHostName ¶
func SCPreferencesSetLocalHostName(prefs SCPreferencesRef, name corefoundation.CFStringRef) bool
SCPreferencesSetLocalHostName sets the local host name to the specified name.
It panics if SCPreferencesSetLocalHostName is unavailable at run time; use TrySCPreferencesSetLocalHostName to get an error instead.
See: https://developer.apple.com/documentation/SystemConfiguration/SCPreferencesSetLocalHostName(_:_:)
func SCPreferencesSetValue ¶
func SCPreferencesSetValue(prefs SCPreferencesRef, key corefoundation.CFStringRef, value corefoundation.CFPropertyListRef) bool
SCPreferencesSetValue updates the data associated with the specified preference key with the specified value.
It panics if SCPreferencesSetValue is unavailable at run time; use TrySCPreferencesSetValue to get an error instead.
See: https://developer.apple.com/documentation/SystemConfiguration/SCPreferencesSetValue(_:_:_:)
func SCPreferencesSynchronize ¶
func SCPreferencesSynchronize(prefs SCPreferencesRef)
SCPreferencesSynchronize synchronizes accessed preferences with committed changes.
It panics if SCPreferencesSynchronize is unavailable at run time; use TrySCPreferencesSynchronize to get an error instead.
See: https://developer.apple.com/documentation/SystemConfiguration/SCPreferencesSynchronize(_:)
func SCPreferencesUnlock ¶
func SCPreferencesUnlock(prefs SCPreferencesRef) bool
SCPreferencesUnlock releases exclusive access to the configuration preferences.
It panics if SCPreferencesUnlock is unavailable at run time; use TrySCPreferencesUnlock to get an error instead.
See: https://developer.apple.com/documentation/SystemConfiguration/SCPreferencesUnlock(_:)
func SCPreferencesUnscheduleFromRunLoop ¶
func SCPreferencesUnscheduleFromRunLoop(prefs SCPreferencesRef, runLoop corefoundation.CFRunLoopRef, runLoopMode corefoundation.CFStringRef) bool
SCPreferencesUnscheduleFromRunLoop unschedules commit and apply notifications for the specified preferences session from the specified run loop and mode.
It panics if SCPreferencesUnscheduleFromRunLoop is unavailable at run time; use TrySCPreferencesUnscheduleFromRunLoop to get an error instead.
func SCVLANInterfaceCopyAll ¶
func SCVLANInterfaceCopyAll(prefs SCPreferencesRef) corefoundation.CFArrayRef
SCVLANInterfaceCopyAll returns all virtual LAN (VLAN) interfaces on the system.
It panics if SCVLANInterfaceCopyAll is unavailable at run time; use TrySCVLANInterfaceCopyAll to get an error instead.
See: https://developer.apple.com/documentation/SystemConfiguration/SCVLANInterfaceCopyAll(_:)
func SCVLANInterfaceCopyAvailablePhysicalInterfaces ¶
func SCVLANInterfaceCopyAvailablePhysicalInterfaces() corefoundation.CFArrayRef
SCVLANInterfaceCopyAvailablePhysicalInterfaces returns the network capable devices on the system that can be associated with a virtual LAN (VLAN) interface.
It panics if SCVLANInterfaceCopyAvailablePhysicalInterfaces is unavailable at run time; use TrySCVLANInterfaceCopyAvailablePhysicalInterfaces to get an error instead.
func SCVLANInterfaceGetOptions ¶
func SCVLANInterfaceGetOptions(vlan SCVLANInterfaceRef) corefoundation.CFDictionaryRef
SCVLANInterfaceGetOptions returns the configuration settings associated with the virtual LAN (VLAN) interface.
It panics if SCVLANInterfaceGetOptions is unavailable at run time; use TrySCVLANInterfaceGetOptions to get an error instead.
See: https://developer.apple.com/documentation/SystemConfiguration/SCVLANInterfaceGetOptions(_:)
func SCVLANInterfaceGetTag ¶
func SCVLANInterfaceGetTag(vlan SCVLANInterfaceRef) corefoundation.CFNumberRef
SCVLANInterfaceGetTag returns the tag for the specified virtual LAN (VLAN) interface.
It panics if SCVLANInterfaceGetTag is unavailable at run time; use TrySCVLANInterfaceGetTag to get an error instead.
See: https://developer.apple.com/documentation/SystemConfiguration/SCVLANInterfaceGetTag(_:)
func SCVLANInterfaceRemove ¶
func SCVLANInterfaceRemove(vlan SCVLANInterfaceRef) bool
SCVLANInterfaceRemove removes the virtual LAN (VLAN) interface from the configuration.
It panics if SCVLANInterfaceRemove is unavailable at run time; use TrySCVLANInterfaceRemove to get an error instead.
See: https://developer.apple.com/documentation/SystemConfiguration/SCVLANInterfaceRemove(_:)
func SCVLANInterfaceSetLocalizedDisplayName ¶
func SCVLANInterfaceSetLocalizedDisplayName(vlan SCVLANInterfaceRef, newName corefoundation.CFStringRef) bool
SCVLANInterfaceSetLocalizedDisplayName sets the localized display name for the specified virtual LAN (VLAN) interface.
It panics if SCVLANInterfaceSetLocalizedDisplayName is unavailable at run time; use TrySCVLANInterfaceSetLocalizedDisplayName to get an error instead.
func SCVLANInterfaceSetOptions ¶
func SCVLANInterfaceSetOptions(vlan SCVLANInterfaceRef, newOptions corefoundation.CFDictionaryRef) bool
SCVLANInterfaceSetOptions sets the specified configuration settings for the specified virtual LAN (VLAN) interface.
It panics if SCVLANInterfaceSetOptions is unavailable at run time; use TrySCVLANInterfaceSetOptions to get an error instead.
See: https://developer.apple.com/documentation/SystemConfiguration/SCVLANInterfaceSetOptions(_:_:)
func SCVLANInterfaceSetPhysicalInterfaceAndTag ¶
func SCVLANInterfaceSetPhysicalInterfaceAndTag(vlan SCVLANInterfaceRef, physical SCNetworkInterfaceRef, tag corefoundation.CFNumberRef) bool
SCVLANInterfaceSetPhysicalInterfaceAndTag updates the specified virtual LAN (VLAN) interface with the specified information.
It panics if SCVLANInterfaceSetPhysicalInterfaceAndTag is unavailable at run time; use TrySCVLANInterfaceSetPhysicalInterfaceAndTag to get an error instead.
func SymbolAddress ¶
SymbolAddress returns the address of name in SystemConfiguration, whether or not this package generated a binding for it.
What is generated is bounded by what is documented, and for a private framework that is whatever a manifest happened to enumerate. The dylib usually exports far more. Without this, a symbol nobody wrote down is unreachable from a package that has already loaded the image holding it, and the generated surface becomes a ceiling instead of a floor.
The lookup is scoped to this framework's handle, not RTLD_DEFAULT, so a symbol some other loaded image exports is not reported as this one's.
func TryCNCopySupportedInterfaces ¶
func TryCNCopySupportedInterfaces() (corefoundation.CFArrayRef, error)
TryCNCopySupportedInterfaces is like CNCopySupportedInterfaces but returns an error instead of panicking if CNCopySupportedInterfaces is unavailable at run time.
func TryCNMarkPortalOffline ¶
func TryCNMarkPortalOffline(interfaceName corefoundation.CFStringRef) (bool, error)
TryCNMarkPortalOffline is like CNMarkPortalOffline but returns an error instead of panicking if CNMarkPortalOffline is unavailable at run time.
func TryCNMarkPortalOnline ¶
func TryCNMarkPortalOnline(interfaceName corefoundation.CFStringRef) (bool, error)
TryCNMarkPortalOnline is like CNMarkPortalOnline but returns an error instead of panicking if CNMarkPortalOnline is unavailable at run time.
func TryCNSetSupportedSSIDs ¶
func TryCNSetSupportedSSIDs(ssidArray corefoundation.CFArrayRef) (bool, error)
TryCNSetSupportedSSIDs is like CNSetSupportedSSIDs but returns an error instead of panicking if CNSetSupportedSSIDs is unavailable at run time.
func TryDHCPClientPreferencesCopyApplicationOptions ¶
func TryDHCPClientPreferencesCopyApplicationOptions(applicationID corefoundation.CFStringRef, count *int) (*uint8, error)
TryDHCPClientPreferencesCopyApplicationOptions is like DHCPClientPreferencesCopyApplicationOptions but returns an error instead of panicking if DHCPClientPreferencesCopyApplicationOptions is unavailable at run time.
func TryDHCPClientPreferencesSetApplicationOptions ¶
func TryDHCPClientPreferencesSetApplicationOptions(applicationID corefoundation.CFStringRef, options []byte, count int) (bool, error)
TryDHCPClientPreferencesSetApplicationOptions is like DHCPClientPreferencesSetApplicationOptions but returns an error instead of panicking if DHCPClientPreferencesSetApplicationOptions is unavailable at run time.
func TryDHCPInfoGetLeaseExpirationTime ¶
func TryDHCPInfoGetLeaseExpirationTime(info corefoundation.CFDictionaryRef) (corefoundation.CFDateRef, error)
TryDHCPInfoGetLeaseExpirationTime is like DHCPInfoGetLeaseExpirationTime but returns an error instead of panicking if DHCPInfoGetLeaseExpirationTime is unavailable at run time.
func TryDHCPInfoGetLeaseStartTime ¶
func TryDHCPInfoGetLeaseStartTime(info corefoundation.CFDictionaryRef) (corefoundation.CFDateRef, error)
TryDHCPInfoGetLeaseStartTime is like DHCPInfoGetLeaseStartTime but returns an error instead of panicking if DHCPInfoGetLeaseStartTime is unavailable at run time.
func TryDHCPInfoGetOptionData ¶
func TryDHCPInfoGetOptionData(info corefoundation.CFDictionaryRef, code uint8) (corefoundation.CFDataRef, error)
TryDHCPInfoGetOptionData is like DHCPInfoGetOptionData but returns an error instead of panicking if DHCPInfoGetOptionData is unavailable at run time.
func TrySCBondInterfaceCopyAll ¶
func TrySCBondInterfaceCopyAll(prefs SCPreferencesRef) (corefoundation.CFArrayRef, error)
TrySCBondInterfaceCopyAll is like SCBondInterfaceCopyAll but returns an error instead of panicking if SCBondInterfaceCopyAll is unavailable at run time.
func TrySCBondInterfaceCopyAvailableMemberInterfaces ¶
func TrySCBondInterfaceCopyAvailableMemberInterfaces(prefs SCPreferencesRef) (corefoundation.CFArrayRef, error)
TrySCBondInterfaceCopyAvailableMemberInterfaces is like SCBondInterfaceCopyAvailableMemberInterfaces but returns an error instead of panicking if SCBondInterfaceCopyAvailableMemberInterfaces is unavailable at run time.
func TrySCBondInterfaceGetMemberInterfaces ¶
func TrySCBondInterfaceGetMemberInterfaces(bond SCBondInterfaceRef) (corefoundation.CFArrayRef, error)
TrySCBondInterfaceGetMemberInterfaces is like SCBondInterfaceGetMemberInterfaces but returns an error instead of panicking if SCBondInterfaceGetMemberInterfaces is unavailable at run time.
func TrySCBondInterfaceGetOptions ¶
func TrySCBondInterfaceGetOptions(bond SCBondInterfaceRef) (corefoundation.CFDictionaryRef, error)
TrySCBondInterfaceGetOptions is like SCBondInterfaceGetOptions but returns an error instead of panicking if SCBondInterfaceGetOptions is unavailable at run time.
func TrySCBondInterfaceRemove ¶
func TrySCBondInterfaceRemove(bond SCBondInterfaceRef) (bool, error)
TrySCBondInterfaceRemove is like SCBondInterfaceRemove but returns an error instead of panicking if SCBondInterfaceRemove is unavailable at run time.
func TrySCBondInterfaceSetLocalizedDisplayName ¶
func TrySCBondInterfaceSetLocalizedDisplayName(bond SCBondInterfaceRef, newName corefoundation.CFStringRef) (bool, error)
TrySCBondInterfaceSetLocalizedDisplayName is like SCBondInterfaceSetLocalizedDisplayName but returns an error instead of panicking if SCBondInterfaceSetLocalizedDisplayName is unavailable at run time.
func TrySCBondInterfaceSetMemberInterfaces ¶
func TrySCBondInterfaceSetMemberInterfaces(bond SCBondInterfaceRef, members corefoundation.CFArrayRef) (bool, error)
TrySCBondInterfaceSetMemberInterfaces is like SCBondInterfaceSetMemberInterfaces but returns an error instead of panicking if SCBondInterfaceSetMemberInterfaces is unavailable at run time.
func TrySCBondInterfaceSetOptions ¶
func TrySCBondInterfaceSetOptions(bond SCBondInterfaceRef, newOptions corefoundation.CFDictionaryRef) (bool, error)
TrySCBondInterfaceSetOptions is like SCBondInterfaceSetOptions but returns an error instead of panicking if SCBondInterfaceSetOptions is unavailable at run time.
func TrySCBondStatusGetInterfaceStatus ¶
func TrySCBondStatusGetInterfaceStatus(bondStatus SCBondStatusRef, interface_ SCNetworkInterfaceRef) (corefoundation.CFDictionaryRef, error)
TrySCBondStatusGetInterfaceStatus is like SCBondStatusGetInterfaceStatus but returns an error instead of panicking if SCBondStatusGetInterfaceStatus is unavailable at run time.
func TrySCBondStatusGetMemberInterfaces ¶
func TrySCBondStatusGetMemberInterfaces(bondStatus SCBondStatusRef) (corefoundation.CFArrayRef, error)
TrySCBondStatusGetMemberInterfaces is like SCBondStatusGetMemberInterfaces but returns an error instead of panicking if SCBondStatusGetMemberInterfaces is unavailable at run time.
func TrySCBondStatusGetTypeID ¶
TrySCBondStatusGetTypeID is like SCBondStatusGetTypeID but returns an error instead of panicking if SCBondStatusGetTypeID is unavailable at run time.
func TrySCCopyLastError ¶
func TrySCCopyLastError() (corefoundation.CFErrorRef, error)
TrySCCopyLastError is like SCCopyLastError but returns an error instead of panicking if SCCopyLastError is unavailable at run time.
func TrySCDynamicStoreAddTemporaryValue ¶
func TrySCDynamicStoreAddTemporaryValue(store SCDynamicStoreRef, key corefoundation.CFStringRef, value corefoundation.CFPropertyListRef) (bool, error)
TrySCDynamicStoreAddTemporaryValue is like SCDynamicStoreAddTemporaryValue but returns an error instead of panicking if SCDynamicStoreAddTemporaryValue is unavailable at run time.
func TrySCDynamicStoreAddValue ¶
func TrySCDynamicStoreAddValue(store SCDynamicStoreRef, key corefoundation.CFStringRef, value corefoundation.CFPropertyListRef) (bool, error)
TrySCDynamicStoreAddValue is like SCDynamicStoreAddValue but returns an error instead of panicking if SCDynamicStoreAddValue is unavailable at run time.
func TrySCDynamicStoreCopyComputerName ¶
func TrySCDynamicStoreCopyComputerName(store SCDynamicStoreRef, nameEncoding *uint32) (corefoundation.CFStringRef, error)
TrySCDynamicStoreCopyComputerName is like SCDynamicStoreCopyComputerName but returns an error instead of panicking if SCDynamicStoreCopyComputerName is unavailable at run time.
func TrySCDynamicStoreCopyConsoleUser ¶
func TrySCDynamicStoreCopyConsoleUser(store SCDynamicStoreRef, uid *uint32, gid *uint32) (corefoundation.CFStringRef, error)
TrySCDynamicStoreCopyConsoleUser is like SCDynamicStoreCopyConsoleUser but returns an error instead of panicking if SCDynamicStoreCopyConsoleUser is unavailable at run time.
func TrySCDynamicStoreCopyDHCPInfo ¶
func TrySCDynamicStoreCopyDHCPInfo(store SCDynamicStoreRef, serviceID corefoundation.CFStringRef) (corefoundation.CFDictionaryRef, error)
TrySCDynamicStoreCopyDHCPInfo is like SCDynamicStoreCopyDHCPInfo but returns an error instead of panicking if SCDynamicStoreCopyDHCPInfo is unavailable at run time.
func TrySCDynamicStoreCopyKeyList ¶
func TrySCDynamicStoreCopyKeyList(store SCDynamicStoreRef, pattern corefoundation.CFStringRef) (corefoundation.CFArrayRef, error)
TrySCDynamicStoreCopyKeyList is like SCDynamicStoreCopyKeyList but returns an error instead of panicking if SCDynamicStoreCopyKeyList is unavailable at run time.
func TrySCDynamicStoreCopyLocalHostName ¶
func TrySCDynamicStoreCopyLocalHostName(store SCDynamicStoreRef) (corefoundation.CFStringRef, error)
TrySCDynamicStoreCopyLocalHostName is like SCDynamicStoreCopyLocalHostName but returns an error instead of panicking if SCDynamicStoreCopyLocalHostName is unavailable at run time.
func TrySCDynamicStoreCopyLocation ¶
func TrySCDynamicStoreCopyLocation(store SCDynamicStoreRef) (corefoundation.CFStringRef, error)
TrySCDynamicStoreCopyLocation is like SCDynamicStoreCopyLocation but returns an error instead of panicking if SCDynamicStoreCopyLocation is unavailable at run time.
func TrySCDynamicStoreCopyMultiple ¶
func TrySCDynamicStoreCopyMultiple(store SCDynamicStoreRef, keys corefoundation.CFArrayRef, patterns corefoundation.CFArrayRef) (corefoundation.CFDictionaryRef, error)
TrySCDynamicStoreCopyMultiple is like SCDynamicStoreCopyMultiple but returns an error instead of panicking if SCDynamicStoreCopyMultiple is unavailable at run time.
func TrySCDynamicStoreCopyNotifiedKeys ¶
func TrySCDynamicStoreCopyNotifiedKeys(store SCDynamicStoreRef) (corefoundation.CFArrayRef, error)
TrySCDynamicStoreCopyNotifiedKeys is like SCDynamicStoreCopyNotifiedKeys but returns an error instead of panicking if SCDynamicStoreCopyNotifiedKeys is unavailable at run time.
func TrySCDynamicStoreCopyProxies ¶
func TrySCDynamicStoreCopyProxies(store SCDynamicStoreRef) (corefoundation.CFDictionaryRef, error)
TrySCDynamicStoreCopyProxies is like SCDynamicStoreCopyProxies but returns an error instead of panicking if SCDynamicStoreCopyProxies is unavailable at run time.
func TrySCDynamicStoreCopyValue ¶
func TrySCDynamicStoreCopyValue(store SCDynamicStoreRef, key corefoundation.CFStringRef) (corefoundation.CFPropertyListRef, error)
TrySCDynamicStoreCopyValue is like SCDynamicStoreCopyValue but returns an error instead of panicking if SCDynamicStoreCopyValue is unavailable at run time.
func TrySCDynamicStoreCreateRunLoopSource ¶
func TrySCDynamicStoreCreateRunLoopSource(allocator corefoundation.CFAllocatorRef, store SCDynamicStoreRef, order int) (corefoundation.CFRunLoopSourceRef, error)
TrySCDynamicStoreCreateRunLoopSource is like SCDynamicStoreCreateRunLoopSource but returns an error instead of panicking if SCDynamicStoreCreateRunLoopSource is unavailable at run time.
func TrySCDynamicStoreGetTypeID ¶
TrySCDynamicStoreGetTypeID is like SCDynamicStoreGetTypeID but returns an error instead of panicking if SCDynamicStoreGetTypeID is unavailable at run time.
func TrySCDynamicStoreKeyCreate ¶
func TrySCDynamicStoreKeyCreate(allocator corefoundation.CFAllocatorRef, fmt corefoundation.CFStringRef) (corefoundation.CFStringRef, error)
TrySCDynamicStoreKeyCreate is like SCDynamicStoreKeyCreate but returns an error instead of panicking if SCDynamicStoreKeyCreate is unavailable at run time.
func TrySCDynamicStoreKeyCreateComputerName ¶
func TrySCDynamicStoreKeyCreateComputerName(allocator corefoundation.CFAllocatorRef) (corefoundation.CFStringRef, error)
TrySCDynamicStoreKeyCreateComputerName is like SCDynamicStoreKeyCreateComputerName but returns an error instead of panicking if SCDynamicStoreKeyCreateComputerName is unavailable at run time.
func TrySCDynamicStoreKeyCreateConsoleUser ¶
func TrySCDynamicStoreKeyCreateConsoleUser(allocator corefoundation.CFAllocatorRef) (corefoundation.CFStringRef, error)
TrySCDynamicStoreKeyCreateConsoleUser is like SCDynamicStoreKeyCreateConsoleUser but returns an error instead of panicking if SCDynamicStoreKeyCreateConsoleUser is unavailable at run time.
func TrySCDynamicStoreKeyCreateHostNames ¶
func TrySCDynamicStoreKeyCreateHostNames(allocator corefoundation.CFAllocatorRef) (corefoundation.CFStringRef, error)
TrySCDynamicStoreKeyCreateHostNames is like SCDynamicStoreKeyCreateHostNames but returns an error instead of panicking if SCDynamicStoreKeyCreateHostNames is unavailable at run time.
func TrySCDynamicStoreKeyCreateLocation ¶
func TrySCDynamicStoreKeyCreateLocation(allocator corefoundation.CFAllocatorRef) (corefoundation.CFStringRef, error)
TrySCDynamicStoreKeyCreateLocation is like SCDynamicStoreKeyCreateLocation but returns an error instead of panicking if SCDynamicStoreKeyCreateLocation is unavailable at run time.
func TrySCDynamicStoreKeyCreateNetworkGlobalEntity ¶
func TrySCDynamicStoreKeyCreateNetworkGlobalEntity(allocator corefoundation.CFAllocatorRef, domain corefoundation.CFStringRef, entity corefoundation.CFStringRef) (corefoundation.CFStringRef, error)
TrySCDynamicStoreKeyCreateNetworkGlobalEntity is like SCDynamicStoreKeyCreateNetworkGlobalEntity but returns an error instead of panicking if SCDynamicStoreKeyCreateNetworkGlobalEntity is unavailable at run time.
func TrySCDynamicStoreKeyCreateNetworkInterface ¶
func TrySCDynamicStoreKeyCreateNetworkInterface(allocator corefoundation.CFAllocatorRef, domain corefoundation.CFStringRef) (corefoundation.CFStringRef, error)
TrySCDynamicStoreKeyCreateNetworkInterface is like SCDynamicStoreKeyCreateNetworkInterface but returns an error instead of panicking if SCDynamicStoreKeyCreateNetworkInterface is unavailable at run time.
func TrySCDynamicStoreKeyCreateNetworkInterfaceEntity ¶
func TrySCDynamicStoreKeyCreateNetworkInterfaceEntity(allocator corefoundation.CFAllocatorRef, domain corefoundation.CFStringRef, ifname corefoundation.CFStringRef, entity corefoundation.CFStringRef) (corefoundation.CFStringRef, error)
TrySCDynamicStoreKeyCreateNetworkInterfaceEntity is like SCDynamicStoreKeyCreateNetworkInterfaceEntity but returns an error instead of panicking if SCDynamicStoreKeyCreateNetworkInterfaceEntity is unavailable at run time.
func TrySCDynamicStoreKeyCreateNetworkServiceEntity ¶
func TrySCDynamicStoreKeyCreateNetworkServiceEntity(allocator corefoundation.CFAllocatorRef, domain corefoundation.CFStringRef, serviceID corefoundation.CFStringRef, entity corefoundation.CFStringRef) (corefoundation.CFStringRef, error)
TrySCDynamicStoreKeyCreateNetworkServiceEntity is like SCDynamicStoreKeyCreateNetworkServiceEntity but returns an error instead of panicking if SCDynamicStoreKeyCreateNetworkServiceEntity is unavailable at run time.
func TrySCDynamicStoreKeyCreateProxies ¶
func TrySCDynamicStoreKeyCreateProxies(allocator corefoundation.CFAllocatorRef) (corefoundation.CFStringRef, error)
TrySCDynamicStoreKeyCreateProxies is like SCDynamicStoreKeyCreateProxies but returns an error instead of panicking if SCDynamicStoreKeyCreateProxies is unavailable at run time.
func TrySCDynamicStoreNotifyValue ¶
func TrySCDynamicStoreNotifyValue(store SCDynamicStoreRef, key corefoundation.CFStringRef) (bool, error)
TrySCDynamicStoreNotifyValue is like SCDynamicStoreNotifyValue but returns an error instead of panicking if SCDynamicStoreNotifyValue is unavailable at run time.
func TrySCDynamicStoreRemoveValue ¶
func TrySCDynamicStoreRemoveValue(store SCDynamicStoreRef, key corefoundation.CFStringRef) (bool, error)
TrySCDynamicStoreRemoveValue is like SCDynamicStoreRemoveValue but returns an error instead of panicking if SCDynamicStoreRemoveValue is unavailable at run time.
func TrySCDynamicStoreSetDispatchQueue ¶
func TrySCDynamicStoreSetDispatchQueue(store SCDynamicStoreRef, queue dispatch.Queue) (bool, error)
TrySCDynamicStoreSetDispatchQueue is like SCDynamicStoreSetDispatchQueue but returns an error instead of panicking if SCDynamicStoreSetDispatchQueue is unavailable at run time.
func TrySCDynamicStoreSetMultiple ¶
func TrySCDynamicStoreSetMultiple(store SCDynamicStoreRef, keysToSet corefoundation.CFDictionaryRef, keysToRemove corefoundation.CFArrayRef, keysToNotify corefoundation.CFArrayRef) (bool, error)
TrySCDynamicStoreSetMultiple is like SCDynamicStoreSetMultiple but returns an error instead of panicking if SCDynamicStoreSetMultiple is unavailable at run time.
func TrySCDynamicStoreSetNotificationKeys ¶
func TrySCDynamicStoreSetNotificationKeys(store SCDynamicStoreRef, keys corefoundation.CFArrayRef, patterns corefoundation.CFArrayRef) (bool, error)
TrySCDynamicStoreSetNotificationKeys is like SCDynamicStoreSetNotificationKeys but returns an error instead of panicking if SCDynamicStoreSetNotificationKeys is unavailable at run time.
func TrySCDynamicStoreSetValue ¶
func TrySCDynamicStoreSetValue(store SCDynamicStoreRef, key corefoundation.CFStringRef, value corefoundation.CFPropertyListRef) (bool, error)
TrySCDynamicStoreSetValue is like SCDynamicStoreSetValue but returns an error instead of panicking if SCDynamicStoreSetValue is unavailable at run time.
func TrySCError ¶
TrySCError is like SCError but returns an error instead of panicking if SCError is unavailable at run time.
func TrySCErrorString ¶
TrySCErrorString is like SCErrorString but returns an error instead of panicking if SCErrorString is unavailable at run time.
func TrySCNetworkCheckReachabilityByAddress ¶
func TrySCNetworkCheckReachabilityByAddress(address unsafe.Pointer, addrlen uint32, flags *SCNetworkConnectionFlags) (bool, error)
TrySCNetworkCheckReachabilityByAddress is like SCNetworkCheckReachabilityByAddress but returns an error instead of panicking if SCNetworkCheckReachabilityByAddress is unavailable at run time.
func TrySCNetworkCheckReachabilityByName ¶
func TrySCNetworkCheckReachabilityByName(nodename string, flags *SCNetworkConnectionFlags) (bool, error)
TrySCNetworkCheckReachabilityByName is like SCNetworkCheckReachabilityByName but returns an error instead of panicking if SCNetworkCheckReachabilityByName is unavailable at run time.
func TrySCNetworkConnectionCopyExtendedStatus ¶
func TrySCNetworkConnectionCopyExtendedStatus(connection SCNetworkConnectionRef) (corefoundation.CFDictionaryRef, error)
TrySCNetworkConnectionCopyExtendedStatus is like SCNetworkConnectionCopyExtendedStatus but returns an error instead of panicking if SCNetworkConnectionCopyExtendedStatus is unavailable at run time.
func TrySCNetworkConnectionCopyServiceID ¶
func TrySCNetworkConnectionCopyServiceID(connection SCNetworkConnectionRef) (corefoundation.CFStringRef, error)
TrySCNetworkConnectionCopyServiceID is like SCNetworkConnectionCopyServiceID but returns an error instead of panicking if SCNetworkConnectionCopyServiceID is unavailable at run time.
func TrySCNetworkConnectionCopyStatistics ¶
func TrySCNetworkConnectionCopyStatistics(connection SCNetworkConnectionRef) (corefoundation.CFDictionaryRef, error)
TrySCNetworkConnectionCopyStatistics is like SCNetworkConnectionCopyStatistics but returns an error instead of panicking if SCNetworkConnectionCopyStatistics is unavailable at run time.
func TrySCNetworkConnectionCopyUserOptions ¶
func TrySCNetworkConnectionCopyUserOptions(connection SCNetworkConnectionRef) (corefoundation.CFDictionaryRef, error)
TrySCNetworkConnectionCopyUserOptions is like SCNetworkConnectionCopyUserOptions but returns an error instead of panicking if SCNetworkConnectionCopyUserOptions is unavailable at run time.
func TrySCNetworkConnectionCopyUserPreferences ¶
func TrySCNetworkConnectionCopyUserPreferences(selectionOptions corefoundation.CFDictionaryRef, serviceID *corefoundation.CFStringRef, userOptions *corefoundation.CFDictionaryRef) (bool, error)
TrySCNetworkConnectionCopyUserPreferences is like SCNetworkConnectionCopyUserPreferences but returns an error instead of panicking if SCNetworkConnectionCopyUserPreferences is unavailable at run time.
func TrySCNetworkConnectionGetTypeID ¶
TrySCNetworkConnectionGetTypeID is like SCNetworkConnectionGetTypeID but returns an error instead of panicking if SCNetworkConnectionGetTypeID is unavailable at run time.
func TrySCNetworkConnectionScheduleWithRunLoop ¶
func TrySCNetworkConnectionScheduleWithRunLoop(connection SCNetworkConnectionRef, runLoop corefoundation.CFRunLoopRef, runLoopMode corefoundation.CFStringRef) (bool, error)
TrySCNetworkConnectionScheduleWithRunLoop is like SCNetworkConnectionScheduleWithRunLoop but returns an error instead of panicking if SCNetworkConnectionScheduleWithRunLoop is unavailable at run time.
func TrySCNetworkConnectionSetDispatchQueue ¶
func TrySCNetworkConnectionSetDispatchQueue(connection SCNetworkConnectionRef, queue dispatch.Queue) (bool, error)
TrySCNetworkConnectionSetDispatchQueue is like SCNetworkConnectionSetDispatchQueue but returns an error instead of panicking if SCNetworkConnectionSetDispatchQueue is unavailable at run time.
func TrySCNetworkConnectionStart ¶
func TrySCNetworkConnectionStart(connection SCNetworkConnectionRef, userOptions corefoundation.CFDictionaryRef, linger bool) (bool, error)
TrySCNetworkConnectionStart is like SCNetworkConnectionStart but returns an error instead of panicking if SCNetworkConnectionStart is unavailable at run time.
func TrySCNetworkConnectionStop ¶
func TrySCNetworkConnectionStop(connection SCNetworkConnectionRef, forceDisconnect bool) (bool, error)
TrySCNetworkConnectionStop is like SCNetworkConnectionStop but returns an error instead of panicking if SCNetworkConnectionStop is unavailable at run time.
func TrySCNetworkConnectionUnscheduleFromRunLoop ¶
func TrySCNetworkConnectionUnscheduleFromRunLoop(connection SCNetworkConnectionRef, runLoop corefoundation.CFRunLoopRef, runLoopMode corefoundation.CFStringRef) (bool, error)
TrySCNetworkConnectionUnscheduleFromRunLoop is like SCNetworkConnectionUnscheduleFromRunLoop but returns an error instead of panicking if SCNetworkConnectionUnscheduleFromRunLoop is unavailable at run time.
func TrySCNetworkInterfaceCopyAll ¶
func TrySCNetworkInterfaceCopyAll() (corefoundation.CFArrayRef, error)
TrySCNetworkInterfaceCopyAll is like SCNetworkInterfaceCopyAll but returns an error instead of panicking if SCNetworkInterfaceCopyAll is unavailable at run time.
func TrySCNetworkInterfaceCopyMTU ¶
func TrySCNetworkInterfaceCopyMTU(interface_ SCNetworkInterfaceRef, mtu_cur *int32, mtu_min *int32, mtu_max *int32) (bool, error)
TrySCNetworkInterfaceCopyMTU is like SCNetworkInterfaceCopyMTU but returns an error instead of panicking if SCNetworkInterfaceCopyMTU is unavailable at run time.
func TrySCNetworkInterfaceCopyMediaOptions ¶
func TrySCNetworkInterfaceCopyMediaOptions(interface_ SCNetworkInterfaceRef, current *corefoundation.CFDictionaryRef, active *corefoundation.CFDictionaryRef, available *corefoundation.CFArrayRef, filter bool) (bool, error)
TrySCNetworkInterfaceCopyMediaOptions is like SCNetworkInterfaceCopyMediaOptions but returns an error instead of panicking if SCNetworkInterfaceCopyMediaOptions is unavailable at run time.
func TrySCNetworkInterfaceCopyMediaSubTypeOptions ¶
func TrySCNetworkInterfaceCopyMediaSubTypeOptions(available corefoundation.CFArrayRef, subType corefoundation.CFStringRef) (corefoundation.CFArrayRef, error)
TrySCNetworkInterfaceCopyMediaSubTypeOptions is like SCNetworkInterfaceCopyMediaSubTypeOptions but returns an error instead of panicking if SCNetworkInterfaceCopyMediaSubTypeOptions is unavailable at run time.
func TrySCNetworkInterfaceCopyMediaSubTypes ¶
func TrySCNetworkInterfaceCopyMediaSubTypes(available corefoundation.CFArrayRef) (corefoundation.CFArrayRef, error)
TrySCNetworkInterfaceCopyMediaSubTypes is like SCNetworkInterfaceCopyMediaSubTypes but returns an error instead of panicking if SCNetworkInterfaceCopyMediaSubTypes is unavailable at run time.
func TrySCNetworkInterfaceForceConfigurationRefresh ¶
func TrySCNetworkInterfaceForceConfigurationRefresh(interface_ SCNetworkInterfaceRef) (bool, error)
TrySCNetworkInterfaceForceConfigurationRefresh is like SCNetworkInterfaceForceConfigurationRefresh but returns an error instead of panicking if SCNetworkInterfaceForceConfigurationRefresh is unavailable at run time.
func TrySCNetworkInterfaceGetBSDName ¶
func TrySCNetworkInterfaceGetBSDName(interface_ SCNetworkInterfaceRef) (corefoundation.CFStringRef, error)
TrySCNetworkInterfaceGetBSDName is like SCNetworkInterfaceGetBSDName but returns an error instead of panicking if SCNetworkInterfaceGetBSDName is unavailable at run time.
func TrySCNetworkInterfaceGetConfiguration ¶
func TrySCNetworkInterfaceGetConfiguration(interface_ SCNetworkInterfaceRef) (corefoundation.CFDictionaryRef, error)
TrySCNetworkInterfaceGetConfiguration is like SCNetworkInterfaceGetConfiguration but returns an error instead of panicking if SCNetworkInterfaceGetConfiguration is unavailable at run time.
func TrySCNetworkInterfaceGetExtendedConfiguration ¶
func TrySCNetworkInterfaceGetExtendedConfiguration(interface_ SCNetworkInterfaceRef, extendedType corefoundation.CFStringRef) (corefoundation.CFDictionaryRef, error)
TrySCNetworkInterfaceGetExtendedConfiguration is like SCNetworkInterfaceGetExtendedConfiguration but returns an error instead of panicking if SCNetworkInterfaceGetExtendedConfiguration is unavailable at run time.
func TrySCNetworkInterfaceGetHardwareAddressString ¶
func TrySCNetworkInterfaceGetHardwareAddressString(interface_ SCNetworkInterfaceRef) (corefoundation.CFStringRef, error)
TrySCNetworkInterfaceGetHardwareAddressString is like SCNetworkInterfaceGetHardwareAddressString but returns an error instead of panicking if SCNetworkInterfaceGetHardwareAddressString is unavailable at run time.
func TrySCNetworkInterfaceGetInterfaceType ¶
func TrySCNetworkInterfaceGetInterfaceType(interface_ SCNetworkInterfaceRef) (corefoundation.CFStringRef, error)
TrySCNetworkInterfaceGetInterfaceType is like SCNetworkInterfaceGetInterfaceType but returns an error instead of panicking if SCNetworkInterfaceGetInterfaceType is unavailable at run time.
func TrySCNetworkInterfaceGetLocalizedDisplayName ¶
func TrySCNetworkInterfaceGetLocalizedDisplayName(interface_ SCNetworkInterfaceRef) (corefoundation.CFStringRef, error)
TrySCNetworkInterfaceGetLocalizedDisplayName is like SCNetworkInterfaceGetLocalizedDisplayName but returns an error instead of panicking if SCNetworkInterfaceGetLocalizedDisplayName is unavailable at run time.
func TrySCNetworkInterfaceGetSupportedInterfaceTypes ¶
func TrySCNetworkInterfaceGetSupportedInterfaceTypes(interface_ SCNetworkInterfaceRef) (corefoundation.CFArrayRef, error)
TrySCNetworkInterfaceGetSupportedInterfaceTypes is like SCNetworkInterfaceGetSupportedInterfaceTypes but returns an error instead of panicking if SCNetworkInterfaceGetSupportedInterfaceTypes is unavailable at run time.
func TrySCNetworkInterfaceGetSupportedProtocolTypes ¶
func TrySCNetworkInterfaceGetSupportedProtocolTypes(interface_ SCNetworkInterfaceRef) (corefoundation.CFArrayRef, error)
TrySCNetworkInterfaceGetSupportedProtocolTypes is like SCNetworkInterfaceGetSupportedProtocolTypes but returns an error instead of panicking if SCNetworkInterfaceGetSupportedProtocolTypes is unavailable at run time.
func TrySCNetworkInterfaceGetTypeID ¶
TrySCNetworkInterfaceGetTypeID is like SCNetworkInterfaceGetTypeID but returns an error instead of panicking if SCNetworkInterfaceGetTypeID is unavailable at run time.
func TrySCNetworkInterfaceRefreshConfiguration ¶
func TrySCNetworkInterfaceRefreshConfiguration(ifName corefoundation.CFStringRef) (bool, error)
TrySCNetworkInterfaceRefreshConfiguration is like SCNetworkInterfaceRefreshConfiguration but returns an error instead of panicking if SCNetworkInterfaceRefreshConfiguration is unavailable at run time.
func TrySCNetworkInterfaceSetConfiguration ¶
func TrySCNetworkInterfaceSetConfiguration(interface_ SCNetworkInterfaceRef, config corefoundation.CFDictionaryRef) (bool, error)
TrySCNetworkInterfaceSetConfiguration is like SCNetworkInterfaceSetConfiguration but returns an error instead of panicking if SCNetworkInterfaceSetConfiguration is unavailable at run time.
func TrySCNetworkInterfaceSetExtendedConfiguration ¶
func TrySCNetworkInterfaceSetExtendedConfiguration(interface_ SCNetworkInterfaceRef, extendedType corefoundation.CFStringRef, config corefoundation.CFDictionaryRef) (bool, error)
TrySCNetworkInterfaceSetExtendedConfiguration is like SCNetworkInterfaceSetExtendedConfiguration but returns an error instead of panicking if SCNetworkInterfaceSetExtendedConfiguration is unavailable at run time.
func TrySCNetworkInterfaceSetMTU ¶
func TrySCNetworkInterfaceSetMTU(interface_ SCNetworkInterfaceRef, mtu int32) (bool, error)
TrySCNetworkInterfaceSetMTU is like SCNetworkInterfaceSetMTU but returns an error instead of panicking if SCNetworkInterfaceSetMTU is unavailable at run time.
func TrySCNetworkInterfaceSetMediaOptions ¶
func TrySCNetworkInterfaceSetMediaOptions(interface_ SCNetworkInterfaceRef, subtype corefoundation.CFStringRef, options corefoundation.CFArrayRef) (bool, error)
TrySCNetworkInterfaceSetMediaOptions is like SCNetworkInterfaceSetMediaOptions but returns an error instead of panicking if SCNetworkInterfaceSetMediaOptions is unavailable at run time.
func TrySCNetworkProtocolGetConfiguration ¶
func TrySCNetworkProtocolGetConfiguration(protocol_ SCNetworkProtocolRef) (corefoundation.CFDictionaryRef, error)
TrySCNetworkProtocolGetConfiguration is like SCNetworkProtocolGetConfiguration but returns an error instead of panicking if SCNetworkProtocolGetConfiguration is unavailable at run time.
func TrySCNetworkProtocolGetEnabled ¶
func TrySCNetworkProtocolGetEnabled(protocol_ SCNetworkProtocolRef) (bool, error)
TrySCNetworkProtocolGetEnabled is like SCNetworkProtocolGetEnabled but returns an error instead of panicking if SCNetworkProtocolGetEnabled is unavailable at run time.
func TrySCNetworkProtocolGetProtocolType ¶
func TrySCNetworkProtocolGetProtocolType(protocol_ SCNetworkProtocolRef) (corefoundation.CFStringRef, error)
TrySCNetworkProtocolGetProtocolType is like SCNetworkProtocolGetProtocolType but returns an error instead of panicking if SCNetworkProtocolGetProtocolType is unavailable at run time.
func TrySCNetworkProtocolGetTypeID ¶
TrySCNetworkProtocolGetTypeID is like SCNetworkProtocolGetTypeID but returns an error instead of panicking if SCNetworkProtocolGetTypeID is unavailable at run time.
func TrySCNetworkProtocolSetConfiguration ¶
func TrySCNetworkProtocolSetConfiguration(protocol_ SCNetworkProtocolRef, config corefoundation.CFDictionaryRef) (bool, error)
TrySCNetworkProtocolSetConfiguration is like SCNetworkProtocolSetConfiguration but returns an error instead of panicking if SCNetworkProtocolSetConfiguration is unavailable at run time.
func TrySCNetworkProtocolSetEnabled ¶
func TrySCNetworkProtocolSetEnabled(protocol_ SCNetworkProtocolRef, enabled bool) (bool, error)
TrySCNetworkProtocolSetEnabled is like SCNetworkProtocolSetEnabled but returns an error instead of panicking if SCNetworkProtocolSetEnabled is unavailable at run time.
func TrySCNetworkReachabilityGetFlags ¶
func TrySCNetworkReachabilityGetFlags(target SCNetworkReachabilityRef, flags *SCNetworkReachabilityFlags) (bool, error)
TrySCNetworkReachabilityGetFlags is like SCNetworkReachabilityGetFlags but returns an error instead of panicking if SCNetworkReachabilityGetFlags is unavailable at run time.
func TrySCNetworkReachabilityGetTypeID ¶
TrySCNetworkReachabilityGetTypeID is like SCNetworkReachabilityGetTypeID but returns an error instead of panicking if SCNetworkReachabilityGetTypeID is unavailable at run time.
func TrySCNetworkReachabilityScheduleWithRunLoop ¶
func TrySCNetworkReachabilityScheduleWithRunLoop(target SCNetworkReachabilityRef, runLoop corefoundation.CFRunLoopRef, runLoopMode corefoundation.CFStringRef) (bool, error)
TrySCNetworkReachabilityScheduleWithRunLoop is like SCNetworkReachabilityScheduleWithRunLoop but returns an error instead of panicking if SCNetworkReachabilityScheduleWithRunLoop is unavailable at run time.
func TrySCNetworkReachabilitySetCallback ¶
func TrySCNetworkReachabilitySetCallback(target SCNetworkReachabilityRef, callout SCNetworkReachabilityCallBack, context *SCNetworkReachabilityContext) (bool, error)
TrySCNetworkReachabilitySetCallback is like SCNetworkReachabilitySetCallback but returns an error instead of panicking if SCNetworkReachabilitySetCallback is unavailable at run time.
func TrySCNetworkReachabilitySetDispatchQueue ¶
func TrySCNetworkReachabilitySetDispatchQueue(target SCNetworkReachabilityRef, queue dispatch.Queue) (bool, error)
TrySCNetworkReachabilitySetDispatchQueue is like SCNetworkReachabilitySetDispatchQueue but returns an error instead of panicking if SCNetworkReachabilitySetDispatchQueue is unavailable at run time.
func TrySCNetworkReachabilityUnscheduleFromRunLoop ¶
func TrySCNetworkReachabilityUnscheduleFromRunLoop(target SCNetworkReachabilityRef, runLoop corefoundation.CFRunLoopRef, runLoopMode corefoundation.CFStringRef) (bool, error)
TrySCNetworkReachabilityUnscheduleFromRunLoop is like SCNetworkReachabilityUnscheduleFromRunLoop but returns an error instead of panicking if SCNetworkReachabilityUnscheduleFromRunLoop is unavailable at run time.
func TrySCNetworkServiceAddProtocolType ¶
func TrySCNetworkServiceAddProtocolType(service SCNetworkServiceRef, protocolType corefoundation.CFStringRef) (bool, error)
TrySCNetworkServiceAddProtocolType is like SCNetworkServiceAddProtocolType but returns an error instead of panicking if SCNetworkServiceAddProtocolType is unavailable at run time.
func TrySCNetworkServiceCopyAll ¶
func TrySCNetworkServiceCopyAll(prefs SCPreferencesRef) (corefoundation.CFArrayRef, error)
TrySCNetworkServiceCopyAll is like SCNetworkServiceCopyAll but returns an error instead of panicking if SCNetworkServiceCopyAll is unavailable at run time.
func TrySCNetworkServiceCopyProtocols ¶
func TrySCNetworkServiceCopyProtocols(service SCNetworkServiceRef) (corefoundation.CFArrayRef, error)
TrySCNetworkServiceCopyProtocols is like SCNetworkServiceCopyProtocols but returns an error instead of panicking if SCNetworkServiceCopyProtocols is unavailable at run time.
func TrySCNetworkServiceEstablishDefaultConfiguration ¶
func TrySCNetworkServiceEstablishDefaultConfiguration(service SCNetworkServiceRef) (bool, error)
TrySCNetworkServiceEstablishDefaultConfiguration is like SCNetworkServiceEstablishDefaultConfiguration but returns an error instead of panicking if SCNetworkServiceEstablishDefaultConfiguration is unavailable at run time.
func TrySCNetworkServiceGetEnabled ¶
func TrySCNetworkServiceGetEnabled(service SCNetworkServiceRef) (bool, error)
TrySCNetworkServiceGetEnabled is like SCNetworkServiceGetEnabled but returns an error instead of panicking if SCNetworkServiceGetEnabled is unavailable at run time.
func TrySCNetworkServiceGetName ¶
func TrySCNetworkServiceGetName(service SCNetworkServiceRef) (corefoundation.CFStringRef, error)
TrySCNetworkServiceGetName is like SCNetworkServiceGetName but returns an error instead of panicking if SCNetworkServiceGetName is unavailable at run time.
func TrySCNetworkServiceGetServiceID ¶
func TrySCNetworkServiceGetServiceID(service SCNetworkServiceRef) (corefoundation.CFStringRef, error)
TrySCNetworkServiceGetServiceID is like SCNetworkServiceGetServiceID but returns an error instead of panicking if SCNetworkServiceGetServiceID is unavailable at run time.
func TrySCNetworkServiceGetTypeID ¶
TrySCNetworkServiceGetTypeID is like SCNetworkServiceGetTypeID but returns an error instead of panicking if SCNetworkServiceGetTypeID is unavailable at run time.
func TrySCNetworkServiceRemove ¶
func TrySCNetworkServiceRemove(service SCNetworkServiceRef) (bool, error)
TrySCNetworkServiceRemove is like SCNetworkServiceRemove but returns an error instead of panicking if SCNetworkServiceRemove is unavailable at run time.
func TrySCNetworkServiceRemoveProtocolType ¶
func TrySCNetworkServiceRemoveProtocolType(service SCNetworkServiceRef, protocolType corefoundation.CFStringRef) (bool, error)
TrySCNetworkServiceRemoveProtocolType is like SCNetworkServiceRemoveProtocolType but returns an error instead of panicking if SCNetworkServiceRemoveProtocolType is unavailable at run time.
func TrySCNetworkServiceSetEnabled ¶
func TrySCNetworkServiceSetEnabled(service SCNetworkServiceRef, enabled bool) (bool, error)
TrySCNetworkServiceSetEnabled is like SCNetworkServiceSetEnabled but returns an error instead of panicking if SCNetworkServiceSetEnabled is unavailable at run time.
func TrySCNetworkServiceSetName ¶
func TrySCNetworkServiceSetName(service SCNetworkServiceRef, name corefoundation.CFStringRef) (bool, error)
TrySCNetworkServiceSetName is like SCNetworkServiceSetName but returns an error instead of panicking if SCNetworkServiceSetName is unavailable at run time.
func TrySCNetworkSetAddService ¶
func TrySCNetworkSetAddService(set SCNetworkSetRef, service SCNetworkServiceRef) (bool, error)
TrySCNetworkSetAddService is like SCNetworkSetAddService but returns an error instead of panicking if SCNetworkSetAddService is unavailable at run time.
func TrySCNetworkSetContainsInterface ¶
func TrySCNetworkSetContainsInterface(set SCNetworkSetRef, interface_ SCNetworkInterfaceRef) (bool, error)
TrySCNetworkSetContainsInterface is like SCNetworkSetContainsInterface but returns an error instead of panicking if SCNetworkSetContainsInterface is unavailable at run time.
func TrySCNetworkSetCopyAll ¶
func TrySCNetworkSetCopyAll(prefs SCPreferencesRef) (corefoundation.CFArrayRef, error)
TrySCNetworkSetCopyAll is like SCNetworkSetCopyAll but returns an error instead of panicking if SCNetworkSetCopyAll is unavailable at run time.
func TrySCNetworkSetCopyServices ¶
func TrySCNetworkSetCopyServices(set SCNetworkSetRef) (corefoundation.CFArrayRef, error)
TrySCNetworkSetCopyServices is like SCNetworkSetCopyServices but returns an error instead of panicking if SCNetworkSetCopyServices is unavailable at run time.
func TrySCNetworkSetGetName ¶
func TrySCNetworkSetGetName(set SCNetworkSetRef) (corefoundation.CFStringRef, error)
TrySCNetworkSetGetName is like SCNetworkSetGetName but returns an error instead of panicking if SCNetworkSetGetName is unavailable at run time.
func TrySCNetworkSetGetServiceOrder ¶
func TrySCNetworkSetGetServiceOrder(set SCNetworkSetRef) (corefoundation.CFArrayRef, error)
TrySCNetworkSetGetServiceOrder is like SCNetworkSetGetServiceOrder but returns an error instead of panicking if SCNetworkSetGetServiceOrder is unavailable at run time.
func TrySCNetworkSetGetSetID ¶
func TrySCNetworkSetGetSetID(set SCNetworkSetRef) (corefoundation.CFStringRef, error)
TrySCNetworkSetGetSetID is like SCNetworkSetGetSetID but returns an error instead of panicking if SCNetworkSetGetSetID is unavailable at run time.
func TrySCNetworkSetGetTypeID ¶
TrySCNetworkSetGetTypeID is like SCNetworkSetGetTypeID but returns an error instead of panicking if SCNetworkSetGetTypeID is unavailable at run time.
func TrySCNetworkSetRemove ¶
func TrySCNetworkSetRemove(set SCNetworkSetRef) (bool, error)
TrySCNetworkSetRemove is like SCNetworkSetRemove but returns an error instead of panicking if SCNetworkSetRemove is unavailable at run time.
func TrySCNetworkSetRemoveService ¶
func TrySCNetworkSetRemoveService(set SCNetworkSetRef, service SCNetworkServiceRef) (bool, error)
TrySCNetworkSetRemoveService is like SCNetworkSetRemoveService but returns an error instead of panicking if SCNetworkSetRemoveService is unavailable at run time.
func TrySCNetworkSetSetCurrent ¶
func TrySCNetworkSetSetCurrent(set SCNetworkSetRef) (bool, error)
TrySCNetworkSetSetCurrent is like SCNetworkSetSetCurrent but returns an error instead of panicking if SCNetworkSetSetCurrent is unavailable at run time.
func TrySCNetworkSetSetName ¶
func TrySCNetworkSetSetName(set SCNetworkSetRef, name corefoundation.CFStringRef) (bool, error)
TrySCNetworkSetSetName is like SCNetworkSetSetName but returns an error instead of panicking if SCNetworkSetSetName is unavailable at run time.
func TrySCNetworkSetSetServiceOrder ¶
func TrySCNetworkSetSetServiceOrder(set SCNetworkSetRef, newOrder corefoundation.CFArrayRef) (bool, error)
TrySCNetworkSetSetServiceOrder is like SCNetworkSetSetServiceOrder but returns an error instead of panicking if SCNetworkSetSetServiceOrder is unavailable at run time.
func TrySCPreferencesAddValue ¶
func TrySCPreferencesAddValue(prefs SCPreferencesRef, key corefoundation.CFStringRef, value corefoundation.CFPropertyListRef) (bool, error)
TrySCPreferencesAddValue is like SCPreferencesAddValue but returns an error instead of panicking if SCPreferencesAddValue is unavailable at run time.
func TrySCPreferencesApplyChanges ¶
func TrySCPreferencesApplyChanges(prefs SCPreferencesRef) (bool, error)
TrySCPreferencesApplyChanges is like SCPreferencesApplyChanges but returns an error instead of panicking if SCPreferencesApplyChanges is unavailable at run time.
func TrySCPreferencesCommitChanges ¶
func TrySCPreferencesCommitChanges(prefs SCPreferencesRef) (bool, error)
TrySCPreferencesCommitChanges is like SCPreferencesCommitChanges but returns an error instead of panicking if SCPreferencesCommitChanges is unavailable at run time.
func TrySCPreferencesCopyKeyList ¶
func TrySCPreferencesCopyKeyList(prefs SCPreferencesRef) (corefoundation.CFArrayRef, error)
TrySCPreferencesCopyKeyList is like SCPreferencesCopyKeyList but returns an error instead of panicking if SCPreferencesCopyKeyList is unavailable at run time.
func TrySCPreferencesGetSignature ¶
func TrySCPreferencesGetSignature(prefs SCPreferencesRef) (corefoundation.CFDataRef, error)
TrySCPreferencesGetSignature is like SCPreferencesGetSignature but returns an error instead of panicking if SCPreferencesGetSignature is unavailable at run time.
func TrySCPreferencesGetTypeID ¶
TrySCPreferencesGetTypeID is like SCPreferencesGetTypeID but returns an error instead of panicking if SCPreferencesGetTypeID is unavailable at run time.
func TrySCPreferencesGetValue ¶
func TrySCPreferencesGetValue(prefs SCPreferencesRef, key corefoundation.CFStringRef) (corefoundation.CFPropertyListRef, error)
TrySCPreferencesGetValue is like SCPreferencesGetValue but returns an error instead of panicking if SCPreferencesGetValue is unavailable at run time.
func TrySCPreferencesLock ¶
func TrySCPreferencesLock(prefs SCPreferencesRef, wait bool) (bool, error)
TrySCPreferencesLock is like SCPreferencesLock but returns an error instead of panicking if SCPreferencesLock is unavailable at run time.
func TrySCPreferencesPathCreateUniqueChild ¶
func TrySCPreferencesPathCreateUniqueChild(prefs SCPreferencesRef, prefix corefoundation.CFStringRef) (corefoundation.CFStringRef, error)
TrySCPreferencesPathCreateUniqueChild is like SCPreferencesPathCreateUniqueChild but returns an error instead of panicking if SCPreferencesPathCreateUniqueChild is unavailable at run time.
func TrySCPreferencesPathGetLink ¶
func TrySCPreferencesPathGetLink(prefs SCPreferencesRef, path corefoundation.CFStringRef) (corefoundation.CFStringRef, error)
TrySCPreferencesPathGetLink is like SCPreferencesPathGetLink but returns an error instead of panicking if SCPreferencesPathGetLink is unavailable at run time.
func TrySCPreferencesPathGetValue ¶
func TrySCPreferencesPathGetValue(prefs SCPreferencesRef, path corefoundation.CFStringRef) (corefoundation.CFDictionaryRef, error)
TrySCPreferencesPathGetValue is like SCPreferencesPathGetValue but returns an error instead of panicking if SCPreferencesPathGetValue is unavailable at run time.
func TrySCPreferencesPathRemoveValue ¶
func TrySCPreferencesPathRemoveValue(prefs SCPreferencesRef, path corefoundation.CFStringRef) (bool, error)
TrySCPreferencesPathRemoveValue is like SCPreferencesPathRemoveValue but returns an error instead of panicking if SCPreferencesPathRemoveValue is unavailable at run time.
func TrySCPreferencesPathSetLink ¶
func TrySCPreferencesPathSetLink(prefs SCPreferencesRef, path corefoundation.CFStringRef, link corefoundation.CFStringRef) (bool, error)
TrySCPreferencesPathSetLink is like SCPreferencesPathSetLink but returns an error instead of panicking if SCPreferencesPathSetLink is unavailable at run time.
func TrySCPreferencesPathSetValue ¶
func TrySCPreferencesPathSetValue(prefs SCPreferencesRef, path corefoundation.CFStringRef, value corefoundation.CFDictionaryRef) (bool, error)
TrySCPreferencesPathSetValue is like SCPreferencesPathSetValue but returns an error instead of panicking if SCPreferencesPathSetValue is unavailable at run time.
func TrySCPreferencesRemoveValue ¶
func TrySCPreferencesRemoveValue(prefs SCPreferencesRef, key corefoundation.CFStringRef) (bool, error)
TrySCPreferencesRemoveValue is like SCPreferencesRemoveValue but returns an error instead of panicking if SCPreferencesRemoveValue is unavailable at run time.
func TrySCPreferencesScheduleWithRunLoop ¶
func TrySCPreferencesScheduleWithRunLoop(prefs SCPreferencesRef, runLoop corefoundation.CFRunLoopRef, runLoopMode corefoundation.CFStringRef) (bool, error)
TrySCPreferencesScheduleWithRunLoop is like SCPreferencesScheduleWithRunLoop but returns an error instead of panicking if SCPreferencesScheduleWithRunLoop is unavailable at run time.
func TrySCPreferencesSetCallback ¶
func TrySCPreferencesSetCallback(prefs SCPreferencesRef, callout SCPreferencesCallBack, context *SCPreferencesContext) (bool, error)
TrySCPreferencesSetCallback is like SCPreferencesSetCallback but returns an error instead of panicking if SCPreferencesSetCallback is unavailable at run time.
func TrySCPreferencesSetComputerName ¶
func TrySCPreferencesSetComputerName(prefs SCPreferencesRef, name corefoundation.CFStringRef, nameEncoding uint32) (bool, error)
TrySCPreferencesSetComputerName is like SCPreferencesSetComputerName but returns an error instead of panicking if SCPreferencesSetComputerName is unavailable at run time.
func TrySCPreferencesSetDispatchQueue ¶
func TrySCPreferencesSetDispatchQueue(prefs SCPreferencesRef, queue dispatch.Queue) (bool, error)
TrySCPreferencesSetDispatchQueue is like SCPreferencesSetDispatchQueue but returns an error instead of panicking if SCPreferencesSetDispatchQueue is unavailable at run time.
func TrySCPreferencesSetLocalHostName ¶
func TrySCPreferencesSetLocalHostName(prefs SCPreferencesRef, name corefoundation.CFStringRef) (bool, error)
TrySCPreferencesSetLocalHostName is like SCPreferencesSetLocalHostName but returns an error instead of panicking if SCPreferencesSetLocalHostName is unavailable at run time.
func TrySCPreferencesSetValue ¶
func TrySCPreferencesSetValue(prefs SCPreferencesRef, key corefoundation.CFStringRef, value corefoundation.CFPropertyListRef) (bool, error)
TrySCPreferencesSetValue is like SCPreferencesSetValue but returns an error instead of panicking if SCPreferencesSetValue is unavailable at run time.
func TrySCPreferencesSynchronize ¶
func TrySCPreferencesSynchronize(prefs SCPreferencesRef) error
TrySCPreferencesSynchronize is like SCPreferencesSynchronize but returns an error instead of panicking if SCPreferencesSynchronize is unavailable at run time.
func TrySCPreferencesUnlock ¶
func TrySCPreferencesUnlock(prefs SCPreferencesRef) (bool, error)
TrySCPreferencesUnlock is like SCPreferencesUnlock but returns an error instead of panicking if SCPreferencesUnlock is unavailable at run time.
func TrySCPreferencesUnscheduleFromRunLoop ¶
func TrySCPreferencesUnscheduleFromRunLoop(prefs SCPreferencesRef, runLoop corefoundation.CFRunLoopRef, runLoopMode corefoundation.CFStringRef) (bool, error)
TrySCPreferencesUnscheduleFromRunLoop is like SCPreferencesUnscheduleFromRunLoop but returns an error instead of panicking if SCPreferencesUnscheduleFromRunLoop is unavailable at run time.
func TrySCVLANInterfaceCopyAll ¶
func TrySCVLANInterfaceCopyAll(prefs SCPreferencesRef) (corefoundation.CFArrayRef, error)
TrySCVLANInterfaceCopyAll is like SCVLANInterfaceCopyAll but returns an error instead of panicking if SCVLANInterfaceCopyAll is unavailable at run time.
func TrySCVLANInterfaceCopyAvailablePhysicalInterfaces ¶
func TrySCVLANInterfaceCopyAvailablePhysicalInterfaces() (corefoundation.CFArrayRef, error)
TrySCVLANInterfaceCopyAvailablePhysicalInterfaces is like SCVLANInterfaceCopyAvailablePhysicalInterfaces but returns an error instead of panicking if SCVLANInterfaceCopyAvailablePhysicalInterfaces is unavailable at run time.
func TrySCVLANInterfaceGetOptions ¶
func TrySCVLANInterfaceGetOptions(vlan SCVLANInterfaceRef) (corefoundation.CFDictionaryRef, error)
TrySCVLANInterfaceGetOptions is like SCVLANInterfaceGetOptions but returns an error instead of panicking if SCVLANInterfaceGetOptions is unavailable at run time.
func TrySCVLANInterfaceGetTag ¶
func TrySCVLANInterfaceGetTag(vlan SCVLANInterfaceRef) (corefoundation.CFNumberRef, error)
TrySCVLANInterfaceGetTag is like SCVLANInterfaceGetTag but returns an error instead of panicking if SCVLANInterfaceGetTag is unavailable at run time.
func TrySCVLANInterfaceRemove ¶
func TrySCVLANInterfaceRemove(vlan SCVLANInterfaceRef) (bool, error)
TrySCVLANInterfaceRemove is like SCVLANInterfaceRemove but returns an error instead of panicking if SCVLANInterfaceRemove is unavailable at run time.
func TrySCVLANInterfaceSetLocalizedDisplayName ¶
func TrySCVLANInterfaceSetLocalizedDisplayName(vlan SCVLANInterfaceRef, newName corefoundation.CFStringRef) (bool, error)
TrySCVLANInterfaceSetLocalizedDisplayName is like SCVLANInterfaceSetLocalizedDisplayName but returns an error instead of panicking if SCVLANInterfaceSetLocalizedDisplayName is unavailable at run time.
func TrySCVLANInterfaceSetOptions ¶
func TrySCVLANInterfaceSetOptions(vlan SCVLANInterfaceRef, newOptions corefoundation.CFDictionaryRef) (bool, error)
TrySCVLANInterfaceSetOptions is like SCVLANInterfaceSetOptions but returns an error instead of panicking if SCVLANInterfaceSetOptions is unavailable at run time.
func TrySCVLANInterfaceSetPhysicalInterfaceAndTag ¶
func TrySCVLANInterfaceSetPhysicalInterfaceAndTag(vlan SCVLANInterfaceRef, physical SCNetworkInterfaceRef, tag corefoundation.CFNumberRef) (bool, error)
TrySCVLANInterfaceSetPhysicalInterfaceAndTag is like SCVLANInterfaceSetPhysicalInterfaceAndTag but returns an error instead of panicking if SCVLANInterfaceSetPhysicalInterfaceAndTag is unavailable at run time.
Types ¶
type KSCBondStatus ¶
type KSCBondStatus uint32
const ( // KSCBondStatusLinkInvalid: The link state is not valid (such as down, half-duplex, or wrong speed). KSCBondStatusLinkInvalid KSCBondStatus = 1 // KSCBondStatusNoPartner: The port on the switch to which the device is connected doesn’t seem to have 802.3ad Link Aggregation enabled. KSCBondStatusNoPartner KSCBondStatus = 2 // KSCBondStatusNotInActiveGroup: Communication with a partner is occurring, but the link aggregation group is different from the one that is active. KSCBondStatusNotInActiveGroup KSCBondStatus = 3 // KSCBondStatusOK: The status is valid (for example, enabled, active, running, and so on). KSCBondStatusOK KSCBondStatus = 0 // KSCBondStatusUnknown: Nonspecific failure. KSCBondStatusUnknown KSCBondStatus = 999 )
func (KSCBondStatus) String ¶
func (e KSCBondStatus) String() string
type KSCNetworkFlags ¶
type KSCNetworkFlags uint32
const ( // KSCNetworkFlagsConnectionAutomatic: The specified node name or address can be reached using the current network configuration, but a connection must first be established. KSCNetworkFlagsConnectionAutomatic KSCNetworkFlags = 8 // KSCNetworkFlagsConnectionRequired: The specified node name or address can be reached using the current network configuration, but a connection must first be established. KSCNetworkFlagsConnectionRequired KSCNetworkFlags = 4 // KSCNetworkFlagsInterventionRequired: The specified node name or address can be reached using the current network configuration, but a connection must first be established. KSCNetworkFlagsInterventionRequired KSCNetworkFlags = 16 // KSCNetworkFlagsIsDirect: Network traffic to the specified node name or address does not go through a gateway, but is routed directly to one of the interfaces in the system. KSCNetworkFlagsIsDirect KSCNetworkFlags = 131072 // KSCNetworkFlagsIsLocalAddress: The specified node name or address is one associated with a network interface on the current system. KSCNetworkFlagsIsLocalAddress KSCNetworkFlags = 65536 // KSCNetworkFlagsReachable: The specified node name or address can be reached using the current network configuration. KSCNetworkFlagsReachable KSCNetworkFlags = 2 // KSCNetworkFlagsTransientConnection: The specified node name or address can be reached via a transient connection, such as PPP. KSCNetworkFlagsTransientConnection KSCNetworkFlags = 1 )
func (KSCNetworkFlags) String ¶
func (e KSCNetworkFlags) String() string
type KSCStatus ¶
type KSCStatus uint32
const ( // KSCStatusAccessError: Permission is denied; you must be root to obtain a lock. KSCStatusAccessError KSCStatus = 1003 // KSCStatusConnectionIgnore: Network connection information is not available at this time. KSCStatusConnectionIgnore KSCStatus = 5002 // KSCStatusConnectionNoService: Network service for the connection is not available. KSCStatusConnectionNoService KSCStatus = 5001 // KSCStatusFailed: A nonspecific failure occurred. KSCStatusFailed KSCStatus = 1001 // KSCStatusInvalidArgument: An invalid argument was specified. KSCStatusInvalidArgument KSCStatus = 1002 // KSCStatusKeyExists: # Discussion KSCStatusKeyExists KSCStatus = 1005 // KSCStatusLocked: A lock is already held. KSCStatusLocked KSCStatus = 1006 // KSCStatusMaxLink: The maximum link count is exceeded. KSCStatusMaxLink KSCStatus = 3006 // KSCStatusNeedLock: A lock is required for this operation. KSCStatusNeedLock KSCStatus = 1007 // KSCStatusNoConfigFile: The configuration file cannot be found. KSCStatusNoConfigFile KSCStatus = 3003 // KSCStatusNoKey: No such key. KSCStatusNoKey KSCStatus = 1004 // KSCStatusNoLink: No such link exists. KSCStatusNoLink KSCStatus = 3004 // KSCStatusNoPrefsSession: The preferences session is not active. KSCStatusNoPrefsSession KSCStatus = 3001 // KSCStatusNoStoreServer: The configuration daemon is not available or no longer available. KSCStatusNoStoreServer KSCStatus = 2002 // KSCStatusNoStoreSession: The configuration daemon session is not active. KSCStatusNoStoreSession KSCStatus = 2001 // KSCStatusNotifierActive: Notifier is currently active. KSCStatusNotifierActive KSCStatus = 2003 // KSCStatusOK: The call was successful. KSCStatusOK KSCStatus = 0 // KSCStatusPrefsBusy: A preferences update is currently in progress. KSCStatusPrefsBusy KSCStatus = 3002 // KSCStatusReachabilityUnknown: Network reachability cannot be determined. KSCStatusReachabilityUnknown KSCStatus = 4001 // KSCStatusStale: A write was attempted on a stale version of the object. KSCStatusStale KSCStatus = 3005 )
type SCBondInterfaceRef ¶
type SCBondInterfaceRef uintptr
SCBondInterfaceRef is the reference to an object that represents an Ethernet bond interface.
See: https://developer.apple.com/documentation/SystemConfiguration/SCBondInterface
func SCBondInterfaceCreate ¶
func SCBondInterfaceCreate(prefs SCPreferencesRef) SCBondInterfaceRef
SCBondInterfaceCreate creates a new Ethernet bond interface.
It panics if SCBondInterfaceCreate is unavailable at run time; use TrySCBondInterfaceCreate to get an error instead.
See: https://developer.apple.com/documentation/SystemConfiguration/SCBondInterfaceCreate(_:)
func TrySCBondInterfaceCreate ¶
func TrySCBondInterfaceCreate(prefs SCPreferencesRef) (SCBondInterfaceRef, error)
TrySCBondInterfaceCreate is like SCBondInterfaceCreate but returns an error instead of panicking if SCBondInterfaceCreate is unavailable at run time.
type SCBondStatusRef ¶
type SCBondStatusRef uintptr
SCBondStatusRef is the reference to an object that represents the status of an Ethernet bond interface.
See: https://developer.apple.com/documentation/SystemConfiguration/SCBondStatus
func SCBondInterfaceCopyStatus ¶
func SCBondInterfaceCopyStatus(bond SCBondInterfaceRef) SCBondStatusRef
SCBondInterfaceCopyStatus returns the status of the specified Ethernet bond interface.
It panics if SCBondInterfaceCopyStatus is unavailable at run time; use TrySCBondInterfaceCopyStatus to get an error instead.
See: https://developer.apple.com/documentation/SystemConfiguration/SCBondInterfaceCopyStatus(_:)
func TrySCBondInterfaceCopyStatus ¶
func TrySCBondInterfaceCopyStatus(bond SCBondInterfaceRef) (SCBondStatusRef, error)
TrySCBondInterfaceCopyStatus is like SCBondInterfaceCopyStatus but returns an error instead of panicking if SCBondInterfaceCopyStatus is unavailable at run time.
type SCDynamicStoreCallBack ¶
type SCDynamicStoreCallBack = func(SCDynamicStoreRef, uintptr, unsafe.Pointer)
SCDynamicStoreCallBack is callback used when notification of changes made to the dynamic store is delivered.
See: https://developer.apple.com/documentation/SystemConfiguration/SCDynamicStoreCallBack
type SCDynamicStoreContext ¶
type SCDynamicStoreContext struct {
Version int // The version number of the structure type being passed in as a parameter to the [SCDynamicStore] creation function (such as [SCDynamicStoreCreate(_:_:_:_:)](<https://developer.apple.com/documentation/SystemConfiguration/SCDynamicStoreCreate(_:_:_:_:)>)). This structure is version `0`.
Info unsafe.Pointer // A C pointer to a user-specified block of data.
// C: const void *(*)(const void *)
Retain uintptr // The callback used to add a retain for the `info` field. If this parameter is not a pointer to a function of the correct prototype, the behavior is undefined. The value of this parameter can be [NULL].
// C: void (*)(const void *)
Release uintptr // The callback used to remove a retain previously added for the `info` field. If this parameter is not a pointer to a function of the correct prototype, the behavior is undefined. The value of this parameter can be [NULL].
// C: const struct __CFString *(*)(const void *)
CopyDescription uintptr // The callback used to provide a description of the `info` field.
}
SCDynamicStoreContext - Structure containing user-specified data and callbacks for a dynamic store session.
[Full Topic] [Full Topic]: https://developer.apple.com/documentation/SystemConfiguration/SCDynamicStoreContext
type SCDynamicStoreRef ¶
type SCDynamicStoreRef uintptr
SCDynamicStoreRef is the handle to an open dynamic store session with the system configuration daemon.
See: https://developer.apple.com/documentation/SystemConfiguration/SCDynamicStore
func SCDynamicStoreCreate ¶
func SCDynamicStoreCreate(allocator corefoundation.CFAllocatorRef, name corefoundation.CFStringRef, callout SCDynamicStoreCallBack, context *SCDynamicStoreContext) SCDynamicStoreRef
SCDynamicStoreCreate creates a new session used to interact with the dynamic store maintained by the System Configuration server.
It panics if SCDynamicStoreCreate is unavailable at run time; use TrySCDynamicStoreCreate to get an error instead.
See: https://developer.apple.com/documentation/SystemConfiguration/SCDynamicStoreCreate(_:_:_:_:)
func SCDynamicStoreCreateWithOptions ¶
func SCDynamicStoreCreateWithOptions(allocator corefoundation.CFAllocatorRef, name corefoundation.CFStringRef, storeOptions corefoundation.CFDictionaryRef, callout SCDynamicStoreCallBack, context *SCDynamicStoreContext) SCDynamicStoreRef
SCDynamicStoreCreateWithOptions creates a new session used to interact with the dynamic store maintained by the System Configuration server.
It panics if SCDynamicStoreCreateWithOptions is unavailable at run time; use TrySCDynamicStoreCreateWithOptions to get an error instead.
func TrySCDynamicStoreCreate ¶
func TrySCDynamicStoreCreate(allocator corefoundation.CFAllocatorRef, name corefoundation.CFStringRef, callout SCDynamicStoreCallBack, context *SCDynamicStoreContext) (SCDynamicStoreRef, error)
TrySCDynamicStoreCreate is like SCDynamicStoreCreate but returns an error instead of panicking if SCDynamicStoreCreate is unavailable at run time.
func TrySCDynamicStoreCreateWithOptions ¶
func TrySCDynamicStoreCreateWithOptions(allocator corefoundation.CFAllocatorRef, name corefoundation.CFStringRef, storeOptions corefoundation.CFDictionaryRef, callout SCDynamicStoreCallBack, context *SCDynamicStoreContext) (SCDynamicStoreRef, error)
TrySCDynamicStoreCreateWithOptions is like SCDynamicStoreCreateWithOptions but returns an error instead of panicking if SCDynamicStoreCreateWithOptions is unavailable at run time.
type SCNetworkConnectionCallBack ¶
type SCNetworkConnectionCallBack = func(connection SCNetworkConnectionRef, status SCNetworkConnectionStatus, info unsafe.Pointer)
SCNetworkConnectionCallBack is the type of callback function used when a status event is delivered.
See: https://developer.apple.com/documentation/SystemConfiguration/SCNetworkConnectionCallBack
type SCNetworkConnectionContext ¶
type SCNetworkConnectionContext struct {
Version int // The version number of the structure type being passed in as a parameter to the [SCNetworkConnectionCreateWithServiceID(_:_:_:_:)](<https://developer.apple.com/documentation/SystemConfiguration/SCNetworkConnectionCreateWithServiceID(_:_:_:_:)>) function. This structure is version `0`.
Info unsafe.Pointer // A C pointer to a user-specified block of data.
// C: const void *(*)(const void *)
Retain uintptr // The callback used to add a retain for the info field. If this parameter is not a pointer to a function of the correct prototype, the behavior is undefined. The value may be [NULL].
// C: void (*)(const void *)
Release uintptr // The calllback used to remove a retain previously added for the info field. If this parameter is not a pointer to a function of the correct prototype, the behavior is undefined. The value may be [NULL].
// C: const struct __CFString *(*)(const void *)
CopyDescription uintptr // The callback used to provide a description of the `info` field.
}
SCNetworkConnectionContext - A structure containing user-specified data and callbacks for a network connection.
[Full Topic] [Full Topic]: https://developer.apple.com/documentation/SystemConfiguration/SCNetworkConnectionContext
type SCNetworkConnectionFlags ¶
type SCNetworkConnectionFlags = uint32
SCNetworkConnectionFlags is flags that indicate whether the specified network node name or address is reachable, whether a connection is required, and whether some user intervention may be required when establishing a connection.
See: https://developer.apple.com/documentation/SystemConfiguration/SCNetworkConnectionFlags
type SCNetworkConnectionPPPStatus ¶
type SCNetworkConnectionPPPStatus int32
See: https://developer.apple.com/documentation/SystemConfiguration/SCNetworkConnectionPPPStatus
const ( // KSCNetworkConnectionPPPAuthenticating: PPP is authenticating to the server (PAP, CHAP, MS-CHAP, or EAP protocols). KSCNetworkConnectionPPPAuthenticating SCNetworkConnectionPPPStatus = 5 // KSCNetworkConnectionPPPConnected: PPP is now fully connected for at least one networking layer. KSCNetworkConnectionPPPConnected SCNetworkConnectionPPPStatus = 8 // KSCNetworkConnectionPPPConnectingLink: PPP is connecting the lower connection layer (for example, the modem is dialing out). KSCNetworkConnectionPPPConnectingLink SCNetworkConnectionPPPStatus = 2 // KSCNetworkConnectionPPPDialOnTraffic: PPP is waiting for networking traffic to automatically establish the connection. KSCNetworkConnectionPPPDialOnTraffic SCNetworkConnectionPPPStatus = 3 // KSCNetworkConnectionPPPDisconnected: PPP is disconnected. KSCNetworkConnectionPPPDisconnected SCNetworkConnectionPPPStatus = 0 // KSCNetworkConnectionPPPDisconnectingLink: PPP is disconnecting the lower level (for example, the modem is hanging up). KSCNetworkConnectionPPPDisconnectingLink SCNetworkConnectionPPPStatus = 10 // KSCNetworkConnectionPPPHoldingLinkOff: PPP is disconnected and maintaining the link temporarily off. KSCNetworkConnectionPPPHoldingLinkOff SCNetworkConnectionPPPStatus = 11 // KSCNetworkConnectionPPPInitializing: PPP is initializing. KSCNetworkConnectionPPPInitializing SCNetworkConnectionPPPStatus = 1 // KSCNetworkConnectionPPPNegotiatingLink: The PPP lower layer is connected and PPP is negotiating the link layer (LCP protocol). KSCNetworkConnectionPPPNegotiatingLink SCNetworkConnectionPPPStatus = 4 // KSCNetworkConnectionPPPNegotiatingNetwork: PPP is now authenticated and negotiating the networking layer (IPCP or IPv6CP protocols). KSCNetworkConnectionPPPNegotiatingNetwork SCNetworkConnectionPPPStatus = 7 // KSCNetworkConnectionPPPSuspended: PPP is suspended as a result of the suspend command (for example, when a V.92 Modem is On Hold). KSCNetworkConnectionPPPSuspended SCNetworkConnectionPPPStatus = 12 // KSCNetworkConnectionPPPTerminating: PPP networking and link protocols are terminating. KSCNetworkConnectionPPPTerminating SCNetworkConnectionPPPStatus = 9 // KSCNetworkConnectionPPPWaitingForCallBack: PPP is waiting for the server to call back. KSCNetworkConnectionPPPWaitingForCallBack SCNetworkConnectionPPPStatus = 6 // KSCNetworkConnectionPPPWaitingForRedial: PPP has found a busy server and is waiting for redial. KSCNetworkConnectionPPPWaitingForRedial SCNetworkConnectionPPPStatus = 13 )
func (SCNetworkConnectionPPPStatus) String ¶
func (e SCNetworkConnectionPPPStatus) String() string
type SCNetworkConnectionRef ¶
type SCNetworkConnectionRef uintptr
SCNetworkConnectionRef is the handle to manage a connection-oriented service.
See: https://developer.apple.com/documentation/SystemConfiguration/SCNetworkConnection
func SCNetworkConnectionCreateWithServiceID ¶
func SCNetworkConnectionCreateWithServiceID(allocator corefoundation.CFAllocatorRef, serviceID corefoundation.CFStringRef, callout SCNetworkConnectionCallBack, context *SCNetworkConnectionContext) SCNetworkConnectionRef
SCNetworkConnectionCreateWithServiceID creates a new connection reference to use for getting the status or for connecting or disconnecting the associated service.
It panics if SCNetworkConnectionCreateWithServiceID is unavailable at run time; use TrySCNetworkConnectionCreateWithServiceID to get an error instead.
func TrySCNetworkConnectionCreateWithServiceID ¶
func TrySCNetworkConnectionCreateWithServiceID(allocator corefoundation.CFAllocatorRef, serviceID corefoundation.CFStringRef, callout SCNetworkConnectionCallBack, context *SCNetworkConnectionContext) (SCNetworkConnectionRef, error)
TrySCNetworkConnectionCreateWithServiceID is like SCNetworkConnectionCreateWithServiceID but returns an error instead of panicking if SCNetworkConnectionCreateWithServiceID is unavailable at run time.
type SCNetworkConnectionStatus ¶
type SCNetworkConnectionStatus int32
See: https://developer.apple.com/documentation/SystemConfiguration/SCNetworkConnectionStatus
const ( // KSCNetworkConnectionConnected: The network connection is connected. KSCNetworkConnectionConnected SCNetworkConnectionStatus = 2 // KSCNetworkConnectionConnecting: The network connection is connecting. KSCNetworkConnectionConnecting SCNetworkConnectionStatus = 1 // KSCNetworkConnectionDisconnected: The network connection is disconnected. KSCNetworkConnectionDisconnected SCNetworkConnectionStatus = 0 // KSCNetworkConnectionDisconnecting: The network connection is disconnecting. KSCNetworkConnectionDisconnecting SCNetworkConnectionStatus = 3 // KSCNetworkConnectionInvalid: The network connection refers to an invalid service. KSCNetworkConnectionInvalid SCNetworkConnectionStatus = -1 )
func SCNetworkConnectionGetStatus ¶
func SCNetworkConnectionGetStatus(connection SCNetworkConnectionRef) SCNetworkConnectionStatus
SCNetworkConnectionGetStatus returns the status of the specified network connection.
It panics if SCNetworkConnectionGetStatus is unavailable at run time; use TrySCNetworkConnectionGetStatus to get an error instead.
See: https://developer.apple.com/documentation/SystemConfiguration/SCNetworkConnectionGetStatus(_:)
func TrySCNetworkConnectionGetStatus ¶
func TrySCNetworkConnectionGetStatus(connection SCNetworkConnectionRef) (SCNetworkConnectionStatus, error)
TrySCNetworkConnectionGetStatus is like SCNetworkConnectionGetStatus but returns an error instead of panicking if SCNetworkConnectionGetStatus is unavailable at run time.
func (SCNetworkConnectionStatus) String ¶
func (e SCNetworkConnectionStatus) String() string
type SCNetworkInterfaceRef ¶
type SCNetworkInterfaceRef uintptr
SCNetworkInterfaceRef is the reference to an object that represents a network interface.
See: https://developer.apple.com/documentation/SystemConfiguration/SCNetworkInterface
var ( // KSCNetworkInterfaceIPv4 is a network interface that can used for layering other interfaces (for example, 6to4, PPTP, or L2TP) over an existing IPv4 network. // // See: https://developer.apple.com/documentation/SystemConfiguration/kSCNetworkInterfaceIPv4 KSCNetworkInterfaceIPv4 SCNetworkInterfaceRef )
func SCNetworkInterfaceCreateWithInterface ¶
func SCNetworkInterfaceCreateWithInterface(interface_ SCNetworkInterfaceRef, interfaceType corefoundation.CFStringRef) SCNetworkInterfaceRef
SCNetworkInterfaceCreateWithInterface creates a new network interface layered on top of the specified interface.
It panics if SCNetworkInterfaceCreateWithInterface is unavailable at run time; use TrySCNetworkInterfaceCreateWithInterface to get an error instead.
func SCNetworkInterfaceGetInterface ¶
func SCNetworkInterfaceGetInterface(interface_ SCNetworkInterfaceRef) SCNetworkInterfaceRef
SCNetworkInterfaceGetInterface returns the underlying interface, for layered network interfaces.
It panics if SCNetworkInterfaceGetInterface is unavailable at run time; use TrySCNetworkInterfaceGetInterface to get an error instead.
See: https://developer.apple.com/documentation/SystemConfiguration/SCNetworkInterfaceGetInterface(_:)
func SCNetworkServiceGetInterface ¶
func SCNetworkServiceGetInterface(service SCNetworkServiceRef) SCNetworkInterfaceRef
SCNetworkServiceGetInterface returns the network interface associated with the specified service.
It panics if SCNetworkServiceGetInterface is unavailable at run time; use TrySCNetworkServiceGetInterface to get an error instead.
See: https://developer.apple.com/documentation/SystemConfiguration/SCNetworkServiceGetInterface(_:)
func SCVLANInterfaceGetPhysicalInterface ¶
func SCVLANInterfaceGetPhysicalInterface(vlan SCVLANInterfaceRef) SCNetworkInterfaceRef
SCVLANInterfaceGetPhysicalInterface returns the physical interface for the specified virtual LAN (VLAN) interface.
It panics if SCVLANInterfaceGetPhysicalInterface is unavailable at run time; use TrySCVLANInterfaceGetPhysicalInterface to get an error instead.
func TrySCNetworkInterfaceCreateWithInterface ¶
func TrySCNetworkInterfaceCreateWithInterface(interface_ SCNetworkInterfaceRef, interfaceType corefoundation.CFStringRef) (SCNetworkInterfaceRef, error)
TrySCNetworkInterfaceCreateWithInterface is like SCNetworkInterfaceCreateWithInterface but returns an error instead of panicking if SCNetworkInterfaceCreateWithInterface is unavailable at run time.
func TrySCNetworkInterfaceGetInterface ¶
func TrySCNetworkInterfaceGetInterface(interface_ SCNetworkInterfaceRef) (SCNetworkInterfaceRef, error)
TrySCNetworkInterfaceGetInterface is like SCNetworkInterfaceGetInterface but returns an error instead of panicking if SCNetworkInterfaceGetInterface is unavailable at run time.
func TrySCNetworkServiceGetInterface ¶
func TrySCNetworkServiceGetInterface(service SCNetworkServiceRef) (SCNetworkInterfaceRef, error)
TrySCNetworkServiceGetInterface is like SCNetworkServiceGetInterface but returns an error instead of panicking if SCNetworkServiceGetInterface is unavailable at run time.
func TrySCVLANInterfaceGetPhysicalInterface ¶
func TrySCVLANInterfaceGetPhysicalInterface(vlan SCVLANInterfaceRef) (SCNetworkInterfaceRef, error)
TrySCVLANInterfaceGetPhysicalInterface is like SCVLANInterfaceGetPhysicalInterface but returns an error instead of panicking if SCVLANInterfaceGetPhysicalInterface is unavailable at run time.
type SCNetworkProtocolRef ¶
type SCNetworkProtocolRef uintptr
SCNetworkProtocolRef is the reference to an object that represents a network protocol.
See: https://developer.apple.com/documentation/SystemConfiguration/SCNetworkProtocol
func SCNetworkServiceCopyProtocol ¶
func SCNetworkServiceCopyProtocol(service SCNetworkServiceRef, protocolType corefoundation.CFStringRef) SCNetworkProtocolRef
SCNetworkServiceCopyProtocol returns the network protocol of the specified type for the specified service.
It panics if SCNetworkServiceCopyProtocol is unavailable at run time; use TrySCNetworkServiceCopyProtocol to get an error instead.
See: https://developer.apple.com/documentation/SystemConfiguration/SCNetworkServiceCopyProtocol(_:_:)
func TrySCNetworkServiceCopyProtocol ¶
func TrySCNetworkServiceCopyProtocol(service SCNetworkServiceRef, protocolType corefoundation.CFStringRef) (SCNetworkProtocolRef, error)
TrySCNetworkServiceCopyProtocol is like SCNetworkServiceCopyProtocol but returns an error instead of panicking if SCNetworkServiceCopyProtocol is unavailable at run time.
type SCNetworkReachabilityCallBack ¶
type SCNetworkReachabilityCallBack = func(target SCNetworkReachabilityRef, flags uint, info unsafe.Pointer)
SCNetworkReachabilityCallBack is type of callback function used when the reachability of a network address or name changes.
See: https://developer.apple.com/documentation/SystemConfiguration/SCNetworkReachabilityCallBack
type SCNetworkReachabilityContext ¶
type SCNetworkReachabilityContext struct {
Version int // The version number of the structure type being passed in as a parameter to an [SCDynamicStore] creation function. This structure is version `0`.
Info unsafe.Pointer // A C pointer to a user-specified block of data.
// C: const void *(*)(const void *)
Retain uintptr // The callback used to add a retain for the info field. If this parameter is not a pointer to a function of the correct prototype, the behavior is undefined. The value can be [NULL].
// C: void (*)(const void *)
Release uintptr // The callback used to remove a retain previously added for the info field. If this parameter is not a pointer to a function of the correct prototype, the behavior is undefined. The value can be [NULL].
// C: const struct __CFString *(*)(const void *)
CopyDescription uintptr // The callback used to provide a description of the `info` field.
}
SCNetworkReachabilityContext - Structure containing user-specified data and callbacks used with [SCNetworkReachabilitySetCallback(_:_:_:)](<https://developer.apple.com/documentation/SystemConfiguration/SCNetworkReachabilitySetCallback(_:_:_:)>).
[Full Topic] [Full Topic]: https://developer.apple.com/documentation/SystemConfiguration/SCNetworkReachabilityContext
type SCNetworkReachabilityFlags ¶
type SCNetworkReachabilityFlags uint32
See: https://developer.apple.com/documentation/SystemConfiguration/SCNetworkReachabilityFlags
const ( // KSCNetworkReachabilityFlagsConnectionAutomatic: The specified node name or address can be reached using the current network configuration, but a connection must first be established. KSCNetworkReachabilityFlagsConnectionAutomatic SCNetworkReachabilityFlags = 8 // KSCNetworkReachabilityFlagsConnectionOnDemand: The specified node name or address can be reached using the current network configuration, but a connection must first be established. KSCNetworkReachabilityFlagsConnectionOnDemand SCNetworkReachabilityFlags = 32 // KSCNetworkReachabilityFlagsConnectionOnTraffic: The specified node name or address can be reached using the current network configuration, but a connection must first be established. KSCNetworkReachabilityFlagsConnectionOnTraffic SCNetworkReachabilityFlags = 8 // KSCNetworkReachabilityFlagsConnectionRequired: The specified node name or address can be reached using the current network configuration, but a connection must first be established. KSCNetworkReachabilityFlagsConnectionRequired SCNetworkReachabilityFlags = 4 // KSCNetworkReachabilityFlagsInterventionRequired: The specified node name or address can be reached using the current network configuration, but a connection must first be established. KSCNetworkReachabilityFlagsInterventionRequired SCNetworkReachabilityFlags = 16 // KSCNetworkReachabilityFlagsIsDirect: Network traffic to the specified node name or address will not go through a gateway, but is routed directly to one of the interfaces in the system. KSCNetworkReachabilityFlagsIsDirect SCNetworkReachabilityFlags = 131072 // KSCNetworkReachabilityFlagsIsLocalAddress: The specified node name or address is one that is associated with a network interface on the current system. KSCNetworkReachabilityFlagsIsLocalAddress SCNetworkReachabilityFlags = 65536 // KSCNetworkReachabilityFlagsIsWWAN: The specified node name or address can be reached via a cellular connection, such as EDGE or GPRS. KSCNetworkReachabilityFlagsIsWWAN SCNetworkReachabilityFlags = 262144 // KSCNetworkReachabilityFlagsReachable: The specified node name or address can be reached using the current network configuration. KSCNetworkReachabilityFlagsReachable SCNetworkReachabilityFlags = 2 // KSCNetworkReachabilityFlagsTransientConnection: The specified node name or address can be reached via a transient connection, such as PPP. KSCNetworkReachabilityFlagsTransientConnection SCNetworkReachabilityFlags = 1 )
func (SCNetworkReachabilityFlags) String ¶
func (e SCNetworkReachabilityFlags) String() string
type SCNetworkReachabilityRef ¶
type SCNetworkReachabilityRef uintptr
SCNetworkReachabilityRef is the handle to a network address or name.
See: https://developer.apple.com/documentation/SystemConfiguration/SCNetworkReachability
func SCNetworkReachabilityCreateWithAddress
deprecated
func SCNetworkReachabilityCreateWithAddress(allocator corefoundation.CFAllocatorRef, address unsafe.Pointer) SCNetworkReachabilityRef
SCNetworkReachabilityCreateWithAddress creates a reachability reference to the specified network address.
It panics if SCNetworkReachabilityCreateWithAddress is unavailable at run time; use TrySCNetworkReachabilityCreateWithAddress to get an error instead.
Deprecated: Deprecated since macOS 14.4.
func SCNetworkReachabilityCreateWithAddressPair
deprecated
func SCNetworkReachabilityCreateWithAddressPair(allocator corefoundation.CFAllocatorRef, localAddress unsafe.Pointer, remoteAddress unsafe.Pointer) SCNetworkReachabilityRef
SCNetworkReachabilityCreateWithAddressPair creates a reachability reference to the specified network address.
It panics if SCNetworkReachabilityCreateWithAddressPair is unavailable at run time; use TrySCNetworkReachabilityCreateWithAddressPair to get an error instead.
Deprecated: Deprecated since macOS 14.4.
func SCNetworkReachabilityCreateWithName
deprecated
func SCNetworkReachabilityCreateWithName(allocator corefoundation.CFAllocatorRef, nodename string) SCNetworkReachabilityRef
SCNetworkReachabilityCreateWithName creates a reachability reference to the specified network host or node name.
It panics if SCNetworkReachabilityCreateWithName is unavailable at run time; use TrySCNetworkReachabilityCreateWithName to get an error instead.
Deprecated: Deprecated since macOS 14.4.
func TrySCNetworkReachabilityCreateWithAddress ¶
func TrySCNetworkReachabilityCreateWithAddress(allocator corefoundation.CFAllocatorRef, address unsafe.Pointer) (SCNetworkReachabilityRef, error)
TrySCNetworkReachabilityCreateWithAddress is like SCNetworkReachabilityCreateWithAddress but returns an error instead of panicking if SCNetworkReachabilityCreateWithAddress is unavailable at run time.
func TrySCNetworkReachabilityCreateWithAddressPair ¶
func TrySCNetworkReachabilityCreateWithAddressPair(allocator corefoundation.CFAllocatorRef, localAddress unsafe.Pointer, remoteAddress unsafe.Pointer) (SCNetworkReachabilityRef, error)
TrySCNetworkReachabilityCreateWithAddressPair is like SCNetworkReachabilityCreateWithAddressPair but returns an error instead of panicking if SCNetworkReachabilityCreateWithAddressPair is unavailable at run time.
func TrySCNetworkReachabilityCreateWithName ¶
func TrySCNetworkReachabilityCreateWithName(allocator corefoundation.CFAllocatorRef, nodename string) (SCNetworkReachabilityRef, error)
TrySCNetworkReachabilityCreateWithName is like SCNetworkReachabilityCreateWithName but returns an error instead of panicking if SCNetworkReachabilityCreateWithName is unavailable at run time.
type SCNetworkServiceRef ¶
type SCNetworkServiceRef uintptr
SCNetworkServiceRef is the reference to an object that represents a network service.
See: https://developer.apple.com/documentation/SystemConfiguration/SCNetworkService
func SCNetworkServiceCopy ¶
func SCNetworkServiceCopy(prefs SCPreferencesRef, serviceID corefoundation.CFStringRef) SCNetworkServiceRef
SCNetworkServiceCopy returns the network service with the specified identifier.
It panics if SCNetworkServiceCopy is unavailable at run time; use TrySCNetworkServiceCopy to get an error instead.
See: https://developer.apple.com/documentation/SystemConfiguration/SCNetworkServiceCopy(_:_:)
func SCNetworkServiceCreate ¶
func SCNetworkServiceCreate(prefs SCPreferencesRef, interface_ SCNetworkInterfaceRef) SCNetworkServiceRef
SCNetworkServiceCreate creates a new network service for the specified interface in the configuration.
It panics if SCNetworkServiceCreate is unavailable at run time; use TrySCNetworkServiceCreate to get an error instead.
See: https://developer.apple.com/documentation/SystemConfiguration/SCNetworkServiceCreate(_:_:)
func TrySCNetworkServiceCopy ¶
func TrySCNetworkServiceCopy(prefs SCPreferencesRef, serviceID corefoundation.CFStringRef) (SCNetworkServiceRef, error)
TrySCNetworkServiceCopy is like SCNetworkServiceCopy but returns an error instead of panicking if SCNetworkServiceCopy is unavailable at run time.
func TrySCNetworkServiceCreate ¶
func TrySCNetworkServiceCreate(prefs SCPreferencesRef, interface_ SCNetworkInterfaceRef) (SCNetworkServiceRef, error)
TrySCNetworkServiceCreate is like SCNetworkServiceCreate but returns an error instead of panicking if SCNetworkServiceCreate is unavailable at run time.
type SCNetworkSetRef ¶
type SCNetworkSetRef uintptr
SCNetworkSetRef is the reference to an object that represents a network set.
See: https://developer.apple.com/documentation/SystemConfiguration/SCNetworkSet
func SCNetworkSetCopy ¶
func SCNetworkSetCopy(prefs SCPreferencesRef, setID corefoundation.CFStringRef) SCNetworkSetRef
SCNetworkSetCopy returns the set with the specified identifier.
It panics if SCNetworkSetCopy is unavailable at run time; use TrySCNetworkSetCopy to get an error instead.
See: https://developer.apple.com/documentation/SystemConfiguration/SCNetworkSetCopy(_:_:)
func SCNetworkSetCopyCurrent ¶
func SCNetworkSetCopyCurrent(prefs SCPreferencesRef) SCNetworkSetRef
SCNetworkSetCopyCurrent returns the current set.
It panics if SCNetworkSetCopyCurrent is unavailable at run time; use TrySCNetworkSetCopyCurrent to get an error instead.
See: https://developer.apple.com/documentation/SystemConfiguration/SCNetworkSetCopyCurrent(_:)
func SCNetworkSetCreate ¶
func SCNetworkSetCreate(prefs SCPreferencesRef) SCNetworkSetRef
SCNetworkSetCreate creates a new set in the configuration.
It panics if SCNetworkSetCreate is unavailable at run time; use TrySCNetworkSetCreate to get an error instead.
See: https://developer.apple.com/documentation/SystemConfiguration/SCNetworkSetCreate(_:)
func TrySCNetworkSetCopy ¶
func TrySCNetworkSetCopy(prefs SCPreferencesRef, setID corefoundation.CFStringRef) (SCNetworkSetRef, error)
TrySCNetworkSetCopy is like SCNetworkSetCopy but returns an error instead of panicking if SCNetworkSetCopy is unavailable at run time.
func TrySCNetworkSetCopyCurrent ¶
func TrySCNetworkSetCopyCurrent(prefs SCPreferencesRef) (SCNetworkSetRef, error)
TrySCNetworkSetCopyCurrent is like SCNetworkSetCopyCurrent but returns an error instead of panicking if SCNetworkSetCopyCurrent is unavailable at run time.
func TrySCNetworkSetCreate ¶
func TrySCNetworkSetCreate(prefs SCPreferencesRef) (SCNetworkSetRef, error)
TrySCNetworkSetCreate is like SCNetworkSetCreate but returns an error instead of panicking if SCNetworkSetCreate is unavailable at run time.
type SCPreferencesCallBack ¶
type SCPreferencesCallBack = func(prefs SCPreferencesRef, notificationType SCPreferencesNotification, info unsafe.Pointer)
SCPreferencesCallBack is type of the callback function used when the preferences have been updated or applied.
See: https://developer.apple.com/documentation/SystemConfiguration/SCPreferencesCallBack
type SCPreferencesContext ¶
type SCPreferencesContext struct {
Version int // The version number of the structure type being passed in as a parameter to [SCPreferencesSetCallback(_:_:_:)](<https://developer.apple.com/documentation/SystemConfiguration/SCPreferencesSetCallback(_:_:_:)>). This structure is version `0`.
Info unsafe.Pointer // A C pointer to a user-specified block of data.
// C: const void *(*)(const void *)
Retain uintptr // The callback used to add a retain for the `info` field. If this parameter is not a pointer to a function of the correct prototype, the behavior is undefined. The value may be [NULL].
// C: void (*)(const void *)
Release uintptr // The calllback used to remove a retain previously added for the `info` field. If this parameter is not a pointer to a function of the correct prototype, the behavior is undefined. The value may be [NULL].
// C: const struct __CFString *(*)(const void *)
CopyDescription uintptr // The callback used to provide a description of the `info` field.
}
SCPreferencesContext - A structure containing user-specified data and callbacks for accessing system configuration preferences.
[Full Topic] [Full Topic]: https://developer.apple.com/documentation/SystemConfiguration/SCPreferencesContext
type SCPreferencesNotification ¶
type SCPreferencesNotification uint32
See: https://developer.apple.com/documentation/SystemConfiguration/SCPreferencesNotification
const ( // KSCPreferencesNotificationApply: Indicates when a request has been made to apply the currently saved preferences to the active system configuration. KSCPreferencesNotificationApply SCPreferencesNotification = 2 // KSCPreferencesNotificationCommit: Indicates when new preferences have been saved. KSCPreferencesNotificationCommit SCPreferencesNotification = 1 )
func (SCPreferencesNotification) String ¶ added in v0.6.16
func (e SCPreferencesNotification) String() string
type SCPreferencesRef ¶
type SCPreferencesRef uintptr
SCPreferencesRef is the handle to an open preferences session for accessing system configuration preferences.
See: https://developer.apple.com/documentation/SystemConfiguration/SCPreferences
func SCPreferencesCreate ¶
func SCPreferencesCreate(allocator corefoundation.CFAllocatorRef, name corefoundation.CFStringRef, prefsID corefoundation.CFStringRef) SCPreferencesRef
SCPreferencesCreate initiates access to the per-system set of configuration preferences.
It panics if SCPreferencesCreate is unavailable at run time; use TrySCPreferencesCreate to get an error instead.
See: https://developer.apple.com/documentation/SystemConfiguration/SCPreferencesCreate(_:_:_:)
func SCPreferencesCreateWithAuthorization ¶
func SCPreferencesCreateWithAuthorization(allocator corefoundation.CFAllocatorRef, name corefoundation.CFStringRef, prefsID corefoundation.CFStringRef, authorization security.AuthorizationRef) SCPreferencesRef
SCPreferencesCreateWithAuthorization initiates access to the per-system set of configuration preferences with the specified authorization.
It panics if SCPreferencesCreateWithAuthorization is unavailable at run time; use TrySCPreferencesCreateWithAuthorization to get an error instead.
func TrySCPreferencesCreate ¶
func TrySCPreferencesCreate(allocator corefoundation.CFAllocatorRef, name corefoundation.CFStringRef, prefsID corefoundation.CFStringRef) (SCPreferencesRef, error)
TrySCPreferencesCreate is like SCPreferencesCreate but returns an error instead of panicking if SCPreferencesCreate is unavailable at run time.
func TrySCPreferencesCreateWithAuthorization ¶
func TrySCPreferencesCreateWithAuthorization(allocator corefoundation.CFAllocatorRef, name corefoundation.CFStringRef, prefsID corefoundation.CFStringRef, authorization security.AuthorizationRef) (SCPreferencesRef, error)
TrySCPreferencesCreateWithAuthorization is like SCPreferencesCreateWithAuthorization but returns an error instead of panicking if SCPreferencesCreateWithAuthorization is unavailable at run time.
type SCVLANInterfaceRef ¶
type SCVLANInterfaceRef uintptr
SCVLANInterfaceRef is the reference to an object that represents a virtual LAN (VLAN) interface.
See: https://developer.apple.com/documentation/SystemConfiguration/SCVLANInterface
func SCVLANInterfaceCreate ¶
func SCVLANInterfaceCreate(prefs SCPreferencesRef, physical SCNetworkInterfaceRef, tag corefoundation.CFNumberRef) SCVLANInterfaceRef
SCVLANInterfaceCreate creates a new virtual LAN (VLAN) interface.
It panics if SCVLANInterfaceCreate is unavailable at run time; use TrySCVLANInterfaceCreate to get an error instead.
See: https://developer.apple.com/documentation/SystemConfiguration/SCVLANInterfaceCreate(_:_:_:)
func TrySCVLANInterfaceCreate ¶
func TrySCVLANInterfaceCreate(prefs SCPreferencesRef, physical SCNetworkInterfaceRef, tag corefoundation.CFNumberRef) (SCVLANInterfaceRef, error)
TrySCVLANInterfaceCreate is like SCVLANInterfaceCreate but returns an error instead of panicking if SCVLANInterfaceCreate is unavailable at run time.