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]deprecated
- 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]
@method @result An NSSet of NSString objects. @abstract Returns the list of available Wi-Fi interface names (e.g. "en0"). @discussion Returns an empty NSArray object if no Wi-Fi interfaces exist. Returns nil if an error occurs. 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
deprecated
func CWWiFiClientInterfaceNames() *foundation.NSArray[*foundation.NSString]
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
}
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 ¶
@method @param channel The CWChannel with which to compare the receiver. @result YES if the objects are equal, otherwise NO. @abstract Determine CWChannel equality. @discussion CWChannel objects are considered equal if all their corresponding properties are equal.
type CWChannelBand ¶
type CWChannelBand int64
const ( KCWChannelBandUnknown CWChannelBand = 0 KCWChannelBand2GHz CWChannelBand = 1 KCWChannelBand5GHz CWChannelBand = 2 KCWChannelBand6GHz CWChannelBand = 3 )
func (CWChannelBand) String ¶
func (e CWChannelBand) String() string
type CWChannelWidth ¶
type CWChannelWidth int64
const ( KCWChannelWidthUnknown CWChannelWidth = 0 KCWChannelWidth20MHz CWChannelWidth = 1 KCWChannelWidth40MHz CWChannelWidth = 2 KCWChannelWidth80MHz CWChannelWidth = 3 KCWChannelWidth160MHz CWChannelWidth = 4 )
func (CWChannelWidth) String ¶
func (e CWChannelWidth) String() string
type CWCipherKeyFlags ¶
type CWCipherKeyFlags uint64
const ( KCWCipherKeyFlagsNone CWCipherKeyFlags = 0 KCWCipherKeyFlagsUnicast CWCipherKeyFlags = 2 KCWCipherKeyFlagsMulticast CWCipherKeyFlags = 4 KCWCipherKeyFlagsTx CWCipherKeyFlags = 8 KCWCipherKeyFlagsRx CWCipherKeyFlags = 16 )
func (CWCipherKeyFlags) String ¶
func (e CWCipherKeyFlags) String() string
type CWConfiguration ¶
type CWConfiguration struct {
foundation.NSObject
}
Apple documentation: https://developer.apple.com/documentation/corewlan/cwconfiguration
func CWConfigurationConfiguration ¶
func CWConfigurationConfiguration() *CWConfiguration
@method @abstract Convenience method for getting a CWConfiguration object.
func CWConfigurationConfigurationWithConfiguration ¶
func CWConfigurationConfigurationWithConfiguration(configuration *CWConfiguration) *CWConfiguration
@method @param configuration A CWConfiguration object. @result A CWConfiguration object. @abstract Convenience method for getting a CWConfiguration object initialized with the properties of an existing CWConfiguration object.
func CWConfigurationFromID ¶
func CWConfigurationFromID(id objc.ID) *CWConfiguration
func (*CWConfiguration) Init ¶
func (o *CWConfiguration) Init() *CWConfiguration
@method @abstract Initializes a CWConfiguration object.
func (*CWConfiguration) InitWithConfiguration ¶
func (o *CWConfiguration) InitWithConfiguration(configuration *CWConfiguration) *CWConfiguration
@method @param configuration A CWConfiguration object. @result A CWConfiguration object. @abstract Initializes a CWConfiguration object with the properties of an existing CWConfiguration object.
func (*CWConfiguration) IsEqualToConfiguration ¶
func (o *CWConfiguration) IsEqualToConfiguration(configuration *CWConfiguration) bool
@method @param configuration The CWConfiguration with which to compare the receiver. @result YES if the objects are equal, NO otherwise. @abstract Determine CWConfiguration equality. @discussion CWConfiguration objects are considered equal if all their corresponding properties are equal.
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
const ( CWEventTypeNone CWEventType = 0 CWEventTypePowerDidChange CWEventType = 1 CWEventTypeSSIDDidChange CWEventType = 2 CWEventTypeBSSIDDidChange CWEventType = 3 CWEventTypeCountryCodeDidChange CWEventType = 4 CWEventTypeLinkDidChange CWEventType = 5 CWEventTypeLinkQualityDidChange CWEventType = 6 CWEventTypeModeDidChange CWEventType = 7 CWEventTypeScanCacheUpdated CWEventType = 8 CWEventTypeBtCoexStats CWEventType = 9 CWEventTypeUnknown CWEventType = 9223372036854775807 )
func (CWEventType) String ¶
func (e CWEventType) String() string
type CWIBSSModeSecurity ¶
type CWIBSSModeSecurity int64
const ( KCWIBSSModeSecurityNone CWIBSSModeSecurity = 0 KCWIBSSModeSecurityWEP40 CWIBSSModeSecurity = 1 KCWIBSSModeSecurityWEP104 CWIBSSModeSecurity = 2 )
func (CWIBSSModeSecurity) String ¶
func (e CWIBSSModeSecurity) String() string
type CWInterface ¶
type CWInterface struct {
foundation.NSObject
}
Apple documentation: https://developer.apple.com/documentation/corewlan/cwinterface
func CWInterfaceFromID ¶
func CWInterfaceFromID(id objc.ID) *CWInterface
func CWInterfaceInterface ¶
func CWInterfaceInterface() *CWInterface
@method @abstract Convenience method for getting a CWInterface object for the default Wi-Fi interface. Deprecated: since macOS 10.10.
func CWInterfaceInterfaceWithName ¶
func CWInterfaceInterfaceWithName(name *foundation.NSString) *CWInterface
@method @param name The name of an available Wi-Fi interface. @abstract Convenience method for getting a CWInterface object bound to the Wi-Fi interface with a specific interface name. @discussion Use +[CWInterface interfaceNames] to get a list of available Wi-Fi interface names. Returns a CWInterface object for the default Wi-Fi interface if no interface name is specified. Deprecated: since macOS 10.10.
func (*CWInterface) ActivePHYMode ¶
func (o *CWInterface) ActivePHYMode() CWPHYMode
@method @abstract Returns the currently active physical layer (PHY) mode of the Wi-Fi interface. @discussion Returns kCWPHYModeNone if an error occurs.
func (*CWInterface) AssociateToEnterpriseNetworkIdentityUsernamePasswordError ¶
func (o *CWInterface) AssociateToEnterpriseNetworkIdentityUsernamePasswordError(network *CWNetwork, identity unsafe.Pointer, username *foundation.NSString, password *foundation.NSString) (bool, error)
@method @param network The network to which the Wi-Fi interface will associate. @param username The username to use for 802.1X authentication. @param password The password to use for 802.1X authentication. @param identity The identity to use for IEEE 802.1X authentication. Holds the corresponding client certificate. @param error An NSError object passed by reference, which upon return will contain the error if an error occurs. This parameter is optional. @result Returns YES upon success, or NO if an error occurred. @abstract Associates to an enterprise W-Fi network using the specified 802.1X credentials. @discussion This method will block for the duration of the association.
func (*CWInterface) AssociateToNetworkPasswordError ¶
func (o *CWInterface) AssociateToNetworkPasswordError(network *CWNetwork, password *foundation.NSString) (bool, error)
@method @param network The network to which the Wi-Fi interface will associate. @param password The network passphrase or key. Required for association to WEP, WPA Personal, and WPA2 Personal networks. @param error An NSError object passed by reference, which upon return will contain the error if an error occurs. This parameter is optional. @result Returns YES upon success, or NO if an error occurred. @abstract Associates to a W-Fi network using the specified passphrase. @discussion This method will block for the duration of the association.
func (*CWInterface) Bssid ¶
func (o *CWInterface) Bssid() *foundation.NSString
@method @abstract Returns the current basic service set identifier (BSSID) of the Wi-Fi interface, returned as an UTF-8 string. @discussion Returns a UTF-8 string using hexadecimal characters formatted as XX:XX:XX:XX:XX:XX. Returns nil if an error occurred, or if the interface is not participating in a Wi-Fi network. @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 (*CWInterface) CachedScanResults ¶
func (o *CWInterface) CachedScanResults() *foundation.NSSet[*CWNetwork]
@method @result An NSSet of CWNetwork objects. @abstract Returns the scan results currently in the scan cache for the Wi-Fi interface. @discussion Returns nil if an error occurs.
func (*CWInterface) CommitConfigurationAuthorizationError ¶
func (o *CWInterface) CommitConfigurationAuthorizationError(configuration *CWConfiguration, authorization *securityfoundation.SFAuthorization) (bool, error)
@method @param configuration The Wi-Fi configuration to commit to disk. @param authorization An SFAuthorization object to use for authorizing the commit. This parameter is optional. @param error An NSError object passed by reference, which upon return will contain the error if an error occurs. This parameter is optional. @result Returns YES upon success, or NO if an error occurred. @abstract Commits a CWConfiguration for the given Wi-Fi interface. @discussion This method requires the caller have root privileges or obtain administrator privileges using the SFAuthorization API.
func (*CWInterface) Configuration ¶
func (o *CWInterface) Configuration() *CWConfiguration
@method @abstract Returns the current configuration for the Wi-Fi interface. @discussion Returns nil if an error occurs.
func (*CWInterface) CountryCode ¶
func (o *CWInterface) CountryCode() *foundation.NSString
@method @abstract Returns the currently adopted country code (ISO/IEC 3166-1:1997) for the Wi-Fi interface. @discussion Returns nil if an error occurs, or if the Wi-Fi interface is off. @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 (*CWInterface) Disassociate ¶
func (o *CWInterface) Disassociate()
@method @abstract Disassociates from the current Wi-Fi network. @discussion
func (*CWInterface) HardwareAddress ¶
func (o *CWInterface) HardwareAddress() *foundation.NSString
@method @abstract Returns the hardware media access control (MAC) address for the Wi-Fi interface, returned as an UTF-8 string. @discussion The standard format for printing a MAC-48 address XX:XX:XX:XX:XX:XX is used to represent the MAC address as a string. Returns nil if an error occurs.
func (*CWInterface) InitWithInterfaceName ¶
func (o *CWInterface) InitWithInterfaceName(name *foundation.NSString) *CWInterface
@method @param name The name of an available Wi-Fi interface. @abstract Initializes a CWInterface object, binding to the Wi-Fi interface with a specific interface name. @discussion Use +[CWInterface interfaceNames] to get a list of available Wi-Fi interface names. Returns a CWInterface object for the default Wi-Fi interface if no interface name is specified. Deprecated: since macOS 10.10.
func (*CWInterface) InterfaceMode ¶
func (o *CWInterface) InterfaceMode() CWInterfaceMode
@method @abstract Returns the current operating mode for the Wi-Fi interface. @discussion Returns kCWInterfaceModeNone if an error occurs, or if the interface is not participating in a Wi-Fi network.
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
@method @abstract Returns the current noise measurement (dBm) for the Wi-Fi interface. @discussion Returns 0 if an error occurs, or if the interface is not participating in a Wi-Fi network.
func (*CWInterface) PowerOn ¶
func (o *CWInterface) PowerOn() bool
@method @result YES if the Wi-Fi interface is on, NO otherwise. @abstract Indicates the Wi-Fi interface power state. @discussion Returns NO if an error occurs.
func (*CWInterface) RssiValue ¶
func (o *CWInterface) RssiValue() int
@method @abstract Returns the current received signal strength indication (RSSI) measurement (dBm) for the Wi-Fi interface. @discussion Returns 0 if an error occurs, or if the interface is not participating in a Wi-Fi network.
func (*CWInterface) ScanForNetworksWithNameError ¶
func (o *CWInterface) ScanForNetworksWithNameError(networkName *foundation.NSString) (*foundation.NSSet[*CWNetwork], error)
@method @param networkName Probe request SSID, encoded as an UTF-8 string. Pass a networkName to perform a directed scan for hidden Wi-Fi networks. This parameter is optional. @param error An NSError object passed by reference, which upon return will contain the error if an error occurs. This parameter is optional. @result An NSSet of CWNetwork objects, or nil if an error occurs. @abstract Performs a scan for Wi-Fi networks and returns scan results to the caller. @discussion This method will block for the duration of the scan. @note Returned networks will not contain BSSID information unless Location Services is enabled and the user has authorized the calling app to use location services. @seealso CLLocationManager
func (*CWInterface) ScanForNetworksWithNameIncludeHiddenError ¶
func (o *CWInterface) ScanForNetworksWithNameIncludeHiddenError(networkName *foundation.NSString, includeHidden bool) (*foundation.NSSet[*CWNetwork], error)
@method @param networkName Probe request SSID, encoded as an UTF-8 string. Pass a networkName to perform a directed scan for hidden Wi-Fi networks. This parameter is optional. @param includeHidden Indicate whether or not hidden networks should not be filtered from the returned scan results. @param error An NSError object passed by reference, which upon return will contain the error if an error occurs. This parameter is optional. @result An NSSet of CWNetwork objects, or nil if an error occurs. @abstract Performs a scan for Wi-Fi networks and returns scan results to the caller. @discussion This method will block for the duration of the scan. @note Returned networks will not contain BSSID information unless Location Services is enabled and the user has authorized the calling app to use location services. @seealso CLLocationManager
func (*CWInterface) ScanForNetworksWithSSIDError ¶
func (o *CWInterface) ScanForNetworksWithSSIDError(ssid *foundation.NSData) (*foundation.NSSet[*CWNetwork], error)
@method @param ssid Probe request SSID. Pass an SSID to perform a directed scan for hidden Wi-Fi networks. This parameter is optional. @param error An NSError object passed by reference, which upon return will contain the error if an error occurs. This parameter is optional. @result An NSSet of CWNetwork objects, or nil if an error occurs. @abstract Performs a scan for Wi-Fi networks and returns scan results to the caller. @discussion This method will block for the duration of the scan. @note Returned networks will not contain BSSID information unless Location Services is enabled and the user has authorized the calling app to use location services. @seealso CLLocationManager
func (*CWInterface) ScanForNetworksWithSSIDIncludeHiddenError ¶
func (o *CWInterface) ScanForNetworksWithSSIDIncludeHiddenError(ssid *foundation.NSData, includeHidden bool) (*foundation.NSSet[*CWNetwork], error)
@method @param ssid Probe request SSID. Pass an SSID to perform a directed scan for hidden Wi-Fi networks. This parameter is optional. @param includeHidden Indicate whether or not hidden networks should not be filtered from the returned scan results. @param error An NSError object passed by reference, which upon return will contain the error if an error occurs. This parameter is optional. @result An NSSet of CWNetwork objects, or nil if an error occurs. @abstract Performs a scan for Wi-Fi networks and returns scan results to the caller. @discussion This method will block for the duration of the scan. @note Returned networks will not contain BSSID information unless Location Services is enabled and the user has authorized the calling app to use location services. @seealso CLLocationManager
func (*CWInterface) Security ¶
func (o *CWInterface) Security() CWSecurity
@method @abstract Returns the current security type of the Wi-Fi interface. @discussion Returns kCWSecurityUnknown if an error occurs, or if the interface is not participating in a Wi-Fi network.
func (*CWInterface) ServiceActive ¶
func (o *CWInterface) ServiceActive() bool
@method @result YES if the corresponding network service is active, NO otherwise. @abstract Indicates the network service state of the Wi-Fi interface. @discussion Returns NO if an error occurs.
func (*CWInterface) SetPairwiseMasterKeyError ¶
func (o *CWInterface) SetPairwiseMasterKeyError(key *foundation.NSData) (bool, error)
@method @param key An NSData object containing the pairwise master key (PMK). Passing nil clear the PMK for the Wi-Fi interface. @param error An NSError object passed by reference, which upon return will contain the error if an error occurs. This parameter is optional. @result Returns YES upon success, or NO if an error occurred. @abstract Sets the Wi-Fi interface pairwise master key (PMK). @discussion The specified key must be exactly 32 octets.
func (*CWInterface) SetPowerError ¶
func (o *CWInterface) SetPowerError(power bool) (bool, error)
@method @param power A BOOL value indicating Wi-Fi power state. Specify YES to turn on the Wi-Fi interface. @param error An NSError object passed by reference, which upon return will contain the error if an error occurs. This parameter is optional. @result Returns YES upon success, or NO if an error occurred. @abstract Sets the Wi-Fi interface power state.
func (*CWInterface) SetWEPKeyFlagsIndexError ¶
func (o *CWInterface) SetWEPKeyFlagsIndexError(key *foundation.NSData, flags CWCipherKeyFlags, index int) (bool, error)
@method @param key An NSData object containing the WEP key. Passing nil clears the WEP key for the Wi-Fi interface. @param flags A bitmask indicating which CWCipherKeyFlags to use for the specified WEP key. @param index An NSInteger indicating which default key index (1-4) to use for the specified key. @param error An NSError object passed by reference, which upon return will contain the error if an error occurs. This parameter is optional. @result Returns YES upon success, or NO if an error occurred. @abstract Sets the Wi-Fi interface WEP key.
func (*CWInterface) SetWLANChannelError ¶
func (o *CWInterface) SetWLANChannelError(channel *CWChannel) (bool, error)
@method @param channel A CWChannel object. @param error An NSError object passed by reference, which upon return will contain the error if an error occurs. This parameter is optional. @result Returns YES upon success, or NO if an error occurred. @abstract Sets the Wi-Fi interface channel. @discussion Setting the channel while the interface is associated to a Wi-Fi network is not permitted.
func (*CWInterface) Ssid ¶
func (o *CWInterface) Ssid() *foundation.NSString
@method @abstract Returns the current service set identifier (SSID) of the Wi-Fi interface, encoded as a string. @discussion Returns nil if an error occurs, or if the interface is not participating in a Wi-Fi network, or 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 (*CWInterface) SsidData ¶
func (o *CWInterface) SsidData() *foundation.NSData
@method @abstract Returns the current service set identifier (SSID) for the interface, encapsulated in an NSData object. @discussion Returns nil if an error occurs, or if the interface is not participating in a Wi-Fi network. @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 (*CWInterface) StartIBSSModeWithSSIDSecurityChannelPasswordError ¶
func (o *CWInterface) StartIBSSModeWithSSIDSecurityChannelPasswordError(ssidData *foundation.NSData, security CWIBSSModeSecurity, channel uint, password *foundation.NSString) (bool, error)
@method @param ssidData The SSID to use for the IBSS network. Pass nil to use the machine name as the IBSS network name. @param security The CWIBSSModeSecurity type. @param channel The channel on which the IBSS network will be created. @param password The password to be used. This paramter is required for kCWIBSSModeSecurityWEP40 or kCWIBSSModeSecurityWEP104 security types. @param error An NSError object passed by reference, which upon return will contain the error if an error occurs. This parameter is optional. @result Returns YES upon success, or NO if an error occurred. @abstract Creates a computer-to-computer (IBSS) network. Deprecated: since macOS 11.0.
func (*CWInterface) SupportedWLANChannels ¶
func (o *CWInterface) SupportedWLANChannels() *foundation.NSSet[*CWChannel]
@method @result An NSSet of CWChannel objects. @abstract Returns the set of channels supported by the Wi-Fi interface for the currently adopted country code. @discussion Returns nil if an error occurs.
func (*CWInterface) TransmitPower ¶
func (o *CWInterface) TransmitPower() int
@method @abstract Returns the current transmit power (mW) for the Wi-Fi interface. @discussion Returns 0 if an error occurs.
func (*CWInterface) TransmitRate ¶
func (o *CWInterface) TransmitRate() float64
@method @abstract Returns the current transmit rate (Mbps) for the Wi-Fi interface. @discussion Returns 0 if an error occurs, or if the interface is not participating in a Wi-Fi network.
func (*CWInterface) WlanChannel ¶
func (o *CWInterface) WlanChannel() *CWChannel
@method @abstract Returns the current channel of the Wi-Fi interface. @discussion Returns nil if an error occurs.
type CWInterfaceMode ¶
type CWInterfaceMode int64
const ( KCWInterfaceModeNone CWInterfaceMode = 0 KCWInterfaceModeStation CWInterfaceMode = 1 KCWInterfaceModeIBSS CWInterfaceMode = 2 KCWInterfaceModeHostAP CWInterfaceMode = 3 )
func (CWInterfaceMode) String ¶
func (e CWInterfaceMode) String() string
type CWKeychainDomain ¶
type CWKeychainDomain int64
const ( KCWKeychainDomainNone CWKeychainDomain = 0 KCWKeychainDomainUser CWKeychainDomain = 1 KCWKeychainDomainSystem CWKeychainDomain = 2 )
func (CWKeychainDomain) String ¶
func (e CWKeychainDomain) String() string
type CWMutableConfiguration ¶
type CWMutableConfiguration struct {
CWConfiguration
}
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
}
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
}
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 @param network A CWNetwork object. @result YES if the objects are equal, NO otherwise. @abstract Determine CWNetwork equality. @discussion CWNetwork objects are considered equal if their corresponding <i>ssidData</i> and <i>bssid</i> properties are equal.
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 @param phyMode A CWPHYMode type value. @result YES if the Wi-Fi device supports the specified PHY mode, NO otherwise. @abstract Determine which PHY modes a Wi-Fi device supports.
func (*CWNetwork) SupportsSecurity ¶
func (o *CWNetwork) SupportsSecurity(security CWSecurity) bool
@method @param security A CWSecurity type value. @result <i>YES</i> if the Wi-Fi device supports the specified security type, <i>NO</i> otherwise. @abstract Determine which security types a Wi-Fi device supports.
func (*CWNetwork) WlanChannel ¶
@property @abstract The operating channel of the Wi-Fi device.
type CWNetworkProfile ¶
type CWNetworkProfile struct {
foundation.NSObject
}
Apple documentation: https://developer.apple.com/documentation/corewlan/cwnetworkprofile
func CWNetworkProfileFromID ¶
func CWNetworkProfileFromID(id objc.ID) *CWNetworkProfile
func CWNetworkProfileNetworkProfile ¶
func CWNetworkProfileNetworkProfile() *CWNetworkProfile
@method @abstract Convenience method for getting a CWNetworkProfile object.
func CWNetworkProfileNetworkProfileWithNetworkProfile ¶
func CWNetworkProfileNetworkProfileWithNetworkProfile(networkProfile *CWNetworkProfile) *CWNetworkProfile
@method @param networkProfile A CWNetworkProfile object. @result A CWNetworkProfile object. @abstract Convenience method for getting a CWNetworkProfile object initialized with the properties of an existing CWNetworkProfile object.
func (*CWNetworkProfile) Init ¶
func (o *CWNetworkProfile) Init() *CWNetworkProfile
@method @abstract Initializes a CWNetworkProfile object.
func (*CWNetworkProfile) InitWithNetworkProfile ¶
func (o *CWNetworkProfile) InitWithNetworkProfile(networkProfile *CWNetworkProfile) *CWNetworkProfile
@method @param networkProfile A CWNetworkProfile object. @result A CWNetworkProfile object. @abstract Initializes a CWNetworkProfile object with the properties of an existing CWNetworkProfile object.
func (*CWNetworkProfile) IsEqualToNetworkProfile ¶
func (o *CWNetworkProfile) IsEqualToNetworkProfile(networkProfile *CWNetworkProfile) bool
@method @param network A CWNetworkProfile object. @result YES if the objects are equal, NO otherwise. @abstract Determine CWNetworkProfile equality. @discussion CWNetworkProfile objects are considered equal if their corresponding <i>ssidData</i> and <i>security</i> properties are equal.
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 CWSecurity ¶
type CWSecurity uint64
const ( KCWSecurityNone CWSecurity = 0 KCWSecurityWEP CWSecurity = 1 KCWSecurityWPAPersonal CWSecurity = 2 KCWSecurityWPAPersonalMixed CWSecurity = 3 KCWSecurityWPA2Personal CWSecurity = 4 KCWSecurityPersonal CWSecurity = 5 KCWSecurityDynamicWEP CWSecurity = 6 KCWSecurityWPAEnterprise CWSecurity = 7 KCWSecurityWPAEnterpriseMixed CWSecurity = 8 KCWSecurityWPA2Enterprise CWSecurity = 9 KCWSecurityEnterprise CWSecurity = 10 KCWSecurityWPA3Personal CWSecurity = 11 KCWSecurityWPA3Enterprise CWSecurity = 12 KCWSecurityWPA3Transition CWSecurity = 13 KCWSecurityOWE CWSecurity = 14 KCWSecurityOWETransition CWSecurity = 15 KCWSecurityUnknown CWSecurity = 9223372036854775807 )
func (CWSecurity) String ¶
func (e CWSecurity) String() string
type CWWiFiClient ¶
type CWWiFiClient struct {
foundation.NSObject
}
Apple documentation: https://developer.apple.com/documentation/corewlan/cwwificlient
func CWWiFiClientFromID ¶
func CWWiFiClientFromID(id objc.ID) *CWWiFiClient
func CWWiFiClientSharedWiFiClient ¶
func CWWiFiClientSharedWiFiClient() *CWWiFiClient
@method @abstract Returns the shared CWWiFiClient instance. There is a single shared instance per process.
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
@method @abstract Initializes a CWWiFiClient object.
func (*CWWiFiClient) Interface ¶
func (o *CWWiFiClient) Interface() *CWInterface
@method @abstract Returns the CWInterface object for 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
@method @param interfaceName The name of an available Wi-Fi interface. @abstract Get the CWInterface object bound to the Wi-Fi interface with a specific interface name. @discussion Use +[CWWiFiClient interfaceNames] to get a list of available Wi-Fi interface names. Returns a CWInterface object for the default Wi-Fi interface if no interface name is specified.
func (*CWWiFiClient) Interfaces ¶
func (o *CWWiFiClient) Interfaces() *foundation.NSArray[*CWInterface]
@method @result An NSArray of CWInterface objects. @abstract Returns all available Wi-Fi interfaces. @discussion If no Wi-Fi interfaces are available, this method will return an empty array. Returns nil if an error occurs.
func (*CWWiFiClient) SetDelegate ¶
func (o *CWWiFiClient) SetDelegate(delegate objc.ID)
func (*CWWiFiClient) StartMonitoringEventWithTypeError ¶
func (o *CWWiFiClient) StartMonitoringEventWithTypeError(type_ CWEventType) (bool, error)
@method @param type A CWEventType value. @param error An NSError object passed by reference, which upon return will contain the error if an error occurs. This parameter is optional. @result Returns YES upon success, or NO if an error occurred. @abstract Register for specific Wi-Fi event notifications.
func (*CWWiFiClient) StopMonitoringAllEventsAndReturnError ¶
func (o *CWWiFiClient) StopMonitoringAllEventsAndReturnError() (bool, error)
@method @param error An NSError object passed by reference, which upon return will contain the error if an error occurs. This parameter is optional. @result Returns YES upon success, or NO if an error occurred. @abstract Unregister for all Wi-Fi event notifications.
func (*CWWiFiClient) StopMonitoringEventWithTypeError ¶
func (o *CWWiFiClient) StopMonitoringEventWithTypeError(type_ CWEventType) (bool, error)
@method @param type A CWEventType value. @param error An NSError object passed by reference, which upon return will contain the error if an error occurs. This parameter is optional. @result Returns YES upon success, or NO if an error occurred. @abstract 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