Documentation
¶
Overview ¶
Package corewlan provides purego-based Go bindings for the macOS CoreWLAN framework.
Apple documentation: https://developer.apple.com/documentation/corewlan
Index ¶
- func CWBSSIDDidChangeNotification() uintptr
- func CWCountryCodeDidChangeNotification() uintptr
- func CWErrorDomain() uintptr
- func CWInterfaceInterfaceNames() *foundation.NSSet[*foundation.NSString]
- func CWKeychainCopyEAPIdentity(ssidData unsafe.Pointer, identity unsafe.Pointer) int
- func CWKeychainCopyEAPIdentityList(list unsafe.Pointer) int
- func CWKeychainCopyEAPUsernameAndPassword(ssidData unsafe.Pointer, username unsafe.Pointer, password unsafe.Pointer) int
- func CWKeychainCopyPassword(ssidData unsafe.Pointer, password unsafe.Pointer) int
- func CWKeychainCopyWiFiEAPIdentity(domain CWKeychainDomain, ssid *foundation.NSData, identity unsafe.Pointer) int
- func CWKeychainDeleteEAPUsernameAndPassword(ssidData unsafe.Pointer) int
- func CWKeychainDeletePassword(ssidData unsafe.Pointer) int
- func CWKeychainDeleteWiFiEAPUsernameAndPassword(domain CWKeychainDomain, ssid *foundation.NSData) int
- func CWKeychainDeleteWiFiPassword(domain CWKeychainDomain, ssid *foundation.NSData) int
- func CWKeychainFindWiFiEAPUsernameAndPassword(domain CWKeychainDomain, ssid *foundation.NSData, ...) int
- func CWKeychainFindWiFiPassword(domain CWKeychainDomain, ssid *foundation.NSData, ...) int
- func CWKeychainSetEAPIdentity(ssidData unsafe.Pointer, identity unsafe.Pointer) int
- func CWKeychainSetEAPUsernameAndPassword(ssidData unsafe.Pointer, username unsafe.Pointer, password unsafe.Pointer) int
- func CWKeychainSetPassword(ssidData unsafe.Pointer, password unsafe.Pointer) int
- func CWKeychainSetWiFiEAPIdentity(domain CWKeychainDomain, ssid *foundation.NSData, identity unsafe.Pointer) int
- func CWKeychainSetWiFiEAPUsernameAndPassword(domain CWKeychainDomain, ssid *foundation.NSData, ...) int
- func CWKeychainSetWiFiPassword(domain CWKeychainDomain, ssid *foundation.NSData, ...) int
- func CWLinkDidChangeNotification() uintptr
- func CWLinkQualityDidChangeNotification() uintptr
- func CWLinkQualityNotificationRSSIKey() uintptr
- func CWLinkQualityNotificationTransmitRateKey() uintptr
- func CWMergeNetworks(networks *foundation.NSSet[*CWNetwork]) *foundation.NSSet[*CWNetwork]
- func CWModeDidChangeNotification() uintptr
- func CWPowerDidChangeNotification() uintptr
- func CWSSIDDidChangeNotification() uintptr
- func CWScanCacheDidUpdateNotification() uintptr
- func CWWiFiClientInterfaceNames() *foundation.NSArray[*foundation.NSString]
- func SymbolAvailable(symbol string) bool
- type Acl_entry_id_t
- type Acl_flag_t
- type Acl_perm_t
- type Acl_tag_t
- type Acl_type_t
- type CWChannel
- type CWChannelBand
- type CWChannelWidth
- type CWCipherKeyFlags
- type CWConfiguration
- func (o *CWConfiguration) Init() *CWConfiguration
- func (o *CWConfiguration) InitWithConfiguration(configuration *CWConfiguration) *CWConfiguration
- func (o *CWConfiguration) IsEqualToConfiguration(configuration *CWConfiguration) bool
- func (o *CWConfiguration) NetworkProfiles() *foundation.NSOrderedSet[*CWNetworkProfile]
- func (o *CWConfiguration) RememberJoinedNetworks() bool
- func (o *CWConfiguration) RequireAdministratorForAssociation() bool
- func (o *CWConfiguration) RequireAdministratorForIBSSMode() bool
- func (o *CWConfiguration) RequireAdministratorForPower() bool
- type CWErr
- type CWEventDelegate
- type CWEventType
- type CWIBSSModeSecurity
- type CWInterface
- func (o *CWInterface) ActivePHYMode() CWPHYMode
- func (o *CWInterface) AssociateToEnterpriseNetworkIdentityUsernamePasswordError(network *CWNetwork, identity unsafe.Pointer, username *foundation.NSString, ...) (bool, error)
- func (o *CWInterface) AssociateToNetworkPasswordError(network *CWNetwork, password *foundation.NSString) (bool, error)
- func (o *CWInterface) Bssid() *foundation.NSString
- func (o *CWInterface) CachedScanResults() *foundation.NSSet[*CWNetwork]
- func (o *CWInterface) CommitConfigurationAuthorizationError(configuration *CWConfiguration, ...) (bool, error)
- func (o *CWInterface) Configuration() *CWConfiguration
- func (o *CWInterface) CountryCode() *foundation.NSString
- func (o *CWInterface) Disassociate()
- func (o *CWInterface) HardwareAddress() *foundation.NSString
- func (o *CWInterface) InitWithInterfaceName(name *foundation.NSString) *CWInterface
- func (o *CWInterface) InterfaceMode() CWInterfaceMode
- func (o *CWInterface) InterfaceName() *foundation.NSString
- func (o *CWInterface) NoiseMeasurement() int
- func (o *CWInterface) PowerOn() bool
- func (o *CWInterface) RssiValue() int
- func (o *CWInterface) ScanForNetworksWithNameError(networkName *foundation.NSString) (*foundation.NSSet[*CWNetwork], error)
- func (o *CWInterface) ScanForNetworksWithNameIncludeHiddenError(networkName *foundation.NSString, includeHidden bool) (*foundation.NSSet[*CWNetwork], error)
- func (o *CWInterface) ScanForNetworksWithSSIDError(ssid *foundation.NSData) (*foundation.NSSet[*CWNetwork], error)
- func (o *CWInterface) ScanForNetworksWithSSIDIncludeHiddenError(ssid *foundation.NSData, includeHidden bool) (*foundation.NSSet[*CWNetwork], error)
- func (o *CWInterface) Security() CWSecurity
- func (o *CWInterface) ServiceActive() bool
- func (o *CWInterface) SetPairwiseMasterKeyError(key *foundation.NSData) (bool, error)
- func (o *CWInterface) SetPowerError(power bool) (bool, error)
- func (o *CWInterface) SetWEPKeyFlagsIndexError(key *foundation.NSData, flags CWCipherKeyFlags, index int) (bool, error)
- func (o *CWInterface) SetWLANChannelError(channel *CWChannel) (bool, error)
- func (o *CWInterface) Ssid() *foundation.NSString
- func (o *CWInterface) SsidData() *foundation.NSData
- func (o *CWInterface) StartIBSSModeWithSSIDSecurityChannelPasswordError(ssidData *foundation.NSData, security CWIBSSModeSecurity, channel uint, ...) (bool, error)
- func (o *CWInterface) SupportedWLANChannels() *foundation.NSSet[*CWChannel]
- func (o *CWInterface) TransmitPower() int
- func (o *CWInterface) TransmitRate() float64
- func (o *CWInterface) WlanChannel() *CWChannel
- type CWInterfaceMode
- type CWKeychainDomain
- type CWMutableConfiguration
- func (o *CWMutableConfiguration) SetNetworkProfiles(networkProfiles *foundation.NSOrderedSet[*CWNetworkProfile])
- func (o *CWMutableConfiguration) SetRememberJoinedNetworks(rememberJoinedNetworks bool)
- func (o *CWMutableConfiguration) SetRequireAdministratorForAssociation(requireAdministratorForAssociation bool)
- func (o *CWMutableConfiguration) SetRequireAdministratorForIBSSMode(requireAdministratorForIBSSMode bool)deprecated
- func (o *CWMutableConfiguration) SetRequireAdministratorForPower(requireAdministratorForPower bool)
- type CWMutableNetworkProfile
- type CWNetwork
- func (o *CWNetwork) BeaconInterval() int
- func (o *CWNetwork) Bssid() *foundation.NSString
- func (o *CWNetwork) CountryCode() *foundation.NSString
- func (o *CWNetwork) Ibss() bool
- func (o *CWNetwork) InformationElementData() *foundation.NSData
- func (o *CWNetwork) IsEqualToNetwork(network *CWNetwork) bool
- func (o *CWNetwork) NoiseMeasurement() int
- func (o *CWNetwork) RssiValue() int
- func (o *CWNetwork) Ssid() *foundation.NSString
- func (o *CWNetwork) SsidData() *foundation.NSData
- func (o *CWNetwork) SupportsPHYMode(phyMode CWPHYMode) bool
- func (o *CWNetwork) SupportsSecurity(security CWSecurity) bool
- func (o *CWNetwork) WlanChannel() *CWChannel
- type CWNetworkProfile
- func (o *CWNetworkProfile) Init() *CWNetworkProfile
- func (o *CWNetworkProfile) InitWithNetworkProfile(networkProfile *CWNetworkProfile) *CWNetworkProfile
- func (o *CWNetworkProfile) IsEqualToNetworkProfile(networkProfile *CWNetworkProfile) bool
- func (o *CWNetworkProfile) Security() CWSecurity
- func (o *CWNetworkProfile) Ssid() *foundation.NSString
- func (o *CWNetworkProfile) SsidData() *foundation.NSData
- type CWPHYMode
- type CWSecurity
- type CWWiFiClient
- func (o *CWWiFiClient) Delegate() objc.ID
- func (o *CWWiFiClient) Init() *CWWiFiClient
- func (o *CWWiFiClient) Interface() *CWInterface
- func (o *CWWiFiClient) InterfaceNames() *foundation.NSArray[*foundation.NSString]
- func (o *CWWiFiClient) InterfaceWithName(interfaceName *foundation.NSString) *CWInterface
- func (o *CWWiFiClient) Interfaces() *foundation.NSArray[*CWInterface]
- func (o *CWWiFiClient) SetDelegate(delegate objc.ID)
- func (o *CWWiFiClient) StartMonitoringEventWithTypeError(type_ CWEventType) (bool, error)
- func (o *CWWiFiClient) StopMonitoringAllEventsAndReturnError() (bool, error)
- func (o *CWWiFiClient) StopMonitoringEventWithTypeError(type_ CWEventType) (bool, error)
- type Clockid_t
- type Dispatch_autorelease_frequency_t
- type Dispatch_block_flags_t
- type Filesec_property_t
- type Idtype_t
- type Ipc_info_object_type_t
- type Launch_data_type_t
- type MDLabelDomain
- type MDQueryOptionFlags
- type MDQuerySortOptionFlags
- type Mach_vm_range_flags_t
- type Mach_vm_range_flavor_t
- type Mach_vm_range_tag_t
- type Mpo_flags_t
- type Os_clockid_t
- type Ptrauth_key
- type Qos_class_t
- type Virtual_memory_guard_exception_code_t
- type Xpc_listener_create_flags_t
- type Xpc_session_create_flags_t
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CWBSSIDDidChangeNotification ¶
func CWBSSIDDidChangeNotification() uintptr
@constant CWBSSIDDidChangeNotification @abstract Posted when the BSSID of the Wi-Fi interface changes. @discussion The <i>object</i> for this notification is the corresponding Wi-Fi interface name. This notification does not contain a <i>userInfo</i> dictionary. Deprecated: since macOS 10.10.
func CWCountryCodeDidChangeNotification ¶
func CWCountryCodeDidChangeNotification() uintptr
@constant CWCountryCodeDidChangeNotification @abstract Posted when the adopted country code of the Wi-Fi interface changes. @discussion The <i>object</i> for this notification is the corresponding Wi-Fi interface name. This notification does not contain a <i>userInfo</i> dictionary. Deprecated: since macOS 10.10.
func CWErrorDomain ¶
func CWErrorDomain() uintptr
@constant CWErrorDomain @abstract Error domain corresponding to the CWErr type.
func CWInterfaceInterfaceNames ¶
func CWInterfaceInterfaceNames() *foundation.NSSet[*foundation.NSString]
Returns the list of BSD names for WLAN interfaces available on the current system. Deprecated: since macOS 10.10.
func CWKeychainCopyEAPIdentity ¶
@method @param ssidData The service set identifier (SSID) which is used to uniquely identify the keychain item. @param identity A SecIdentityRef passed by reference, which upon return will contain the SecIdentityRef associated with the specified SSID. This parameter is optional. The returned value must be released by the caller. @result An OSStatus error code indicating whether or not a failure occurred. <i>errSecSuccess</i> indicates no error occurred. @abstract Finds and returns the identity stored for the specified SSID and keychain domain. The keychain used is determined by the SecPreferencesDomain of the caller as returned by SecKeychainGetPreferenceDomain(). Deprecated: since macOS 10.9.
func CWKeychainCopyEAPIdentityList ¶
@method @param identityList A CFArrayRef passed by reference, which upon return will be populated with a list of SecIdentityRef objects. This parameter is optional. The returned value must be released by the caller. @result An OSStatus error code indicating whether or not a failure occurred. <i>errSecSuccess</i> indicates no error occurred. @abstract Finds and returns all available identities.
func CWKeychainCopyEAPUsernameAndPassword ¶
func CWKeychainCopyEAPUsernameAndPassword(ssidData unsafe.Pointer, username unsafe.Pointer, password unsafe.Pointer) int
@method @param ssidData The service set identifier (SSID) which is used to uniquely identify the keychain item. @param username A CFStringRef passed by reference, which upon return will contain the 802.1X username for the specified SSID. This parameter is optional. The returned value must be released by the caller. @param password A CFStringRef passed by reference, which upon return will contain the 802.1X password for the specified SSID. This parameter is optional. The returned value must be released by the caller. @result An OSStatus error code indicating whether or not a failure occurred. <i>errSecSuccess</i> indicates no error occurred. @abstract Finds and returns the 802.1X username and password stored for the specified SSID. The keychain used is determined by the SecPreferencesDomain of the caller as returned by SecKeychainGetPreferenceDomain(). Deprecated: since macOS 10.9.
func CWKeychainCopyPassword ¶
@method @param ssidData The service set identifier (SSID) which is used to uniquely identify the keychain item. @param password A CFStringRef passed by reference, which upon return will contain the Wi-Fi keychain password for the specified SSID. This parameter is optional. The returned value must be released by the caller. @result An OSStatus error code indicating whether or not a failure occurred. <i>errSecSuccess</i> indicates no error occurred. @abstract Finds and returns (by reference) the password for the specified SSID. The keychain used is determined by the SecPreferencesDomain of the caller as returned by SecKeychainGetPreferenceDomain(). Deprecated: since macOS 10.9.
func CWKeychainCopyWiFiEAPIdentity ¶
func CWKeychainCopyWiFiEAPIdentity(domain CWKeychainDomain, ssid *foundation.NSData, identity unsafe.Pointer) int
@method @param domain The keychain domain, which determines which keychain will be used. @param ssid The service set identifier (SSID) which is used to uniquely identify the keychain item. @param identity A SecIdentityRef passed by reference, which upon return will contain the SecIdentityRef associated with the specified SSID. This parameter is optional. The returned value must be released by the caller. @result An OSStatus error code indicating whether or not a failure occurred. <i>errSecSuccess</i> indicates no error occurred. @abstract Finds and returns the identity stored for the specified SSID and keychain domain.
func CWKeychainDeleteEAPUsernameAndPassword ¶
@method @param ssidData The service set identifier (SSID) which is used to uniquely identify the keychain item. @result An OSStatus error code indicating whether or not a failure occurred. <i>errSecSuccess</i> indicates no error occurred. @abstract Deletes the 802.1X username and password for the specified SSID. The keychain used is determined by the SecPreferencesDomain of the caller as returned by SecKeychainGetPreferenceDomain(). Deprecated: since macOS 10.9.
func CWKeychainDeletePassword ¶
@method @param ssidData The service set identifier (SSID) which is used to uniquely identify the keychain item. @result An OSStatus error code indicating whether or not a failure occurred. <i>errSecSuccess</i> indicates no error occurred. @abstract Deletes the password for the specified SSID and keychain domain. The keychain used is determined by the SecPreferencesDomain of the caller as returned by SecKeychainGetPreferenceDomain(). Deprecated: since macOS 10.9.
func CWKeychainDeleteWiFiEAPUsernameAndPassword ¶
func CWKeychainDeleteWiFiEAPUsernameAndPassword(domain CWKeychainDomain, ssid *foundation.NSData) int
@method @param domain The keychain domain, which determines which keychain will be used. @param ssid The service set identifier (SSID) which is used to uniquely identify the keychain item. @result An OSStatus error code indicating whether or not a failure occurred. <i>errSecSuccess</i> indicates no error occurred. @abstract Deletes the 802.1X username and password for the specified SSID and keychain domain.
func CWKeychainDeleteWiFiPassword ¶
func CWKeychainDeleteWiFiPassword(domain CWKeychainDomain, ssid *foundation.NSData) int
@method @param domain The keychain domain, which determines which keychain will be used. @param ssid The service set identifier (SSID) which is used to uniquely identify the keychain item. @result An OSStatus error code indicating whether or not a failure occurred. <i>errSecSuccess</i> indicates no error occurred. @abstract Deletes the password for the specified SSID and keychain domain.
func CWKeychainFindWiFiEAPUsernameAndPassword ¶
func CWKeychainFindWiFiEAPUsernameAndPassword(domain CWKeychainDomain, ssid *foundation.NSData, username *foundation.NSString, password *foundation.NSString) int
@method @param domain The keychain domain, which determines which keychain will be used. @param ssid The service set identifier (SSID) which is used to uniquely identify the keychain item. @param username An NSString passed by reference, which upon return will contain the 802.1X username for the specified SSID. This parameter is optional. @param password An NSString passed by reference, which upon return will contain the 802.1X password for the specified SSID. This parameter is optional. @result An OSStatus error code indicating whether or not a failure occurred. <i>errSecSuccess</i> indicates no error occurred. @abstract Finds and returns the 802.1X username and password stored for the specified SSID and keychain domain.
func CWKeychainFindWiFiPassword ¶
func CWKeychainFindWiFiPassword(domain CWKeychainDomain, ssid *foundation.NSData, password *foundation.NSString) int
@method @param domain The keychain domain, which determines which keychain will be used. @param ssid The service set identifier (SSID) which is used to uniquely identify the keychain item. @param password An NSString passed by reference, which upon return will contain the Wi-Fi keychain password for the specified SSID. This parameter is optional. @result An OSStatus error code indicating whether or not a failure occurred. <i>errSecSuccess</i> indicates no error occurred. @abstract Finds and returns (by reference) the password for the specified SSID and keychain domain.
func CWKeychainSetEAPIdentity ¶
@method @param ssidData The service set identifier (SSID) which is used to uniquely identify the keychain item. @param identity The identity containing the certificate to use for 802.1X authentication. Passing nil clears any identity association for the specified SSID. @result An OSStatus error code indicating whether or not a failure occurred. <i>errSecSuccess</i> indicates no error occurred. @abstract Associates an identity to the specified SSID. The keychain used is determined by the SecPreferencesDomain of the caller as returned by SecKeychainGetPreferenceDomain(). Deprecated: since macOS 10.9.
func CWKeychainSetEAPUsernameAndPassword ¶
func CWKeychainSetEAPUsernameAndPassword(ssidData unsafe.Pointer, username unsafe.Pointer, password unsafe.Pointer) int
@method @param ssidData The service set identifier (SSID) which is used to uniquely identify the keychain item. @param username The 802.1X username. @param password The 802.1X password. This parameter is optional. @result An OSStatus error code indicating whether or not a failure occurred. <i>errSecSuccess</i> indicates no error occurred. @abstract Sets the 802.1X username and password for the specified SSID. The keychain used is determined by the SecPreferencesDomain of the caller as returned by SecKeychainGetPreferenceDomain(). Deprecated: since macOS 10.9.
func CWKeychainSetPassword ¶
@method @param ssidData The service set identifier (SSID) which is used to uniquely identify the keychain item. @param password The Wi-Fi network password. @result An OSStatus error code indicating whether or not a failure occurred. <i>errSecSuccess</i> indicates no error occurred. @abstract Sets the Wi-Fi network keychain password for the specified SSID. The keychain used is determined by the SecPreferencesDomain of the caller as returned by SecKeychainGetPreferenceDomain(). Deprecated: since macOS 10.9.
func CWKeychainSetWiFiEAPIdentity ¶
func CWKeychainSetWiFiEAPIdentity(domain CWKeychainDomain, ssid *foundation.NSData, identity unsafe.Pointer) int
@method @param domain The keychain domain, which determines which keychain will be used. @param ssid The service set identifier (SSID) which is used to uniquely identify the keychain item. @param identity The identity containing the certificate to use for 802.1X authentication. Passing nil clears any identity association for the specified SSID. @result An OSStatus error code indicating whether or not a failure occurred. <i>errSecSuccess</i> indicates no error occurred. @abstract Associates an identity to the specified SSID and keychain domain.
func CWKeychainSetWiFiEAPUsernameAndPassword ¶
func CWKeychainSetWiFiEAPUsernameAndPassword(domain CWKeychainDomain, ssid *foundation.NSData, username *foundation.NSString, password *foundation.NSString) int
@method @param domain The keychain domain, which determines which keychain will be used. @param ssid The service set identifier (SSID) which is used to uniquely identify the keychain item. @param username The 802.1X username. @param password The 802.1X password. This parameter is optional. @result An OSStatus error code indicating whether or not a failure occurred. <i>errSecSuccess</i> indicates no error occurred. @abstract Sets the 802.1X username and password for the specified SSID and keychain domain.
func CWKeychainSetWiFiPassword ¶
func CWKeychainSetWiFiPassword(domain CWKeychainDomain, ssid *foundation.NSData, password *foundation.NSString) int
@method @param domain The keychain domain, which determines which keychain will be used. @param ssid The service set identifier (SSID) which is used to uniquely identify the keychain item. @param password The Wi-Fi network password. @result An OSStatus error code indicating whether or not a failure occurred. <i>errSecSuccess</i> indicates no error occurred. @abstract Sets the Wi-Fi network keychain password for the specified SSID and keychain domain.
func CWLinkDidChangeNotification ¶
func CWLinkDidChangeNotification() uintptr
@constant CWLinkDidChangeNotification @abstract Posted when the link of the Wi-Fi interface changes. @discussion The <i>object</i> for this notification is the corresponding Wi-Fi interface name. This notification does not contain a <i>userInfo</i> dictionary. Deprecated: since macOS 10.10.
func CWLinkQualityDidChangeNotification ¶
func CWLinkQualityDidChangeNotification() uintptr
@constant CWLinkQualityDidChangeNotification @abstract Posted when the link quality of the current Wi-Fi association changes. @discussion The <i>object</i> for this notification is the corresponding Wi-Fi interface name. This notification does not contain a <i>userInfo</i> dictionary. Deprecated: since macOS 10.10.
func CWLinkQualityNotificationRSSIKey ¶
func CWLinkQualityNotificationRSSIKey() uintptr
@constant CWLinkQualityNotificationRSSIKey @abstract NSNumber containing the current RSSI value for the Wi-Fi interface. @discussion Found in the <i>userInfo</i> dictionary for the <i>CWLinkQualityChangedNotification</i>. Deprecated: since macOS 10.10.
func CWLinkQualityNotificationTransmitRateKey ¶
func CWLinkQualityNotificationTransmitRateKey() uintptr
@constant CWLinkQualityNotificationTransmitRateKey @abstract NSNumber containing the current transmit rate for the Wi-Fi interface. @discussion Found in the <i>userInfo</i> dictionary for the <i>CWLinkQualityChangedNotification</i>. Deprecated: since macOS 10.10.
func CWMergeNetworks ¶
func CWMergeNetworks(networks *foundation.NSSet[*CWNetwork]) *foundation.NSSet[*CWNetwork]
@method @param networks The set of networks to merge. @abstract Merges the specified set of CWNetwork objects. @discussion Duplicate networks are defined as networks with the same SSID, security type, and BSS type (IBSS or Infrastructure). When duplicate networks exist, the network with the best RSSI value will be chosen.
func CWModeDidChangeNotification ¶
func CWModeDidChangeNotification() uintptr
@constant CWModeDidChangeNotification @abstract Posted when the operating mode of the Wi-Fi interface changes. @discussion The <i>object</i> for this notification is the corresponding Wi-Fi interface name. This notification does not contain a <i>userInfo</i> dictionary. Deprecated: since macOS 10.10.
func CWPowerDidChangeNotification ¶
func CWPowerDidChangeNotification() uintptr
@constant CWPowerDidChangeNotification @abstract Posted when the power state of the Wi-Fi interface changes. @discussion The <i>object</i> for this notification is the corresponding Wi-Fi interface name. This notification does not contain a <i>userInfo</i> dictionary. Deprecated: since macOS 10.10.
func CWSSIDDidChangeNotification ¶
func CWSSIDDidChangeNotification() uintptr
@constant CWSSIDDidChangeNotification @abstract Posted when the SSID of the Wi-Fi interface changes. @discussion The <i>object</i> for this notification is the corresponding Wi-Fi interface name. This notification does not contain a <i>userInfo</i> dictionary. Deprecated: since macOS 10.10.
func CWScanCacheDidUpdateNotification ¶
func CWScanCacheDidUpdateNotification() uintptr
@constant CWScanCacheDidUpdateNotification @abstract Posted when the scan cache of the Wi-Fi interface is updated with new scan results. @discussion The <i>object</i> for this notification is the corresponding Wi-Fi interface name. This notification does not contain a <i>userInfo</i> dictionary. Deprecated: since macOS 10.10.
func CWWiFiClientInterfaceNames ¶
func CWWiFiClientInterfaceNames() *foundation.NSArray[*foundation.NSString]
Returns the list of the names of available Wi-Fi interfaces. Deprecated: since macOS 13.0.
func SymbolAvailable ¶
SymbolAvailable reports whether the named C symbol was bound when the library loaded. Calling a generated wrapper whose symbol is unavailable dereferences a nil function variable and panics.
Types ¶
type Acl_entry_id_t ¶
type Acl_entry_id_t int64
const ( ACL_FIRST_ENTRY Acl_entry_id_t = 0 ACL_NEXT_ENTRY Acl_entry_id_t = -1 ACL_LAST_ENTRY Acl_entry_id_t = -2 )
func (Acl_entry_id_t) String ¶
func (e Acl_entry_id_t) String() string
type Acl_flag_t ¶
type Acl_flag_t int64
const ( ACL_FLAG_DEFER_INHERIT Acl_flag_t = 1 ACL_FLAG_NO_INHERIT Acl_flag_t = 131072 ACL_ENTRY_INHERITED Acl_flag_t = 16 ACL_ENTRY_FILE_INHERIT Acl_flag_t = 32 ACL_ENTRY_DIRECTORY_INHERIT Acl_flag_t = 64 ACL_ENTRY_LIMIT_INHERIT Acl_flag_t = 128 ACL_ENTRY_ONLY_INHERIT Acl_flag_t = 256 )
func (Acl_flag_t) String ¶
func (e Acl_flag_t) String() string
type Acl_perm_t ¶
type Acl_perm_t int64
const ( ACL_READ_DATA Acl_perm_t = 2 ACL_LIST_DIRECTORY Acl_perm_t = 2 ACL_WRITE_DATA Acl_perm_t = 4 ACL_ADD_FILE Acl_perm_t = 4 ACL_EXECUTE Acl_perm_t = 8 ACL_SEARCH Acl_perm_t = 8 ACL_DELETE Acl_perm_t = 16 ACL_APPEND_DATA Acl_perm_t = 32 ACL_ADD_SUBDIRECTORY Acl_perm_t = 32 ACL_DELETE_CHILD Acl_perm_t = 64 ACL_READ_ATTRIBUTES Acl_perm_t = 128 ACL_WRITE_ATTRIBUTES Acl_perm_t = 256 ACL_READ_EXTATTRIBUTES Acl_perm_t = 512 ACL_WRITE_EXTATTRIBUTES Acl_perm_t = 1024 ACL_READ_SECURITY Acl_perm_t = 2048 ACL_WRITE_SECURITY Acl_perm_t = 4096 ACL_CHANGE_OWNER Acl_perm_t = 8192 ACL_SYNCHRONIZE Acl_perm_t = 1048576 )
func (Acl_perm_t) String ¶
func (e Acl_perm_t) String() string
type Acl_type_t ¶
type Acl_type_t int64
const ( ACL_TYPE_EXTENDED Acl_type_t = 256 ACL_TYPE_ACCESS Acl_type_t = 0 ACL_TYPE_DEFAULT Acl_type_t = 1 ACL_TYPE_AFS Acl_type_t = 2 ACL_TYPE_CODA Acl_type_t = 3 ACL_TYPE_NTFS Acl_type_t = 4 ACL_TYPE_NWFS Acl_type_t = 5 )
func (Acl_type_t) String ¶
func (e Acl_type_t) String() string
type CWChannel ¶
type CWChannel struct {
foundation.NSObject
}
Encapsulates an IEEE 802.11 channel.
Apple documentation: https://developer.apple.com/documentation/corewlan/cwchannel
func CWChannelFromID ¶
func (*CWChannel) ChannelBand ¶
func (o *CWChannel) ChannelBand() CWChannelBand
@property @abstract The channel band as indicated by the CWChannelBand type.
func (*CWChannel) ChannelNumber ¶
@property @abstract The channel number represented as an integer value.
func (*CWChannel) ChannelWidth ¶
func (o *CWChannel) ChannelWidth() CWChannelWidth
@property @abstract The channel width as indicated by the CWChannelWidth type.
func (*CWChannel) IsEqualToChannel ¶
Determine CWChannel object equality.
type CWChannelBand ¶
type CWChannelBand int64
CoreWLAN channel bands.
const ( // Unknown channel band. KCWChannelBandUnknown CWChannelBand = 0 // 2.4GHz channel band. KCWChannelBand2GHz CWChannelBand = 1 // 5GHz channel band. KCWChannelBand5GHz CWChannelBand = 2 KCWChannelBand6GHz CWChannelBand = 3 )
func (CWChannelBand) String ¶
func (e CWChannelBand) String() string
type CWChannelWidth ¶
type CWChannelWidth int64
CoreWLAN channel widths.
const ( // Unknown channel width. KCWChannelWidthUnknown CWChannelWidth = 0 // 20MHz channel width. KCWChannelWidth20MHz CWChannelWidth = 1 // 40MHz channel width. KCWChannelWidth40MHz CWChannelWidth = 2 // 80MHz channel width. KCWChannelWidth80MHz CWChannelWidth = 3 // 160MHz channel width. KCWChannelWidth160MHz CWChannelWidth = 4 )
func (CWChannelWidth) String ¶
func (e CWChannelWidth) String() string
type CWCipherKeyFlags ¶
type CWCipherKeyFlags uint64
Cipher key flags.
const ( // Open System authentication. KCWCipherKeyFlagsNone CWCipherKeyFlags = 0 // A flag that indicates to use the cipher key for unicast packets. KCWCipherKeyFlagsUnicast CWCipherKeyFlags = 2 // A flag that indicates to use the cipher key for multicast packets. KCWCipherKeyFlagsMulticast CWCipherKeyFlags = 4 // A flag that indicates to use the cipher key for packets sent from the interface. KCWCipherKeyFlagsTx CWCipherKeyFlags = 8 // A flag that indicates to use the cipher key for packets received by the interface. KCWCipherKeyFlagsRx CWCipherKeyFlags = 16 )
func (CWCipherKeyFlags) String ¶
func (e CWCipherKeyFlags) String() string
type CWConfiguration ¶
type CWConfiguration struct {
foundation.NSObject
}
Encapsulates an immutable configuration for an AirPort WLAN interface.
Apple documentation: https://developer.apple.com/documentation/corewlan/cwconfiguration
func CWConfigurationConfiguration ¶
func CWConfigurationConfiguration() *CWConfiguration
Convenience method for getting an empty CWConfiguration object.
func CWConfigurationConfigurationWithConfiguration ¶
func CWConfigurationConfigurationWithConfiguration(configuration *CWConfiguration) *CWConfiguration
Convenience method for getting a CWConfiguration object initialized with the given CWConfiguration object.
func CWConfigurationFromID ¶
func CWConfigurationFromID(id objc.ID) *CWConfiguration
func (*CWConfiguration) Init ¶
func (o *CWConfiguration) Init() *CWConfiguration
Creates an empty CWConfiguration object.
func (*CWConfiguration) InitWithConfiguration ¶
func (o *CWConfiguration) InitWithConfiguration(configuration *CWConfiguration) *CWConfiguration
Creates and returns a CWConfiguration object initialized with the given CWConfiguration object.
func (*CWConfiguration) IsEqualToConfiguration ¶
func (o *CWConfiguration) IsEqualToConfiguration(configuration *CWConfiguration) bool
Determine CWConfiguration object equality.
func (*CWConfiguration) NetworkProfiles ¶
func (o *CWConfiguration) NetworkProfiles() *foundation.NSOrderedSet[*CWNetworkProfile]
@property @result An NSOrderedSet of CWNetworkProfile objects. @abstract Returns the preferred networks list. @discussion The order of the ordered set corresponds to the order the preferred networks list.
func (*CWConfiguration) RememberJoinedNetworks ¶
func (o *CWConfiguration) RememberJoinedNetworks() bool
@property @result YES if the preference is enabled, NO otherwise. @abstract Returns the preference to remember all Wi-Fi networks joined unless otherwise specified by the user when joining a particular Wi-Fi network.
func (*CWConfiguration) RequireAdministratorForAssociation ¶
func (o *CWConfiguration) RequireAdministratorForAssociation() bool
@property @result YES if the preference is enabled, NO otherwise. @abstract Returns the preference to require an administrator password to change networks. @discussion If YES, the user may be prompted to enter an administrator password upon attempting to join a Wi-Fi network. This preference is enforced at the API layer.
func (*CWConfiguration) RequireAdministratorForIBSSMode ¶
func (o *CWConfiguration) RequireAdministratorForIBSSMode() bool
@property @result YES if the preference is enabled, NO otherwise. @abstract Returns the preference to require an administrator password to create a computer-to-computer network. @discussion If YES, the user may be prompted to enter an administrator password upon attempting to create an IBSS network. This preference is enforced at the API layer.
func (*CWConfiguration) RequireAdministratorForPower ¶
func (o *CWConfiguration) RequireAdministratorForPower() bool
@property @result YES if the preference is enabled, NO otherwise. @abstract Returns the preference to require an administrator password to change the interface power state. @discussion If YES, the user may be prompted to enter an administrator password upon attempting to turn Wi-Fi on or off. This preference is enforced at the API layer.
type CWErr ¶
type CWErr int64
const ( KCWNoErr CWErr = 0 KCWEAPOLErr CWErr = 1 KCWInvalidParameterErr CWErr = -3900 KCWNoMemoryErr CWErr = -3901 KCWUnknownErr CWErr = -3902 KCWNotSupportedErr CWErr = -3903 KCWInvalidFormatErr CWErr = -3904 KCWTimeoutErr CWErr = -3905 KCWUnspecifiedFailureErr CWErr = -3906 KCWUnsupportedCapabilitiesErr CWErr = -3907 KCWReassociationDeniedErr CWErr = -3908 KCWAssociationDeniedErr CWErr = -3909 KCWAuthenticationAlgorithmUnsupportedErr CWErr = -3910 KCWInvalidAuthenticationSequenceNumberErr CWErr = -3911 KCWChallengeFailureErr CWErr = -3912 KCWAPFullErr CWErr = -3913 KCWUnsupportedRateSetErr CWErr = -3914 KCWShortSlotUnsupportedErr CWErr = -3915 KCWDSSSOFDMUnsupportedErr CWErr = -3916 KCWInvalidInformationElementErr CWErr = -3917 KCWInvalidGroupCipherErr CWErr = -3918 KCWInvalidPairwiseCipherErr CWErr = -3919 KCWInvalidAKMPErr CWErr = -3920 KCWUnsupportedRSNVersionErr CWErr = -3921 KCWInvalidRSNCapabilitiesErr CWErr = -3922 KCWCipherSuiteRejectedErr CWErr = -3923 KCWInvalidPMKErr CWErr = -3924 KCWSupplicantTimeoutErr CWErr = -3925 KCWHTFeaturesNotSupportedErr CWErr = -3926 KCWPCOTransitionTimeNotSupportedErr CWErr = -3927 KCWReferenceNotBoundErr CWErr = -3928 KCWIPCFailureErr CWErr = -3929 KCWOperationNotPermittedErr CWErr = -3930 KCWErr CWErr = -3931 )
type CWEventDelegate ¶
type CWEventDelegate interface {
}
CWEventDelegate wraps the ObjC protocol CWEventDelegate.
type CWEventType ¶
type CWEventType uint64
Wi-Fi event types.
const ( // No specified event type. CWEventTypeNone CWEventType = 0 // Posts when the power state of any Wi-Fi interface changes. CWEventTypePowerDidChange CWEventType = 1 // Posts when the current SSID of any Wi-Fi interface changes. CWEventTypeSSIDDidChange CWEventType = 2 // Posts when the current BSSID of any Wi-Fi interface changes. CWEventTypeBSSIDDidChange CWEventType = 3 // Posts when the adopted country code of any Wi-Fi interface changes. CWEventTypeCountryCodeDidChange CWEventType = 4 // Posts when the link state for any Wi-Fi interface changes. CWEventTypeLinkDidChange CWEventType = 5 // Posts when the RSSI or transmit rate for any Wi-Fi interface changes. CWEventTypeLinkQualityDidChange CWEventType = 6 // Posts when the operating mode of any Wi-Fi interface changes. CWEventTypeModeDidChange CWEventType = 7 // Posts when the scan cache of any Wi-Fi interface is updated with new scan results. CWEventTypeScanCacheUpdated CWEventType = 8 CWEventTypeBtCoexStats CWEventType = 9 // Unknown event type. CWEventTypeUnknown CWEventType = 9223372036854775807 )
func (CWEventType) String ¶
func (e CWEventType) String() string
type CWIBSSModeSecurity ¶
type CWIBSSModeSecurity int64
IBSS mode security types.
const ( // Open System authentication. KCWIBSSModeSecurityNone CWIBSSModeSecurity = 0 // WEP security. KCWIBSSModeSecurityWEP40 CWIBSSModeSecurity = 1 // WPA Personal authentication. KCWIBSSModeSecurityWEP104 CWIBSSModeSecurity = 2 )
func (CWIBSSModeSecurity) String ¶
func (e CWIBSSModeSecurity) String() string
type CWInterface ¶
type CWInterface struct {
foundation.NSObject
}
Encapsulates an IEEE 802.11 interface.
Apple documentation: https://developer.apple.com/documentation/corewlan/cwinterface
func CWInterfaceFromID ¶
func CWInterfaceFromID(id objc.ID) *CWInterface
func CWInterfaceInterface ¶
func CWInterfaceInterface() *CWInterface
Convenience method for getting an CWInterface object for the default WLAN interface. Deprecated: since macOS 10.10.
func CWInterfaceInterfaceWithName ¶
func CWInterfaceInterfaceWithName(name *foundation.NSString) *CWInterface
An instance method for obtaining an CWInterface object. Deprecated: since macOS 10.10.
func (*CWInterface) ActivePHYMode ¶
func (o *CWInterface) ActivePHYMode() CWPHYMode
The current active PHY modes for the interface.
func (*CWInterface) AssociateToEnterpriseNetworkIdentityUsernamePasswordError ¶
func (o *CWInterface) AssociateToEnterpriseNetworkIdentityUsernamePasswordError(network *CWNetwork, identity unsafe.Pointer, username *foundation.NSString, password *foundation.NSString) (bool, error)
Connects to the given enterprise network.
func (*CWInterface) AssociateToNetworkPasswordError ¶
func (o *CWInterface) AssociateToNetworkPasswordError(network *CWNetwork, password *foundation.NSString) (bool, error)
Associates to a given network using the given network passphrase.
func (*CWInterface) Bssid ¶
func (o *CWInterface) Bssid() *foundation.NSString
The current basic service set identifier (BSSID) for the interface, returned as a UTF-8 string.
func (*CWInterface) CachedScanResults ¶
func (o *CWInterface) CachedScanResults() *foundation.NSSet[*CWNetwork]
The networks currently in the scan cache for the WLAN interface.
func (*CWInterface) CommitConfigurationAuthorizationError ¶
func (o *CWInterface) CommitConfigurationAuthorizationError(configuration *CWConfiguration, authorization *securityfoundation.SFAuthorization) (bool, error)
Commit a configuration for the given WLAN interface.
func (*CWInterface) Configuration ¶
func (o *CWInterface) Configuration() *CWConfiguration
The current configuration for the given WLAN interface.
func (*CWInterface) CountryCode ¶
func (o *CWInterface) CountryCode() *foundation.NSString
The current country code (ISO/IEC 3166-1:1997) for the interface.
func (*CWInterface) Disassociate ¶
func (o *CWInterface) Disassociate()
Disassociates from the current network.
func (*CWInterface) HardwareAddress ¶
func (o *CWInterface) HardwareAddress() *foundation.NSString
The hardware media access control (MAC) address for the interface, returned as a UTF-8 string.
func (*CWInterface) InitWithInterfaceName ¶
func (o *CWInterface) InitWithInterfaceName(name *foundation.NSString) *CWInterface
Convenience method for getting an CWInterface object with the specified name. Deprecated: since macOS 10.10.
func (*CWInterface) InterfaceMode ¶
func (o *CWInterface) InterfaceMode() CWInterfaceMode
The current mode for the interface.
func (*CWInterface) InterfaceName ¶
func (o *CWInterface) InterfaceName() *foundation.NSString
@property @abstract Returns the BSD name of the Wi-Fi interface (e.g. "en0").
func (*CWInterface) NoiseMeasurement ¶
func (o *CWInterface) NoiseMeasurement() int
The current aggregate noise measurement (dBm) for the interface.
func (*CWInterface) PowerOn ¶
func (o *CWInterface) PowerOn() bool
The interface power state is set to “ON”.
func (*CWInterface) RssiValue ¶
func (o *CWInterface) RssiValue() int
The current aggregate received signal strength indication (RSSI) measurement (dBm) for the interface.
func (*CWInterface) ScanForNetworksWithNameError ¶
func (o *CWInterface) ScanForNetworksWithNameError(networkName *foundation.NSString) (*foundation.NSSet[*CWNetwork], error)
Scans for networks.
func (*CWInterface) ScanForNetworksWithNameIncludeHiddenError ¶
func (o *CWInterface) ScanForNetworksWithNameIncludeHiddenError(networkName *foundation.NSString, includeHidden bool) (*foundation.NSSet[*CWNetwork], error)
Scans for networks with the name you specify, optionally including hidden networks.
func (*CWInterface) ScanForNetworksWithSSIDError ¶
func (o *CWInterface) ScanForNetworksWithSSIDError(ssid *foundation.NSData) (*foundation.NSSet[*CWNetwork], error)
Scans for networks.
func (*CWInterface) ScanForNetworksWithSSIDIncludeHiddenError ¶
func (o *CWInterface) ScanForNetworksWithSSIDIncludeHiddenError(ssid *foundation.NSData, includeHidden bool) (*foundation.NSSet[*CWNetwork], error)
Scans for networks with the SSID you specify, optionally including hidden networks.
func (*CWInterface) Security ¶
func (o *CWInterface) Security() CWSecurity
The current security mode for the interface.
func (*CWInterface) ServiceActive ¶
func (o *CWInterface) ServiceActive() bool
The interface has its corresponding network service enabled.
func (*CWInterface) SetPairwiseMasterKeyError ¶
func (o *CWInterface) SetPairwiseMasterKeyError(key *foundation.NSData) (bool, error)
Sets the interface pairwise primary key (PMK).
func (*CWInterface) SetPowerError ¶
func (o *CWInterface) SetPowerError(power bool) (bool, error)
Sets the interface power state.
func (*CWInterface) SetWEPKeyFlagsIndexError ¶
func (o *CWInterface) SetWEPKeyFlagsIndexError(key *foundation.NSData, flags CWCipherKeyFlags, index int) (bool, error)
Sets the interface WEP key.
func (*CWInterface) SetWLANChannelError ¶
func (o *CWInterface) SetWLANChannelError(channel *CWChannel) (bool, error)
Sets the interface channel.
func (*CWInterface) Ssid ¶
func (o *CWInterface) Ssid() *foundation.NSString
The current service set identifier (SSID) for the interface, encoded as a string.
func (*CWInterface) SsidData ¶
func (o *CWInterface) SsidData() *foundation.NSData
The current service set identifier (SSID) for the interface, returned as data.
func (*CWInterface) StartIBSSModeWithSSIDSecurityChannelPasswordError ¶
func (o *CWInterface) StartIBSSModeWithSSIDSecurityChannelPasswordError(ssidData *foundation.NSData, security CWIBSSModeSecurity, channel uint, password *foundation.NSString) (bool, error)
Creates a computer-to-computer (ad-hoc) network with the given network name, security type, and password on the specified channel. Deprecated: since macOS 11.0.
func (*CWInterface) SupportedWLANChannels ¶
func (o *CWInterface) SupportedWLANChannels() *foundation.NSSet[*CWChannel]
An array of channels supported by the interface for the active country code.
func (*CWInterface) TransmitPower ¶
func (o *CWInterface) TransmitPower() int
The current transmit power (mW) for the interface.
func (*CWInterface) TransmitRate ¶
func (o *CWInterface) TransmitRate() float64
The current transmit rate (Mbps) for the interface.
func (*CWInterface) WlanChannel ¶
func (o *CWInterface) WlanChannel() *CWChannel
The current channel for the interface.
type CWInterfaceMode ¶
type CWInterfaceMode int64
Wi-Fi interface operating modes.
const ( // Interface is not in any mode. KCWInterfaceModeNone CWInterfaceMode = 0 // Interface is participating in an infrastructure network as a non-AP station. KCWInterfaceModeStation CWInterfaceMode = 1 // Interface is participating in an IBSS network. KCWInterfaceModeIBSS CWInterfaceMode = 2 // Interface is participating in an infrastructure network as an access point. KCWInterfaceModeHostAP CWInterfaceMode = 3 )
func (CWInterfaceMode) String ¶
func (e CWInterfaceMode) String() string
type CWKeychainDomain ¶
type CWKeychainDomain int64
Keychain domain types that CoreWLAN keychain methods use.
const ( // No keychain domain specified. KCWKeychainDomainNone CWKeychainDomain = 0 // The user keychain domain. KCWKeychainDomainUser CWKeychainDomain = 1 // The system keychain domain. KCWKeychainDomainSystem CWKeychainDomain = 2 )
func (CWKeychainDomain) String ¶
func (e CWKeychainDomain) String() string
type CWMutableConfiguration ¶
type CWMutableConfiguration struct {
CWConfiguration
}
Encapsulates a mutable configuration for an AirPort WLAN interface.
Apple documentation: https://developer.apple.com/documentation/corewlan/cwmutableconfiguration
func CWMutableConfigurationFromID ¶
func CWMutableConfigurationFromID(id objc.ID) *CWMutableConfiguration
func (*CWMutableConfiguration) SetNetworkProfiles ¶
func (o *CWMutableConfiguration) SetNetworkProfiles(networkProfiles *foundation.NSOrderedSet[*CWNetworkProfile])
func (*CWMutableConfiguration) SetRememberJoinedNetworks ¶
func (o *CWMutableConfiguration) SetRememberJoinedNetworks(rememberJoinedNetworks bool)
func (*CWMutableConfiguration) SetRequireAdministratorForAssociation ¶
func (o *CWMutableConfiguration) SetRequireAdministratorForAssociation(requireAdministratorForAssociation bool)
func (*CWMutableConfiguration) SetRequireAdministratorForIBSSMode
deprecated
func (o *CWMutableConfiguration) SetRequireAdministratorForIBSSMode(requireAdministratorForIBSSMode bool)
Deprecated: since macOS 11.0.
func (*CWMutableConfiguration) SetRequireAdministratorForPower ¶
func (o *CWMutableConfiguration) SetRequireAdministratorForPower(requireAdministratorForPower bool)
type CWMutableNetworkProfile ¶
type CWMutableNetworkProfile struct {
CWNetworkProfile
}
Encapsulates a mutable network profile entry.
Apple documentation: https://developer.apple.com/documentation/corewlan/cwmutablenetworkprofile
func CWMutableNetworkProfileFromID ¶
func CWMutableNetworkProfileFromID(id objc.ID) *CWMutableNetworkProfile
func (*CWMutableNetworkProfile) SetSecurity ¶
func (o *CWMutableNetworkProfile) SetSecurity(security CWSecurity)
func (*CWMutableNetworkProfile) SetSsidData ¶
func (o *CWMutableNetworkProfile) SetSsidData(ssidData *foundation.NSData)
type CWNetwork ¶
type CWNetwork struct {
foundation.NSObject
}
Encapsulates an IEEE 802.11 network, providing read-only accessors to various properties of the network.
Apple documentation: https://developer.apple.com/documentation/corewlan/cwnetwork
func CWNetworkFromID ¶
func (*CWNetwork) BeaconInterval ¶
@property @abstract Returns the beacon interval (ms) for the Wi-Fi device.
func (*CWNetwork) Bssid ¶
func (o *CWNetwork) Bssid() *foundation.NSString
@property @abstract Returns the basic service set identifier (BSSID) for the Wi-Fi network device, returned as UTF-8 string. @discussion Returns a UTF-8 string using hexadecimal characters formatted as XX:XX:XX:XX:XX:XX. @note BSSID information is not available unless Location Services is enabled and the user has authorized the calling app to use location services. @seealso CLLocationManager
func (*CWNetwork) CountryCode ¶
func (o *CWNetwork) CountryCode() *foundation.NSString
@property @abstract Returns the advertised country code (ISO/IEC 3166-1:1997) for the Wi-Fi device. @note Country code information is not available unless Location Services is enabled and the user has authorized the calling app to use location services. @seealso CLLocationManager
func (*CWNetwork) Ibss ¶
@property @result YES if the Wi-Fi device is part of an IBSS network, NO otherwise. @abstract Indicates whether or not the Wi-Fi device is participating in an independent basic service set (IBSS), or ad-hoc Wi-Fi network.
func (*CWNetwork) InformationElementData ¶
func (o *CWNetwork) InformationElementData() *foundation.NSData
@property @abstract Returns information element data included in beacon or probe response frames.
func (*CWNetwork) IsEqualToNetwork ¶
Method for determining CWNetwork object equality.
func (*CWNetwork) NoiseMeasurement ¶
@property @abstract Returns the noise measurement (dBm) for the Wi-Fi device.
func (*CWNetwork) RssiValue ¶
@property @abstract Returns the received signal strength indication (RSSI) measurement (dBm) for the Wi-Fi device.
func (*CWNetwork) Ssid ¶
func (o *CWNetwork) Ssid() *foundation.NSString
@property @abstract Returns the service set identifier (SSID) for the Wi-Fi network device, encoded as a string. @discussion Returns nil if the SSID can not be encoded as a valid UTF-8 or WinLatin1 string. @note SSID information is not available unless Location Services is enabled and the user has authorized the calling app to use location services. @seealso CLLocationManager
func (*CWNetwork) SsidData ¶
func (o *CWNetwork) SsidData() *foundation.NSData
@property @abstract Returns the service set identifier (SSID) for the Wi-Fi network device, encapsulated in an NSData object. @discussion The SSID is defined as 1-32 octets. @note SSID information is not available unless Location Services is enabled and the user has authorized the calling app to use location services. @seealso CLLocationManager
func (*CWNetwork) SupportsPHYMode ¶
Method for determining which PHY modes a network supports.
func (*CWNetwork) SupportsSecurity ¶
func (o *CWNetwork) SupportsSecurity(security CWSecurity) bool
Method for determining which security types a network supports.
func (*CWNetwork) WlanChannel ¶
@property @abstract The operating channel of the Wi-Fi device.
type CWNetworkProfile ¶
type CWNetworkProfile struct {
foundation.NSObject
}
Encapsulates an immutable network profile entry.
Apple documentation: https://developer.apple.com/documentation/corewlan/cwnetworkprofile
func CWNetworkProfileFromID ¶
func CWNetworkProfileFromID(id objc.ID) *CWNetworkProfile
func CWNetworkProfileNetworkProfile ¶
func CWNetworkProfileNetworkProfile() *CWNetworkProfile
Convenience method for getting a CWNetworkProfile object.
func CWNetworkProfileNetworkProfileWithNetworkProfile ¶
func CWNetworkProfileNetworkProfileWithNetworkProfile(networkProfile *CWNetworkProfile) *CWNetworkProfile
Convenience method for getting a CWNetworkProfile object initialized with the given CWNetworkProfile object.
func (*CWNetworkProfile) Init ¶
func (o *CWNetworkProfile) Init() *CWNetworkProfile
Creates and returns a CWNetworkProfile object.
func (*CWNetworkProfile) InitWithNetworkProfile ¶
func (o *CWNetworkProfile) InitWithNetworkProfile(networkProfile *CWNetworkProfile) *CWNetworkProfile
Creates and returns a CWNetworkProfile object initialized with the given CWNetworkProfile object.
func (*CWNetworkProfile) IsEqualToNetworkProfile ¶
func (o *CWNetworkProfile) IsEqualToNetworkProfile(networkProfile *CWNetworkProfile) bool
Determine CWNetworkProfile object equality.
func (*CWNetworkProfile) Security ¶
func (o *CWNetworkProfile) Security() CWSecurity
@property @abstract Returns the security type of the Wi-Fi network profile.
func (*CWNetworkProfile) Ssid ¶
func (o *CWNetworkProfile) Ssid() *foundation.NSString
@property @abstract Returns the service set identifier (SSID) for the Wi-Fi network profile, encoded as a string. @discussion Returns nil if the SSID can not be encoded as a valid UTF-8 or WinLatin1 string.
func (*CWNetworkProfile) SsidData ¶
func (o *CWNetworkProfile) SsidData() *foundation.NSData
@property @abstract Returns the service set identifier (SSID) for the Wi-Fi network profile, encapsulated in an NSData object. @discussion The SSID is 1-32 octets.
type CWPHYMode ¶
type CWPHYMode int64
CoreWLAN physical layer modes.
const ( // No specified mode. KCWPHYModeNone CWPHYMode = 0 // IEEE 802.11a PHY. KCWPHYMode11a CWPHYMode = 1 // IEEE 802.11b PHY. KCWPHYMode11b CWPHYMode = 2 // IEEE 802.11g PHY. KCWPHYMode11g CWPHYMode = 3 // IEEE 802.11n PHY. KCWPHYMode11n CWPHYMode = 4 // IEEE 802.11ac PHY. KCWPHYMode11ac CWPHYMode = 5 KCWPHYMode11ax CWPHYMode = 6 KCWPHYMode11be CWPHYMode = 7 )
type CWSecurity ¶
type CWSecurity uint64
CoreWLAN security types.
const ( // Open System authentication. KCWSecurityNone CWSecurity = 0 // WEP security. KCWSecurityWEP CWSecurity = 1 // WPA Personal authentication. KCWSecurityWPAPersonal CWSecurity = 2 // WPA/WPA2 Personal authentication. KCWSecurityWPAPersonalMixed CWSecurity = 3 // WPA2 Personal authentication. KCWSecurityWPA2Personal CWSecurity = 4 // Personal authentication. KCWSecurityPersonal CWSecurity = 5 // Dynamic WEP security. KCWSecurityDynamicWEP CWSecurity = 6 // WPA Enterprise authentication. KCWSecurityWPAEnterprise CWSecurity = 7 // WPA/WPA2 Enterprise authentication. KCWSecurityWPAEnterpriseMixed CWSecurity = 8 // WPA2 Enterprise authentication. KCWSecurityWPA2Enterprise CWSecurity = 9 // Enterprise authentication. KCWSecurityEnterprise CWSecurity = 10 // WPA3 Personal authentication. KCWSecurityWPA3Personal CWSecurity = 11 // WPA3 Enterprise authentication. KCWSecurityWPA3Enterprise CWSecurity = 12 // WPA3 Transition (WPA3/WPA2 Personal) authentication. KCWSecurityWPA3Transition CWSecurity = 13 KCWSecurityOWE CWSecurity = 14 KCWSecurityOWETransition CWSecurity = 15 // Unknown security type. KCWSecurityUnknown CWSecurity = 9223372036854775807 )
func (CWSecurity) String ¶
func (e CWSecurity) String() string
type CWWiFiClient ¶
type CWWiFiClient struct {
foundation.NSObject
}
A wrapper around the entire Wi-Fi subsystem that you use to access interfaces and set up event notifications.
Apple documentation: https://developer.apple.com/documentation/corewlan/cwwificlient
func CWWiFiClientFromID ¶
func CWWiFiClientFromID(id objc.ID) *CWWiFiClient
func CWWiFiClientSharedWiFiClient ¶
func CWWiFiClientSharedWiFiClient() *CWWiFiClient
The shared Wi-Fi client object.
func (*CWWiFiClient) Delegate ¶
func (o *CWWiFiClient) Delegate() objc.ID
@property @abstract Sets the delegate to the specified object, which may implement CWWiFiEventDelegate protocol for Wi-Fi event handling. @discussion Clients may register for specific Wi-Fi events using -[CWWiFiClient startMonitoringEventWithType:error:].
func (*CWWiFiClient) Init ¶
func (o *CWWiFiClient) Init() *CWWiFiClient
Initializes a Wi-Fi client object.
func (*CWWiFiClient) Interface ¶
func (o *CWWiFiClient) Interface() *CWInterface
Returns the default Wi-Fi interface.
func (*CWWiFiClient) InterfaceNames ¶
func (o *CWWiFiClient) InterfaceNames() *foundation.NSArray[*foundation.NSString]
@method @result An NSArray of NSString objects corresponding to Wi-Fi interface names. @abstract Returns the list of available Wi-Fi interface names (e.g. "en0"). @discussion If no Wi-Fi interfaces are available, this method will return an empty array. Returns nil if an error occurs.
func (*CWWiFiClient) InterfaceWithName ¶
func (o *CWWiFiClient) InterfaceWithName(interfaceName *foundation.NSString) *CWInterface
Returns the Wi-Fi interface with the given name.
func (*CWWiFiClient) Interfaces ¶
func (o *CWWiFiClient) Interfaces() *foundation.NSArray[*CWInterface]
Returns all available Wi-Fi interfaces.
func (*CWWiFiClient) SetDelegate ¶
func (o *CWWiFiClient) SetDelegate(delegate objc.ID)
func (*CWWiFiClient) StartMonitoringEventWithTypeError ¶
func (o *CWWiFiClient) StartMonitoringEventWithTypeError(type_ CWEventType) (bool, error)
Register for specific Wi-Fi event notifications.
func (*CWWiFiClient) StopMonitoringAllEventsAndReturnError ¶
func (o *CWWiFiClient) StopMonitoringAllEventsAndReturnError() (bool, error)
Unregister for all Wi-Fi event notifications.
func (*CWWiFiClient) StopMonitoringEventWithTypeError ¶
func (o *CWWiFiClient) StopMonitoringEventWithTypeError(type_ CWEventType) (bool, error)
Unregister for specific Wi-Fi event notifications.
type Dispatch_autorelease_frequency_t ¶
type Dispatch_autorelease_frequency_t uint64
const ( DISPATCH_AUTORELEASE_FREQUENCY_INHERIT Dispatch_autorelease_frequency_t = 0 DISPATCH_AUTORELEASE_FREQUENCY_WORK_ITEM Dispatch_autorelease_frequency_t = 1 DISPATCH_AUTORELEASE_FREQUENCY_NEVER Dispatch_autorelease_frequency_t = 2 )
func (Dispatch_autorelease_frequency_t) String ¶
func (e Dispatch_autorelease_frequency_t) String() string
type Dispatch_block_flags_t ¶
type Dispatch_block_flags_t uint64
const ( DISPATCH_BLOCK_BARRIER Dispatch_block_flags_t = 1 DISPATCH_BLOCK_DETACHED Dispatch_block_flags_t = 2 DISPATCH_BLOCK_ASSIGN_CURRENT Dispatch_block_flags_t = 4 DISPATCH_BLOCK_NO_QOS_CLASS Dispatch_block_flags_t = 8 DISPATCH_BLOCK_INHERIT_QOS_CLASS Dispatch_block_flags_t = 16 DISPATCH_BLOCK_ENFORCE_QOS_CLASS Dispatch_block_flags_t = 32 )
func (Dispatch_block_flags_t) String ¶
func (e Dispatch_block_flags_t) String() string
type Filesec_property_t ¶
type Filesec_property_t int64
const ( FILESEC_OWNER Filesec_property_t = 1 FILESEC_GROUP Filesec_property_t = 2 FILESEC_UUID Filesec_property_t = 3 FILESEC_MODE Filesec_property_t = 4 FILESEC_ACL Filesec_property_t = 5 FILESEC_GRPUUID Filesec_property_t = 6 FILESEC_ACL_RAW Filesec_property_t = 100 FILESEC_ACL_ALLOCSIZE Filesec_property_t = 101 )
func (Filesec_property_t) String ¶
func (e Filesec_property_t) String() string
type Ipc_info_object_type_t ¶
type Ipc_info_object_type_t int64
const ( IPC_OTYPE_NONE Ipc_info_object_type_t = 0 IPC_OTYPE_THREAD_CONTROL Ipc_info_object_type_t = 1 IPC_OTYPE_TASK_CONTROL Ipc_info_object_type_t = 2 IPC_OTYPE_HOST Ipc_info_object_type_t = 3 IPC_OTYPE_HOST_PRIV Ipc_info_object_type_t = 4 IPC_OTYPE_PROCESSOR Ipc_info_object_type_t = 5 IPC_OTYPE_PROCESSOR_SET Ipc_info_object_type_t = 6 IPC_OTYPE_PROCESSOR_SET_NAME Ipc_info_object_type_t = 7 IPC_OTYPE_TIMER Ipc_info_object_type_t = 8 IPC_OTYPE_PORT_SUBST_ONCE Ipc_info_object_type_t = 9 IPC_OTYPE_MIG Ipc_info_object_type_t = 10 IPC_OTYPE_MEMORY_OBJECT Ipc_info_object_type_t = 11 IPC_OTYPE_XMM_PAGER Ipc_info_object_type_t = 12 IPC_OTYPE_XMM_KERNEL Ipc_info_object_type_t = 13 IPC_OTYPE_XMM_REPLY Ipc_info_object_type_t = 14 IPC_OTYPE_UND_REPLY Ipc_info_object_type_t = 15 IPC_OTYPE_HOST_NOTIFY Ipc_info_object_type_t = 16 IPC_OTYPE_HOST_SECURITY Ipc_info_object_type_t = 17 IPC_OTYPE_LEDGER Ipc_info_object_type_t = 18 IPC_OTYPE_MAIN_DEVICE Ipc_info_object_type_t = 19 IPC_OTYPE_TASK_NAME Ipc_info_object_type_t = 20 IPC_OTYPE_SUBSYSTEM Ipc_info_object_type_t = 21 IPC_OTYPE_IO_DONE_QUEUE Ipc_info_object_type_t = 22 IPC_OTYPE_SEMAPHORE Ipc_info_object_type_t = 23 IPC_OTYPE_LOCK_SET Ipc_info_object_type_t = 24 IPC_OTYPE_CLOCK Ipc_info_object_type_t = 25 IPC_OTYPE_CLOCK_CTRL Ipc_info_object_type_t = 26 IPC_OTYPE_IOKIT_IDENT Ipc_info_object_type_t = 27 IPC_OTYPE_NAMED_ENTRY Ipc_info_object_type_t = 28 IPC_OTYPE_IOKIT_CONNECT Ipc_info_object_type_t = 29 IPC_OTYPE_IOKIT_OBJECT Ipc_info_object_type_t = 30 IPC_OTYPE_UPL Ipc_info_object_type_t = 31 IPC_OTYPE_MEM_OBJ_CONTROL Ipc_info_object_type_t = 32 IPC_OTYPE_AU_SESSIONPORT Ipc_info_object_type_t = 33 IPC_OTYPE_FILEPORT Ipc_info_object_type_t = 34 IPC_OTYPE_LABELH Ipc_info_object_type_t = 35 IPC_OTYPE_TASK_RESUME Ipc_info_object_type_t = 36 IPC_OTYPE_VOUCHER Ipc_info_object_type_t = 37 IPC_OTYPE_VOUCHER_ATTR_CONTROL Ipc_info_object_type_t = 38 IPC_OTYPE_WORK_INTERVAL Ipc_info_object_type_t = 39 IPC_OTYPE_UX_HANDLER Ipc_info_object_type_t = 40 IPC_OTYPE_UEXT_OBJECT Ipc_info_object_type_t = 41 IPC_OTYPE_ARCADE_REG Ipc_info_object_type_t = 42 IPC_OTYPE_EVENTLINK Ipc_info_object_type_t = 43 IPC_OTYPE_TASK_INSPECT Ipc_info_object_type_t = 44 IPC_OTYPE_TASK_READ Ipc_info_object_type_t = 45 IPC_OTYPE_THREAD_INSPECT Ipc_info_object_type_t = 46 IPC_OTYPE_THREAD_READ Ipc_info_object_type_t = 47 IPC_OTYPE_SUID_CRED Ipc_info_object_type_t = 48 IPC_OTYPE_HYPERVISOR Ipc_info_object_type_t = 49 IPC_OTYPE_TASK_ID_TOKEN Ipc_info_object_type_t = 50 IPC_OTYPE_TASK_FATAL Ipc_info_object_type_t = 51 IPC_OTYPE_KCDATA Ipc_info_object_type_t = 52 IPC_OTYPE_EXCLAVES_RESOURCE Ipc_info_object_type_t = 53 IPC_OTYPE_THREAD_RESUME Ipc_info_object_type_t = 54 IPC_OTYPE_UNKNOWN Ipc_info_object_type_t = 4294967295 )
func (Ipc_info_object_type_t) String ¶
func (e Ipc_info_object_type_t) String() string
type Launch_data_type_t ¶
type Launch_data_type_t int64
const ( LAUNCH_DATA_DICTIONARY Launch_data_type_t = 1 LAUNCH_DATA_ARRAY Launch_data_type_t = 2 LAUNCH_DATA_FD Launch_data_type_t = 3 LAUNCH_DATA_INTEGER Launch_data_type_t = 4 LAUNCH_DATA_REAL Launch_data_type_t = 5 LAUNCH_DATA_BOOL Launch_data_type_t = 6 LAUNCH_DATA_STRING Launch_data_type_t = 7 LAUNCH_DATA_OPAQUE Launch_data_type_t = 8 LAUNCH_DATA_ERRNO Launch_data_type_t = 9 LAUNCH_DATA_MACHPORT Launch_data_type_t = 10 )
func (Launch_data_type_t) String ¶
func (e Launch_data_type_t) String() string
type MDLabelDomain ¶
type MDLabelDomain int64
@typedef MDLabelDomain @abstract These constants are used to specify a domain to MDLabelCreate().
const ( KMDLabelUserDomain MDLabelDomain = 0 KMDLabelLocalDomain MDLabelDomain = 1 )
func (MDLabelDomain) String ¶
func (e MDLabelDomain) String() string
type MDQueryOptionFlags ¶
type MDQueryOptionFlags int64
const ( KMDQuerySynchronous MDQueryOptionFlags = 1 KMDQueryWantsUpdates MDQueryOptionFlags = 4 KMDQueryAllowFSTranslation MDQueryOptionFlags = 8 )
func (MDQueryOptionFlags) String ¶
func (e MDQueryOptionFlags) String() string
type MDQuerySortOptionFlags ¶
type MDQuerySortOptionFlags int64
@enum MDQuerySortOptionFlags @constant kMDQueryReverseSortOrderFlag Sort the attribute in reverse order.
const (
KMDQueryReverseSortOrderFlag MDQuerySortOptionFlags = 1
)
func (MDQuerySortOptionFlags) String ¶
func (e MDQuerySortOptionFlags) String() string
type Mach_vm_range_flags_t ¶
type Mach_vm_range_flags_t int64
const (
MACH_VM_RANGE_NONE Mach_vm_range_flags_t = 0
)
func (Mach_vm_range_flags_t) String ¶
func (e Mach_vm_range_flags_t) String() string
type Mach_vm_range_flavor_t ¶
type Mach_vm_range_flavor_t int64
const ( MACH_VM_RANGE_FLAVOR_INVALID Mach_vm_range_flavor_t = 0 MACH_VM_RANGE_FLAVOR_V1 Mach_vm_range_flavor_t = 1 )
func (Mach_vm_range_flavor_t) String ¶
func (e Mach_vm_range_flavor_t) String() string
type Mach_vm_range_tag_t ¶
type Mach_vm_range_tag_t int64
const ( MACH_VM_RANGE_DEFAULT Mach_vm_range_tag_t = 0 MACH_VM_RANGE_DATA Mach_vm_range_tag_t = 1 MACH_VM_RANGE_FIXED Mach_vm_range_tag_t = 2 )
func (Mach_vm_range_tag_t) String ¶
func (e Mach_vm_range_tag_t) String() string
type Mpo_flags_t ¶
type Mpo_flags_t int64
const ( MPO_PORT Mpo_flags_t = 0 MPO_SERVICE_PORT Mpo_flags_t = 1024 MPO_CONNECTION_PORT Mpo_flags_t = 2048 MPO_REPLY_PORT Mpo_flags_t = 4096 MPO_WEAK_REPLY_PORT Mpo_flags_t = 16384 MPO_NOTIFICATION_PORT Mpo_flags_t = 17408 MPO_EXCEPTION_PORT Mpo_flags_t = 32768 MPO_CONNECTION_PORT_WITH_PORT_ARRAY Mpo_flags_t = 65536 )
func (Mpo_flags_t) String ¶
func (e Mpo_flags_t) String() string
type Os_clockid_t ¶
type Os_clockid_t int64
const (
OS_CLOCK_MACH_ABSOLUTE_TIME Os_clockid_t = 32
)
func (Os_clockid_t) String ¶
func (e Os_clockid_t) String() string
type Ptrauth_key ¶
type Ptrauth_key int64
const ( Ptrauth_key_none Ptrauth_key = -1 Ptrauth_key_asia Ptrauth_key = 0 Ptrauth_key_asib Ptrauth_key = 1 Ptrauth_key_asda Ptrauth_key = 2 Ptrauth_key_asdb Ptrauth_key = 3 Ptrauth_key_process_independent_code Ptrauth_key = 0 Ptrauth_key_process_dependent_code Ptrauth_key = 1 Ptrauth_key_process_independent_data Ptrauth_key = 2 Ptrauth_key_process_dependent_data Ptrauth_key = 3 Ptrauth_key_return_address Ptrauth_key = 1 Ptrauth_key_frame_pointer Ptrauth_key = 3 Ptrauth_key_function_pointer Ptrauth_key = 0 Ptrauth_key_block_function Ptrauth_key = 0 Ptrauth_key_cxx_vtable_pointer Ptrauth_key = 2 Ptrauth_key_method_list_pointer Ptrauth_key = 2 Ptrauth_key_objc_isa_pointer Ptrauth_key = 2 Ptrauth_key_objc_super_pointer Ptrauth_key = 2 Ptrauth_key_objc_sel_pointer Ptrauth_key = 3 Ptrauth_key_objc_class_ro_pointer Ptrauth_key = 2 Ptrauth_key_block_descriptor_pointer Ptrauth_key = 2 Ptrauth_key_init_fini_pointer Ptrauth_key = 0 )
func (Ptrauth_key) String ¶
func (e Ptrauth_key) String() string
type Qos_class_t ¶
type Qos_class_t uint32
const ( QOS_CLASS_USER_INTERACTIVE Qos_class_t = 33 QOS_CLASS_USER_INITIATED Qos_class_t = 25 QOS_CLASS_DEFAULT Qos_class_t = 21 QOS_CLASS_UTILITY Qos_class_t = 17 QOS_CLASS_BACKGROUND Qos_class_t = 9 QOS_CLASS_UNSPECIFIED Qos_class_t = 0 )
func (Qos_class_t) String ¶
func (e Qos_class_t) String() string
type Virtual_memory_guard_exception_code_t ¶
type Virtual_memory_guard_exception_code_t int64
const ( KGUARD_EXC_DEALLOC_GAP Virtual_memory_guard_exception_code_t = 1 KGUARD_EXC_RECLAIM_COPYIO_FAILURE Virtual_memory_guard_exception_code_t = 2 KGUARD_EXC_RECLAIM_INDEX_FAILURE Virtual_memory_guard_exception_code_t = 4 KGUARD_EXC_RECLAIM_DEALLOCATE_FAILURE Virtual_memory_guard_exception_code_t = 8 KGUARD_EXC_RECLAIM_ACCOUNTING_FAILURE Virtual_memory_guard_exception_code_t = 9 KGUARD_EXC_SEC_IOPL_ON_EXEC_PAGE Virtual_memory_guard_exception_code_t = 10 KGUARD_EXC_SEC_EXEC_ON_IOPL_PAGE Virtual_memory_guard_exception_code_t = 11 KGUARD_EXC_SEC_UPL_WRITE_ON_EXEC_REGION Virtual_memory_guard_exception_code_t = 12 KGUARD_EXC_LARGE_ALLOCATION_TELEMETRY Virtual_memory_guard_exception_code_t = 13 KGUARD_EXC_SEC_ACCESS_FAULT Virtual_memory_guard_exception_code_t = 98 KGUARD_EXC_SEC_ASYNC_ACCESS_FAULT Virtual_memory_guard_exception_code_t = 99 KGUARD_EXC_SEC_COPY_DENIED Virtual_memory_guard_exception_code_t = 100 KGUARD_EXC_SEC_SHARING_DENIED Virtual_memory_guard_exception_code_t = 101 KGUARD_EXC_MTE_SYNC_FAULT Virtual_memory_guard_exception_code_t = 200 KGUARD_EXC_MTE_ASYNC_USER_FAULT Virtual_memory_guard_exception_code_t = 201 KGUARD_EXC_MTE_ASYNC_KERN_FAULT Virtual_memory_guard_exception_code_t = 202 KGUARD_EXC_GUARD_OBJECT_ASYNC_USER_FAULT Virtual_memory_guard_exception_code_t = 203 KGUARD_EXC_GUARD_OBJECT_ASYNC_KERN_FAULT Virtual_memory_guard_exception_code_t = 204 )
func (Virtual_memory_guard_exception_code_t) String ¶
func (e Virtual_memory_guard_exception_code_t) String() string
type Xpc_listener_create_flags_t ¶
type Xpc_listener_create_flags_t int64
const ( XPC_LISTENER_CREATE_NONE Xpc_listener_create_flags_t = 0 XPC_LISTENER_CREATE_INACTIVE Xpc_listener_create_flags_t = 1 XPC_LISTENER_CREATE_FORCE_MACH Xpc_listener_create_flags_t = 2 XPC_LISTENER_CREATE_FORCE_XPCSERVICE Xpc_listener_create_flags_t = 4 )
func (Xpc_listener_create_flags_t) String ¶
func (e Xpc_listener_create_flags_t) String() string
type Xpc_session_create_flags_t ¶
type Xpc_session_create_flags_t int64
const ( XPC_SESSION_CREATE_NONE Xpc_session_create_flags_t = 0 XPC_SESSION_CREATE_INACTIVE Xpc_session_create_flags_t = 1 XPC_SESSION_CREATE_MACH_PRIVILEGED Xpc_session_create_flags_t = 2 )
func (Xpc_session_create_flags_t) String ¶
func (e Xpc_session_create_flags_t) String() string