Documentation
¶
Overview ¶
Package devicediscoveryextension provides purego-based Go bindings for the macOS DeviceDiscoveryExtension framework.
Apple documentation: https://developer.apple.com/documentation/devicediscoveryextension
Index ¶
- func DDDeviceCategoryToString(inValue DDDeviceCategory) *foundation.NSString
- func DDDeviceMediaPlaybackStateToString(inValue DDDeviceMediaPlaybackState) *foundation.NSString
- func DDDeviceProtocolStringDIAL() uintptr
- func DDDeviceProtocolStringInvalid() *foundation.NSString
- func DDDeviceProtocolToString(inValue DDDeviceProtocol) *foundation.NSString
- func DDDeviceStateToString(inValue DDDeviceState) *foundation.NSString
- func DDErrorDomain() uintptr
- func DDEventTypeToString(inValue DDEventType) *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 Clockid_t
- type DDDevice
- func (o *DDDevice) BluetoothIdentifier() *foundation.NSUUID
- func (o *DDDevice) Category() DDDeviceCategory
- func (o *DDDevice) DeviceSupports() DDDeviceSupports
- func (o *DDDevice) DisplayImageName() *foundation.NSString
- func (o *DDDevice) DisplayName() *foundation.NSString
- func (o *DDDevice) Identifier() *foundation.NSString
- func (o *DDDevice) InitWithDisplayNameCategoryProtocolTypeIdentifier(displayName *foundation.NSString, category DDDeviceCategory, ...) *DDDevice
- func (o *DDDevice) MediaContentSubtitle() *foundation.NSString
- func (o *DDDevice) MediaContentTitle() *foundation.NSString
- func (o *DDDevice) MediaPlaybackState() DDDeviceMediaPlaybackState
- func (o *DDDevice) NetworkEndpoint() *foundation.NSObject
- func (o *DDDevice) Protocol() DDDeviceProtocol
- func (o *DDDevice) ProtocolType() *uniformtypeidentifiers.UTType
- func (o *DDDevice) SSID() *foundation.NSString
- func (o *DDDevice) SetBluetoothIdentifier(bluetoothIdentifier *foundation.NSUUID)
- func (o *DDDevice) SetCategory(category DDDeviceCategory)
- func (o *DDDevice) SetDeviceSupports(deviceSupports DDDeviceSupports)
- func (o *DDDevice) SetDisplayImageName(displayImageName *foundation.NSString)
- func (o *DDDevice) SetDisplayName(displayName *foundation.NSString)
- func (o *DDDevice) SetIdentifier(identifier *foundation.NSString)
- func (o *DDDevice) SetMediaContentSubtitle(mediaContentSubtitle *foundation.NSString)
- func (o *DDDevice) SetMediaContentTitle(mediaContentTitle *foundation.NSString)
- func (o *DDDevice) SetMediaPlaybackState(mediaPlaybackState DDDeviceMediaPlaybackState)
- func (o *DDDevice) SetNetworkEndpoint(networkEndpoint *foundation.NSObject)
- func (o *DDDevice) SetProtocol(protocol DDDeviceProtocol)
- func (o *DDDevice) SetProtocolType(protocolType *uniformtypeidentifiers.UTType)
- func (o *DDDevice) SetSSID(sSID *foundation.NSString)
- func (o *DDDevice) SetState(state DDDeviceState)
- func (o *DDDevice) SetSupportsGrouping(supportsGrouping bool)
- func (o *DDDevice) SetTxtRecordData(txtRecordData *foundation.NSData)
- func (o *DDDevice) SetUrl(url *foundation.NSURL)
- func (o *DDDevice) SetWifiAwareModelName(wifiAwareModelName *foundation.NSString)
- func (o *DDDevice) SetWifiAwareServiceName(wifiAwareServiceName *foundation.NSString)
- func (o *DDDevice) SetWifiAwareServiceRole(wifiAwareServiceRole DDDeviceWiFiAwareServiceRole)
- func (o *DDDevice) SetWifiAwareVendorName(wifiAwareVendorName *foundation.NSString)
- func (o *DDDevice) State() DDDeviceState
- func (o *DDDevice) SupportsGrouping() bool
- func (o *DDDevice) TxtRecordData() *foundation.NSData
- func (o *DDDevice) Url() *foundation.NSURL
- func (o *DDDevice) WifiAwareModelName() *foundation.NSString
- func (o *DDDevice) WifiAwareServiceName() *foundation.NSString
- func (o *DDDevice) WifiAwareServiceRole() DDDeviceWiFiAwareServiceRole
- func (o *DDDevice) WifiAwareVendorName() *foundation.NSString
- type DDDeviceCategory
- type DDDeviceEvent
- type DDDeviceMediaPlaybackState
- type DDDeviceProtocol
- type DDDeviceState
- type DDDeviceSupports
- type DDDeviceWiFiAwareServiceRole
- type DDDiscoverySession
- type DDErrorCode
- type DDEventType
- type DNSServiceAAAAPolicy
- 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 Nw_browser_state_t
- type Nw_connection_group_state_t
- type Nw_connection_state_t
- type Nw_data_transfer_report_state_t
- type Nw_endpoint_type_t
- type Nw_error_domain_t
- type Nw_ethernet_channel_state_t
- type Nw_framer_start_result_t
- type Nw_interface_radio_type_t
- type Nw_interface_type_t
- type Nw_ip_ecn_flag_t
- type Nw_ip_local_address_preference_t
- type Nw_ip_version_t
- type Nw_link_quality_t
- type Nw_listener_state_t
- type Nw_multipath_service_t
- type Nw_multipath_version_t
- type Nw_parameters_expired_dns_behavior_t
- type Nw_path_status_t
- type Nw_path_unsatisfied_reason_t
- type Nw_quic_stream_type_t
- type Nw_report_resolution_protocol_t
- type Nw_report_resolution_source_t
- type Nw_service_class_t
- type Nw_txt_record_find_key_t
- type Nw_ws_close_code_t
- type Nw_ws_opcode_t
- type Nw_ws_response_status_t
- type Nw_ws_version_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 DDDeviceCategoryToString ¶
func DDDeviceCategoryToString(inValue DDDeviceCategory) *foundation.NSString
func DDDeviceMediaPlaybackStateToString ¶
func DDDeviceMediaPlaybackStateToString(inValue DDDeviceMediaPlaybackState) *foundation.NSString
func DDDeviceProtocolStringDIAL ¶
func DDDeviceProtocolStringDIAL() uintptr
func DDDeviceProtocolStringInvalid ¶
func DDDeviceProtocolStringInvalid() *foundation.NSString
func DDDeviceProtocolToString ¶
func DDDeviceProtocolToString(inValue DDDeviceProtocol) *foundation.NSString
func DDDeviceStateToString ¶
func DDDeviceStateToString(inValue DDDeviceState) *foundation.NSString
func DDErrorDomain ¶
func DDErrorDomain() uintptr
func DDEventTypeToString ¶
func DDEventTypeToString(inValue DDEventType) *foundation.NSString
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 DDDevice ¶
type DDDevice struct {
foundation.NSObject
}
Apple documentation: https://developer.apple.com/documentation/devicediscoveryextension/dddevice
func DDDeviceFromID ¶
func (*DDDevice) BluetoothIdentifier ¶
func (o *DDDevice) BluetoothIdentifier() *foundation.NSUUID
Identifier to communicate with the device via Bluetooth.
func (*DDDevice) DeviceSupports ¶
func (o *DDDevice) DeviceSupports() DDDeviceSupports
Device supported capabilities.
func (*DDDevice) DisplayImageName ¶
func (o *DDDevice) DisplayImageName() *foundation.NSString
Device's custom asset for product image name in the main App bundle.
func (*DDDevice) DisplayName ¶
func (o *DDDevice) DisplayName() *foundation.NSString
Name of the device. Should be suitable for displaying to a user.
func (*DDDevice) Identifier ¶
func (o *DDDevice) Identifier() *foundation.NSString
Identifier of the device.
func (*DDDevice) InitWithDisplayNameCategoryProtocolTypeIdentifier ¶
func (o *DDDevice) InitWithDisplayNameCategoryProtocolTypeIdentifier(displayName *foundation.NSString, category DDDeviceCategory, protocolType *uniformtypeidentifiers.UTType, identifier *foundation.NSString) *DDDevice
Initializes a DD device with display name, category, protocol type, and identifier.
func (*DDDevice) MediaContentSubtitle ¶
func (o *DDDevice) MediaContentSubtitle() *foundation.NSString
Subtitle of the media content being played. It can be used to display extra information about the content, such as the name of the artist.
func (*DDDevice) MediaContentTitle ¶
func (o *DDDevice) MediaContentTitle() *foundation.NSString
Title of the media content being played.
func (*DDDevice) MediaPlaybackState ¶
func (o *DDDevice) MediaPlaybackState() DDDeviceMediaPlaybackState
Current state of media playback on this device.
func (*DDDevice) NetworkEndpoint ¶
func (o *DDDevice) NetworkEndpoint() *foundation.NSObject
Endpoint to communicate with the device via networking.
func (*DDDevice) ProtocolType ¶
func (o *DDDevice) ProtocolType() *uniformtypeidentifiers.UTType
Uniform Type for the protocol.
func (*DDDevice) SetBluetoothIdentifier ¶
func (o *DDDevice) SetBluetoothIdentifier(bluetoothIdentifier *foundation.NSUUID)
func (*DDDevice) SetCategory ¶
func (o *DDDevice) SetCategory(category DDDeviceCategory)
func (*DDDevice) SetDeviceSupports ¶
func (o *DDDevice) SetDeviceSupports(deviceSupports DDDeviceSupports)
Device supported capabilities.
func (*DDDevice) SetDisplayImageName ¶
func (o *DDDevice) SetDisplayImageName(displayImageName *foundation.NSString)
Device's custom asset for product image name in the main App bundle.
func (*DDDevice) SetDisplayName ¶
func (o *DDDevice) SetDisplayName(displayName *foundation.NSString)
func (*DDDevice) SetIdentifier ¶
func (o *DDDevice) SetIdentifier(identifier *foundation.NSString)
func (*DDDevice) SetMediaContentSubtitle ¶
func (o *DDDevice) SetMediaContentSubtitle(mediaContentSubtitle *foundation.NSString)
func (*DDDevice) SetMediaContentTitle ¶
func (o *DDDevice) SetMediaContentTitle(mediaContentTitle *foundation.NSString)
func (*DDDevice) SetMediaPlaybackState ¶
func (o *DDDevice) SetMediaPlaybackState(mediaPlaybackState DDDeviceMediaPlaybackState)
func (*DDDevice) SetNetworkEndpoint ¶
func (o *DDDevice) SetNetworkEndpoint(networkEndpoint *foundation.NSObject)
func (*DDDevice) SetProtocol ¶
func (o *DDDevice) SetProtocol(protocol DDDeviceProtocol)
func (*DDDevice) SetProtocolType ¶
func (o *DDDevice) SetProtocolType(protocolType *uniformtypeidentifiers.UTType)
func (*DDDevice) SetSSID ¶
func (o *DDDevice) SetSSID(sSID *foundation.NSString)
Device's WiFi Hotspot SSID.
func (*DDDevice) SetState ¶
func (o *DDDevice) SetState(state DDDeviceState)
func (*DDDevice) SetSupportsGrouping ¶
Whether the device supports grouping with other devices with the same protocol.
func (*DDDevice) SetTxtRecordData ¶
func (o *DDDevice) SetTxtRecordData(txtRecordData *foundation.NSData)
func (*DDDevice) SetUrl ¶
func (o *DDDevice) SetUrl(url *foundation.NSURL)
func (*DDDevice) SetWifiAwareModelName ¶
func (o *DDDevice) SetWifiAwareModelName(wifiAwareModelName *foundation.NSString)
Device's Wi-Fi Aware model name.
func (*DDDevice) SetWifiAwareServiceName ¶
func (o *DDDevice) SetWifiAwareServiceName(wifiAwareServiceName *foundation.NSString)
Device's Wi-Fi Aware's service name.
func (*DDDevice) SetWifiAwareServiceRole ¶
func (o *DDDevice) SetWifiAwareServiceRole(wifiAwareServiceRole DDDeviceWiFiAwareServiceRole)
Device's Wi-Fi Aware's service. Default is `DDDeviceWiFiAwareServiceRoleSubscriber`
func (*DDDevice) SetWifiAwareVendorName ¶
func (o *DDDevice) SetWifiAwareVendorName(wifiAwareVendorName *foundation.NSString)
Device's Wi-Fi Aware vendor name.
func (*DDDevice) SupportsGrouping ¶
Whether the device supports grouping with other devices with the same protocol.
func (*DDDevice) TxtRecordData ¶
func (o *DDDevice) TxtRecordData() *foundation.NSData
TXT record of the device.
func (*DDDevice) Url ¶
func (o *DDDevice) Url() *foundation.NSURL
URL used for SSDP connection. The URL must have a valid hostname, no query parameters, and a maximum size of 100 bytes.
func (*DDDevice) WifiAwareModelName ¶
func (o *DDDevice) WifiAwareModelName() *foundation.NSString
Device's Wi-Fi Aware model name.
func (*DDDevice) WifiAwareServiceName ¶
func (o *DDDevice) WifiAwareServiceName() *foundation.NSString
Device's Wi-Fi Aware's service name.
func (*DDDevice) WifiAwareServiceRole ¶
func (o *DDDevice) WifiAwareServiceRole() DDDeviceWiFiAwareServiceRole
Device's Wi-Fi Aware's service. Default is `DDDeviceWiFiAwareServiceRoleSubscriber`
func (*DDDevice) WifiAwareVendorName ¶
func (o *DDDevice) WifiAwareVendorName() *foundation.NSString
Device's Wi-Fi Aware vendor name.
type DDDeviceCategory ¶
type DDDeviceCategory int64
const ( DDDeviceCategoryHiFiSpeaker DDDeviceCategory = 0 DDDeviceCategoryHiFiSpeakerMultiple DDDeviceCategory = 1 DDDeviceCategoryTVWithMediaBox DDDeviceCategory = 2 DDDeviceCategoryTV DDDeviceCategory = 3 DDDeviceCategoryLaptopComputer DDDeviceCategory = 4 DDDeviceCategoryDesktopComputer DDDeviceCategory = 5 DDDeviceCategoryAccessorySetup DDDeviceCategory = 6 )
func (DDDeviceCategory) String ¶
func (e DDDeviceCategory) String() string
type DDDeviceEvent ¶
type DDDeviceEvent struct {
foundation.NSObject
}
Apple documentation: https://developer.apple.com/documentation/devicediscoveryextension/dddeviceevent
func DDDeviceEventFromID ¶
func DDDeviceEventFromID(id objc.ID) *DDDeviceEvent
func (*DDDeviceEvent) InitWithEventTypeDevice ¶
func (o *DDDeviceEvent) InitWithEventTypeDevice(type_ DDEventType, device *DDDevice) *DDDeviceEvent
Initializes a device event.
type DDDeviceMediaPlaybackState ¶
type DDDeviceMediaPlaybackState int64
const ( DDDeviceMediaPlaybackStateNoContent DDDeviceMediaPlaybackState = 0 DDDeviceMediaPlaybackStatePaused DDDeviceMediaPlaybackState = 1 DDDeviceMediaPlaybackStatePlaying DDDeviceMediaPlaybackState = 2 )
func (DDDeviceMediaPlaybackState) String ¶
func (e DDDeviceMediaPlaybackState) String() string
type DDDeviceProtocol ¶
type DDDeviceProtocol int64
const ( DDDeviceProtocolInvalid DDDeviceProtocol = 0 DDDeviceProtocolDIAL DDDeviceProtocol = 1 )
func (DDDeviceProtocol) String ¶
func (e DDDeviceProtocol) String() string
type DDDeviceState ¶
type DDDeviceState int64
const ( DDDeviceStateInvalid DDDeviceState = 0 DDDeviceStateActivating DDDeviceState = 10 DDDeviceStateActivated DDDeviceState = 20 DDDeviceStateAuthorized DDDeviceState = 25 DDDeviceStateInvalidating DDDeviceState = 30 )
func (DDDeviceState) String ¶
func (e DDDeviceState) String() string
type DDDeviceSupports ¶
type DDDeviceSupports uint64
const ( DDDeviceSupportsBluetoothPairingLE DDDeviceSupports = 2 DDDeviceSupportsBluetoothTransportBridging DDDeviceSupports = 4 DDDeviceSupportsBluetoothHID DDDeviceSupports = 8 )
func (DDDeviceSupports) String ¶
func (e DDDeviceSupports) String() string
type DDDeviceWiFiAwareServiceRole ¶
type DDDeviceWiFiAwareServiceRole int64
const ( DDDeviceWiFiAwareServiceRoleSubscriber DDDeviceWiFiAwareServiceRole = 10 DDDeviceWiFiAwareServiceRolePublisher DDDeviceWiFiAwareServiceRole = 20 )
func (DDDeviceWiFiAwareServiceRole) String ¶
func (e DDDeviceWiFiAwareServiceRole) String() string
type DDDiscoverySession ¶
type DDDiscoverySession struct {
foundation.NSObject
}
Apple documentation: https://developer.apple.com/documentation/devicediscoveryextension/dddiscoverysession
func DDDiscoverySessionFromID ¶
func DDDiscoverySessionFromID(id objc.ID) *DDDiscoverySession
func (*DDDiscoverySession) ReportEvent ¶
func (o *DDDiscoverySession) ReportEvent(inEvent *DDDeviceEvent)
Reports an event to the host.
type DDErrorCode ¶
type DDErrorCode int64
const ( DDErrorCodeSuccess DDErrorCode = 0 DDErrorCodeUnknown DDErrorCode = 350000 DDErrorCodeBadParameter DDErrorCode = 350001 DDErrorCodeUnsupported DDErrorCode = 350002 DDErrorCodeTimeout DDErrorCode = 350003 DDErrorCodeInternal DDErrorCode = 350004 DDErrorCodeMissingEntitlement DDErrorCode = 350005 DDErrorCodePermission DDErrorCode = 350006 DDErrorCodeNext DDErrorCode = 350007 )
func (DDErrorCode) String ¶
func (e DDErrorCode) String() string
type DDEventType ¶
type DDEventType int64
const ( DDEventTypeUnknown DDEventType = 0 DDEventTypeDeviceFound DDEventType = 40 DDEventTypeDeviceLost DDEventType = 41 DDEventTypeDeviceChanged DDEventType = 42 )
func (DDEventType) String ¶
func (e DDEventType) String() string
type DNSServiceAAAAPolicy ¶
type DNSServiceAAAAPolicy int64
const ( KDNSServiceAAAAPolicyNone DNSServiceAAAAPolicy = 0 KDNSServiceAAAAPolicyFallback DNSServiceAAAAPolicy = 1 )
func (DNSServiceAAAAPolicy) String ¶
func (e DNSServiceAAAAPolicy) String() string
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 Nw_browser_state_t ¶
type Nw_browser_state_t int64
@typedef nw_browser_state_t @abstract Browser states sent by nw_browser_set_state_changed_handler.
const ( // @const nw_browser_state_invalid The state of the browser is not valid. This state will never be delivered in the browser's state update handler and can be treated as an unexpected value. Nw_browser_state_invalid Nw_browser_state_t = 0 // @const nw_browser_state_ready The browser is ready and able to receive endpoint updates. All callbacks from the browse_results_changed_handler occur when the browser is in this state. Nw_browser_state_ready Nw_browser_state_t = 1 // @const nw_browser_state_failed The browser has irrecoverably failed. You should not try to call nw_browser_start() on the browser to restart it. Instead, cancel the browser and create a new browser object. Nw_browser_state_failed Nw_browser_state_t = 2 // @const nw_browser_state_cancelled The browser has been cancelled by the caller. You should not try to call nw_browser_start() on the browser to restart it. Instead, create a new browser object. Nw_browser_state_cancelled Nw_browser_state_t = 3 // @const nw_browser_state_waiting The browser is waiting for connectivity. Results will not be delivered until the browser moves into the ready state. A browser can move from the ready state into the waiting state. The associated error indicates why the browser is unable to browse. Nw_browser_state_waiting Nw_browser_state_t = 4 )
func (Nw_browser_state_t) String ¶
func (e Nw_browser_state_t) String() string
type Nw_connection_group_state_t ¶
type Nw_connection_group_state_t int64
@typedef nw_connection_group_state_t @abstract Connection Group states sent by nw_connection_group_set_state_changed_handler. States progress forward and do not move backwards.
const ( // @const nw_connection_group_state_invalid The state of the connection group is not valid. This state will never be delivered in the connection group's state update handler and can be treated as an unexpected value. Nw_connection_group_state_invalid Nw_connection_group_state_t = 0 // @const nw_connection_group_state_waiting The connection group is waiting for a usable network before being able to receive and process incoming messages. Nw_connection_group_state_waiting Nw_connection_group_state_t = 1 // @const nw_connection_group_state_ready The connection group is ready and able to receive and process incoming messages. Nw_connection_group_state_ready Nw_connection_group_state_t = 2 // @const nw_connection_group_state_failed The connection group has irrecoverably failed. You should cancel the connection group and create a new connection group object if you wish to continue processing incoming messages. Nw_connection_group_state_failed Nw_connection_group_state_t = 3 // @const nw_connection_group_state_cancelled The connection group has been cancelled by the user. You should create a new connection group object if you wish to continue processing incoming messages. Nw_connection_group_state_cancelled Nw_connection_group_state_t = 4 )
func (Nw_connection_group_state_t) String ¶
func (e Nw_connection_group_state_t) String() string
type Nw_connection_state_t ¶
type Nw_connection_state_t int64
@typedef nw_connection_state_t @abstract Connection states sent by nw_connection_set_state_changed_handler. States generally progress forward and do not move backwards, with the exception of preparing and waiting, which may alternate before the connection becomes ready or failed.
const ( // @const nw_connection_state_invalid The state of the connection is not valid. This state will never be delivered in the connection's state update handler, and can be treated as an unexpected value. Nw_connection_state_invalid Nw_connection_state_t = 0 // @const nw_connection_state_waiting The connection is waiting for a usable network before re-attempting Nw_connection_state_waiting Nw_connection_state_t = 1 // @const nw_connection_state_preparing The connection is in the process of establishing Nw_connection_state_preparing Nw_connection_state_t = 2 // @const nw_connection_state_ready The connection is established and ready to send and receive data upon Nw_connection_state_ready Nw_connection_state_t = 3 // @const nw_connection_state_failed The connection has irrecoverably closed or failed Nw_connection_state_failed Nw_connection_state_t = 4 // @const nw_connection_state_cancelled The connection has been cancelled by the caller Nw_connection_state_cancelled Nw_connection_state_t = 5 )
func (Nw_connection_state_t) String ¶
func (e Nw_connection_state_t) String() string
type Nw_data_transfer_report_state_t ¶
type Nw_data_transfer_report_state_t int64
@typedef nw_data_transfer_report_state_t @abstract The state of a Data Transfer Report indicates whether or not the contents have been collected, and are ready to be accessed.
const ( // @const nw_data_transfer_report_state_collecting The report is outstanding; values cannot be accessed. Nw_data_transfer_report_state_collecting Nw_data_transfer_report_state_t = 1 // @const nw_data_transfer_report_state_collected The report is complete; values can now be accessed. Nw_data_transfer_report_state_collected Nw_data_transfer_report_state_t = 2 )
func (Nw_data_transfer_report_state_t) String ¶
func (e Nw_data_transfer_report_state_t) String() string
type Nw_endpoint_type_t ¶
type Nw_endpoint_type_t int64
@typedef nw_endpoint_type_t @abstract Endpoint types represent a well-known form of endpoint. Values may be added to this enumeration, and some custom endpoint types may use values not defined in this enumeration.
const ( // @const nw_endpoint_type_invalid An invalid endpoint Nw_endpoint_type_invalid Nw_endpoint_type_t = 0 // @const nw_endpoint_type_address An IP Address + Port Nw_endpoint_type_address Nw_endpoint_type_t = 1 // @const nw_endpoint_type_host A Hostname + Port Nw_endpoint_type_host Nw_endpoint_type_t = 2 // @const nw_endpoint_type_bonjour_service A Bonjour Service Name + Type + Domain Nw_endpoint_type_bonjour_service Nw_endpoint_type_t = 3 // @const nw_endpoint_type_url A URL endpoint Nw_endpoint_type_url Nw_endpoint_type_t = 4 )
func (Nw_endpoint_type_t) String ¶
func (e Nw_endpoint_type_t) String() string
type Nw_error_domain_t ¶
type Nw_error_domain_t int64
@typedef nw_error_domain_t @abstract The enumeration of network error domains.
const ( // @const nw_error_domain_invalid Nw_error_domain_invalid Nw_error_domain_t = 0 // @const nw_error_domain_posix The error code will be a POSIX error as defined in <sys/errno.h> Nw_error_domain_posix Nw_error_domain_t = 1 // @const nw_error_domain_dns The error code will be a DNSServiceErrorType error as defined in <dns_sd.h> Nw_error_domain_dns Nw_error_domain_t = 2 // @const nw_error_domain_tls The error code will be a TLS error as defined in <Security/SecBase.h> Nw_error_domain_tls Nw_error_domain_t = 3 // @const nw_error_domain_wifi_aware The error code will be a Wi-Fi Aware error as defined in <WifiAware/errors.swift> Nw_error_domain_wifi_aware Nw_error_domain_t = 4 )
func (Nw_error_domain_t) String ¶
func (e Nw_error_domain_t) String() string
type Nw_ethernet_channel_state_t ¶
type Nw_ethernet_channel_state_t int64
const ( // @const nw_ethernet_channel_state_invalid The state of the channel is not valid. This state will never be delivered in the channel's state update handler, and can be treated as an unexpected value. Nw_ethernet_channel_state_invalid Nw_ethernet_channel_state_t = 0 // @const nw_ethernet_channel_state_waiting The channel is waiting for a usable network before re-attempting Nw_ethernet_channel_state_waiting Nw_ethernet_channel_state_t = 1 // @const nw_ethernet_channel_state_preparing The channel is in the process of establishing Nw_ethernet_channel_state_preparing Nw_ethernet_channel_state_t = 2 // @const nw_ethernet_channel_state_ready The channel is established and ready to send and receive data Nw_ethernet_channel_state_ready Nw_ethernet_channel_state_t = 3 // @const nw_ethernet_channel_state_failed The channel has irrecoverably closed or failed Nw_ethernet_channel_state_failed Nw_ethernet_channel_state_t = 4 // @const nw_ethernet_channel_state_cancelled The channel has been cancelled by the caller Nw_ethernet_channel_state_cancelled Nw_ethernet_channel_state_t = 5 )
func (Nw_ethernet_channel_state_t) String ¶
func (e Nw_ethernet_channel_state_t) String() string
type Nw_framer_start_result_t ¶
type Nw_framer_start_result_t int64
const ( Nw_framer_start_result_ready Nw_framer_start_result_t = 1 Nw_framer_start_result_will_mark_ready Nw_framer_start_result_t = 2 )
func (Nw_framer_start_result_t) String ¶
func (e Nw_framer_start_result_t) String() string
type Nw_interface_radio_type_t ¶
type Nw_interface_radio_type_t int64
@typedef nw_interface_radio_type_t @abstract Interface radio types represent the radio technology for a network link.
const ( Nw_interface_radio_type_unknown Nw_interface_radio_type_t = 0 Nw_interface_radio_type_wifi_b Nw_interface_radio_type_t = 1 Nw_interface_radio_type_wifi_a Nw_interface_radio_type_t = 2 Nw_interface_radio_type_wifi_g Nw_interface_radio_type_t = 3 Nw_interface_radio_type_wifi_n Nw_interface_radio_type_t = 4 Nw_interface_radio_type_wifi_ac Nw_interface_radio_type_t = 5 Nw_interface_radio_type_wifi_ax Nw_interface_radio_type_t = 6 Nw_interface_radio_type_cell_lte Nw_interface_radio_type_t = 128 Nw_interface_radio_type_cell_endc_sub6 Nw_interface_radio_type_t = 129 Nw_interface_radio_type_cell_endc_mmw Nw_interface_radio_type_t = 130 Nw_interface_radio_type_cell_nr_sa_sub6 Nw_interface_radio_type_t = 131 Nw_interface_radio_type_cell_nr_sa_mmw Nw_interface_radio_type_t = 132 Nw_interface_radio_type_cell_wcdma Nw_interface_radio_type_t = 133 Nw_interface_radio_type_cell_gsm Nw_interface_radio_type_t = 134 Nw_interface_radio_type_cell_cdma Nw_interface_radio_type_t = 135 Nw_interface_radio_type_cell_evdo Nw_interface_radio_type_t = 136 )
func (Nw_interface_radio_type_t) String ¶
func (e Nw_interface_radio_type_t) String() string
type Nw_interface_type_t ¶
type Nw_interface_type_t int64
@typedef nw_interface_type_t @abstract Interface types represent the underlying media for a network link, such as Wi-Fi or Cellular.
const ( // @const nw_interface_type_other A virtual or otherwise unknown interface type Nw_interface_type_other Nw_interface_type_t = 0 // @const nw_interface_type_wifi A Wi-Fi link Nw_interface_type_wifi Nw_interface_type_t = 1 // @const nw_interface_type_wifi A Cellular link Nw_interface_type_cellular Nw_interface_type_t = 2 // @const nw_interface_type_wired A Wired Ethernet link Nw_interface_type_wired Nw_interface_type_t = 3 // @const nw_interface_type_loopback The loopback interface Nw_interface_type_loopback Nw_interface_type_t = 4 )
func (Nw_interface_type_t) String ¶
func (e Nw_interface_type_t) String() string
type Nw_ip_ecn_flag_t ¶
type Nw_ip_ecn_flag_t int64
@typedef nw_ip_ecn_flag_t @abstract ECN flags marked in IP headers to indicate congestion.
const ( // @const nw_ip_ecn_flag_non_ect Non ECN-Capable Transport, value 0b00 Nw_ip_ecn_flag_non_ect Nw_ip_ecn_flag_t = 0 // @const nw_ip_ecn_flag_ect_0 ECN Capable Transport (0), value 0b10 Nw_ip_ecn_flag_ect_0 Nw_ip_ecn_flag_t = 2 // @const nw_ip_ecn_flag_ect_1 ECN Capable Transport (1), value 0b01 Nw_ip_ecn_flag_ect_1 Nw_ip_ecn_flag_t = 1 // @const nw_ip_ecn_flag_ce Congestion Experienced, value 0b11 Nw_ip_ecn_flag_ce Nw_ip_ecn_flag_t = 3 )
func (Nw_ip_ecn_flag_t) String ¶
func (e Nw_ip_ecn_flag_t) String() string
type Nw_ip_local_address_preference_t ¶
type Nw_ip_local_address_preference_t int64
@typedef nw_ip_local_address_preference_t @abstract Preference for local addresses selection.
const ( // @const nw_ip_local_address_preference_default Use system default for address selection Nw_ip_local_address_preference_default Nw_ip_local_address_preference_t = 0 // @const nw_ip_local_address_preference_temporary Prefer temporary (privacy) addresses Nw_ip_local_address_preference_temporary Nw_ip_local_address_preference_t = 1 // @const nw_ip_local_address_preference_stable Prefer stable addresses Nw_ip_local_address_preference_stable Nw_ip_local_address_preference_t = 2 )
func (Nw_ip_local_address_preference_t) String ¶
func (e Nw_ip_local_address_preference_t) String() string
type Nw_ip_version_t ¶
type Nw_ip_version_t int64
@typedef nw_ip_version_t @abstract A specific version of the Internet Protocol.
const ( // @const nw_ip_version_any Allow any IP version Nw_ip_version_any Nw_ip_version_t = 0 // @const nw_ip_version_4 Use IP version 4 (IPv4) Nw_ip_version_4 Nw_ip_version_t = 4 // @const nw_ip_version_6 Use IP version 6 (IPv6) Nw_ip_version_6 Nw_ip_version_t = 6 )
func (Nw_ip_version_t) String ¶
func (e Nw_ip_version_t) String() string
type Nw_link_quality_t ¶
type Nw_link_quality_t int64
@typedef nw_link_quality_t @abstract Link quality measurement is a representation of the expected capabilities of the link layer network attachment. Use this value to tune initial values for algorithms that can scale with the capabilities of the network. Do not use this value to gate connection attempts or to override adjustments that would be made based on actual network performance.
const ( // @const nw_link_quality_unknown No link quality measurement is available Nw_link_quality_unknown Nw_link_quality_t = 0 // @const nw_link_quality_minimal Link quality is minimal Nw_link_quality_minimal Nw_link_quality_t = 10 // @const nw_link_quality_moderate Link quality is moderate Nw_link_quality_moderate Nw_link_quality_t = 20 // @const nw_link_quality_good Link quality is good Nw_link_quality_good Nw_link_quality_t = 30 )
func (Nw_link_quality_t) String ¶
func (e Nw_link_quality_t) String() string
type Nw_listener_state_t ¶
type Nw_listener_state_t int64
@typedef nw_listener_state_t @abstract Listener states sent by nw_listener_set_state_changed_handler. States progress forward and do not move backwards.
const ( // @const nw_listener_state_invalid The state of the listener is not valid. This state will never be delivered in the listener's state update handler, and can be treated as an unexpected value. Nw_listener_state_invalid Nw_listener_state_t = 0 // @const nw_listener_state_waiting The listener is waiting for a usable network before being able to receive connections Nw_listener_state_waiting Nw_listener_state_t = 1 // @const nw_listener_state_ready The listener is ready and able to accept incoming connections Nw_listener_state_ready Nw_listener_state_t = 2 // @const nw_listener_state_failed The listener has irrecoverably closed or failed Nw_listener_state_failed Nw_listener_state_t = 3 // @const nw_listener_state_cancelled The listener has been cancelled by the caller Nw_listener_state_cancelled Nw_listener_state_t = 4 )
func (Nw_listener_state_t) String ¶
func (e Nw_listener_state_t) String() string
type Nw_multipath_service_t ¶
type Nw_multipath_service_t int64
@typedef nw_multipath_service_t @abstract Multipath services represent the modes of multipath usage that are allowed for connections.
const ( // @const nw_multipath_service_disabled No multipath transport will be attempted Nw_multipath_service_disabled Nw_multipath_service_t = 0 // @const nw_multipath_service_handover Only use the expensive interface when the when the primary one is not available Nw_multipath_service_handover Nw_multipath_service_t = 1 // @const nw_multipath_service_interactive Use the expensive interface more aggressively to reduce latency Nw_multipath_service_interactive Nw_multipath_service_t = 2 // @const nw_multipath_service_aggregate Use all available interfaces to provide the highest throughput and lowest latency Nw_multipath_service_aggregate Nw_multipath_service_t = 3 )
func (Nw_multipath_service_t) String ¶
func (e Nw_multipath_service_t) String() string
type Nw_multipath_version_t ¶
type Nw_multipath_version_t int64
@typedef nw_multipath_version_t @abstract Multipath versions represent the MPTCP standard versions
const ( // @const nw_multipath_version_unspecified MPTCP unspecified version Nw_multipath_version_unspecified Nw_multipath_version_t = -1 // @const nw_multipath_version_0 MPTCP version 0 Nw_multipath_version_0 Nw_multipath_version_t = 0 // @const nw_multipath_version_1 MPTCP version 1 Nw_multipath_version_1 Nw_multipath_version_t = 1 )
func (Nw_multipath_version_t) String ¶
func (e Nw_multipath_version_t) String() string
type Nw_parameters_expired_dns_behavior_t ¶
type Nw_parameters_expired_dns_behavior_t int64
@typedef nw_parameters_expired_dns_behavior_t @abstract Expired DNS behavior defines whether or not a connection will allow the use of expired DNS answers during connection establishment.
const ( // @const nw_parameters_expired_dns_behavior_default Let the system determine whether or not to allow expired DNS answers Nw_parameters_expired_dns_behavior_default Nw_parameters_expired_dns_behavior_t = 0 // @const nw_parameters_expired_dns_behavior_allow Explicitly allow the use of expired DNS answers Nw_parameters_expired_dns_behavior_allow Nw_parameters_expired_dns_behavior_t = 1 // @const nw_parameters_expired_dns_behavior_allow Explicitly prohibit the use of expired DNS answers Nw_parameters_expired_dns_behavior_prohibit Nw_parameters_expired_dns_behavior_t = 2 // @const nw_parameters_expired_dns_behavior_persistent Allow the use of expired DNS answers, and store answers in a persistent per-process cache. This should only be set for hostnames whose resolutions are not expected to change across networks. Nw_parameters_expired_dns_behavior_persistent Nw_parameters_expired_dns_behavior_t = 3 )
func (Nw_parameters_expired_dns_behavior_t) String ¶
func (e Nw_parameters_expired_dns_behavior_t) String() string
type Nw_path_status_t ¶
type Nw_path_status_t int64
@typedef nw_path_status_t @abstract A network path status indicates if there is a usable route available upon which to send and receive data.
const ( // @const nw_path_status_invalid The path is not valid Nw_path_status_invalid Nw_path_status_t = 0 // @const nw_path_status_satisfied The path has a usable route upon which to send and receive data Nw_path_status_satisfied Nw_path_status_t = 1 // @const nw_path_status_unsatisfied The path does not have a usable route. This may be due to a network interface being down, or due to system policy. Nw_path_status_unsatisfied Nw_path_status_t = 2 // @const nw_path_status_satisfiable The path does not currently have a usable route, but a connection attempt will trigger network attachment Nw_path_status_satisfiable Nw_path_status_t = 3 )
func (Nw_path_status_t) String ¶
func (e Nw_path_status_t) String() string
type Nw_path_unsatisfied_reason_t ¶
type Nw_path_unsatisfied_reason_t int64
@typedef nw_path_unsatisfied_reason_t @abstract A network path unsatisfied reason may indicate the reason the path is currently unsatisfied for some conditions.
const ( // @const nw_path_unsatisfied_reason_not_available No reason is given Nw_path_unsatisfied_reason_not_available Nw_path_unsatisfied_reason_t = 0 // @const nw_path_unsatisfied_reason_cellular_denied The user has disabled cellular Nw_path_unsatisfied_reason_cellular_denied Nw_path_unsatisfied_reason_t = 1 // @const nw_path_unsatisfied_reason_wifi_denied The user has disabled Wi-Fi Nw_path_unsatisfied_reason_wifi_denied Nw_path_unsatisfied_reason_t = 2 // @const nw_path_unsatisfied_reason_local_network_denied The user has disabled local network access Nw_path_unsatisfied_reason_local_network_denied Nw_path_unsatisfied_reason_t = 3 // @const nw_path_unsatisfied_reason_vpn_inactive A required VPN is not active Nw_path_unsatisfied_reason_vpn_inactive Nw_path_unsatisfied_reason_t = 4 )
func (Nw_path_unsatisfied_reason_t) String ¶
func (e Nw_path_unsatisfied_reason_t) String() string
type Nw_quic_stream_type_t ¶
type Nw_quic_stream_type_t int64
@typedef nw_quic_stream_type_t @abstract Represents the type of a QUIC stream.
const ( // @const nw_quic_stream_type_unknown A QUIC stream whose direction can not be determined. Nw_quic_stream_type_unknown Nw_quic_stream_type_t = 0 // @const nw_quic_stream_type_bidirectional A bidirectional QUIC stream. Nw_quic_stream_type_bidirectional Nw_quic_stream_type_t = 1 // @const nw_quic_stream_type_unidirectional An unidirectional QUIC stream. Nw_quic_stream_type_unidirectional Nw_quic_stream_type_t = 2 // @const nw_quic_stream_type_datagram A QUIC datagram stream. Nw_quic_stream_type_datagram Nw_quic_stream_type_t = 3 )
func (Nw_quic_stream_type_t) String ¶
func (e Nw_quic_stream_type_t) String() string
type Nw_report_resolution_protocol_t ¶
type Nw_report_resolution_protocol_t int64
@typedef nw_report_resolution_protocol_t @abstract The protocol used for endpoint resolution.
const ( // @const nw_report_resolution_protocol_unknown The protocol used is not known, or not applicable Nw_report_resolution_protocol_unknown Nw_report_resolution_protocol_t = 0 // @const nw_report_resolution_protocol_udp Resolution used DNS over UDP Nw_report_resolution_protocol_udp Nw_report_resolution_protocol_t = 1 // @const nw_report_resolution_protocol_tcp Resolution used DNS over TCP Nw_report_resolution_protocol_tcp Nw_report_resolution_protocol_t = 2 // @const nw_report_resolution_protocol_tls Resolution used DNS over TLS Nw_report_resolution_protocol_tls Nw_report_resolution_protocol_t = 3 // @const nw_report_resolution_protocol_https Resolution used DNS over HTTPS Nw_report_resolution_protocol_https Nw_report_resolution_protocol_t = 4 )
func (Nw_report_resolution_protocol_t) String ¶
func (e Nw_report_resolution_protocol_t) String() string
type Nw_report_resolution_source_t ¶
type Nw_report_resolution_source_t int64
@typedef nw_report_resolution_source_t @abstract The source of a resolution indicates if the set of endpoints was resolved locally using a cache, or sent a query over the network.
const ( // @const nw_report_resolution_source_query A query was sent over the network Nw_report_resolution_source_query Nw_report_resolution_source_t = 1 // @const nw_report_resolution_source_cache The local cache was used Nw_report_resolution_source_cache Nw_report_resolution_source_t = 2 // @const nw_report_resolution_source_expired_cache An expired entry in the local cache was used Nw_report_resolution_source_expired_cache Nw_report_resolution_source_t = 3 )
func (Nw_report_resolution_source_t) String ¶
func (e Nw_report_resolution_source_t) String() string
type Nw_service_class_t ¶
type Nw_service_class_t int64
@typedef nw_service_class_t @abstract The network service class represents the network queuing priority to use for traffic generated by a connection.
const ( // @const nw_service_class_best_effort Default priority traffic Nw_service_class_best_effort Nw_service_class_t = 0 // @const nw_service_class_background Bulk traffic, or traffic that can be de-prioritized behind foreground traffic Nw_service_class_background Nw_service_class_t = 1 // @const nw_service_class_interactive_video Interactive video traffic Nw_service_class_interactive_video Nw_service_class_t = 2 // @const nw_service_class_interactive_voice Interactive voice traffic Nw_service_class_interactive_voice Nw_service_class_t = 3 // @const nw_service_class_responsive_data Interactive user data Nw_service_class_responsive_data Nw_service_class_t = 4 // @const nw_service_class_signaling Bursty but short. Intolerant of delay and loss. For example, SIP. Nw_service_class_signaling Nw_service_class_t = 5 )
func (Nw_service_class_t) String ¶
func (e Nw_service_class_t) String() string
type Nw_txt_record_find_key_t ¶
type Nw_txt_record_find_key_t int64
@typedef nw_txt_record_find_key_t @abstract An enumeration of possible find results when trying to find a key-value pair in the TXT record object.
const ( // @const nw_txt_record_find_key_invalid The key is invalid. According to RFC 1464, a key is invalid if it is an empty string, contains non-ASCII characters, or has length greater than UINT8_MAX. Nw_txt_record_find_key_invalid Nw_txt_record_find_key_t = 0 // @const nw_txt_record_find_key_not_present The key-value pair does not exist in the TXT record. Nw_txt_record_find_key_not_present Nw_txt_record_find_key_t = 1 // @const nw_txt_record_find_key_no_value The key exists in the TXT record, but has no assigned value. Nw_txt_record_find_key_no_value Nw_txt_record_find_key_t = 2 // @const nw_txt_record_find_key_empty_value The key exists in the TXT record with an empty value. Nw_txt_record_find_key_empty_value Nw_txt_record_find_key_t = 3 // @const nw_txt_record_find_key_non_empty_value The key exists in the TXT record with a non-empty value. Nw_txt_record_find_key_non_empty_value Nw_txt_record_find_key_t = 4 )
func (Nw_txt_record_find_key_t) String ¶
func (e Nw_txt_record_find_key_t) String() string
type Nw_ws_close_code_t ¶
type Nw_ws_close_code_t int64
@typedef nw_ws_close_code_t @abstract WebSocket close codes that describe the reason for closing a WebSocket connection. Endpoints MAY use the following pre-defined status codes when sending a Close frame.
const ( // @const nw_ws_close_code_normal_closure Indicates a normal closure, meaning that the purpose for which the connection was established has been fulfilled. Nw_ws_close_code_normal_closure Nw_ws_close_code_t = 1000 // @const nw_ws_close_code_normal_going_away Indicates that an endpoint is "going away", such as a server going down or a browser having navigated away from a page. Nw_ws_close_code_going_away Nw_ws_close_code_t = 1001 // @const nw_ws_close_code_protocol_error Indicates that an endpoint is terminating the connection due to a protocol error. Nw_ws_close_code_protocol_error Nw_ws_close_code_t = 1002 // @const nw_ws_close_code_normal_closure Indicates that an endpoint is terminating the connection because it has received a type of data it cannot accept (e.g., an endpoint that understands only text data MAY send this if it receives a binary message). Nw_ws_close_code_unsupported_data Nw_ws_close_code_t = 1003 // @const nw_ws_close_code_no_status_received A reserved value and MUST NOT be set as a status code in a Close control frame by an endpoint. It is designated for use in applications expecting a status code to indicate that no status code was actually present. Nw_ws_close_code_no_status_received Nw_ws_close_code_t = 1005 // @const nw_ws_close_code_abnormal_closure A reserved value and MUST NOT be set as a status code in a Close control frame by an endpoint. It is designated for use in applications expecting a status code to indicate that the connection was closed abnormally, e.g., without sending or receiving a Close control frame. Nw_ws_close_code_abnormal_closure Nw_ws_close_code_t = 1006 // @const nw_ws_close_code_invalid_frame_payload_data Indicates that an endpoint is terminating the connection because it has received data within a message that was not consistent with the type of the message (e.g., non-UTF-8 [RFC3629] data within a text message). Nw_ws_close_code_invalid_frame_payload_data Nw_ws_close_code_t = 1007 // @const nw_ws_close_code_policy_violation Indicates that an endpoint is terminating the connection because it has received a message that violates its policy. This is a generic status code that can be returned when there is no other more suitable status code (e.g., 1003 or 1009) or if there is a need to hide specific details about the policy. Nw_ws_close_code_policy_violation Nw_ws_close_code_t = 1008 // @const nw_ws_close_code_message_too_big Indicates that an endpoint is terminating the connection because it has received a message that is too big for it to process. Nw_ws_close_code_message_too_big Nw_ws_close_code_t = 1009 // @const nw_ws_close_code_mandatory_extension Indicates that an endpoint (client) is terminating the connection because it has expected the server to negotiate one or more extensions, but the server didn't return them in the response message of the WebSocket handshake. The list of extensions that are needed SHOULD appear in the /reason/ part of the Close frame. Note that this status code is not used by the server, because it can fail the WebSocket handshake instead. Nw_ws_close_code_mandatory_extension Nw_ws_close_code_t = 1010 // @const nw_ws_close_code_internal_server_error Indicates that a server is terminating the connection because it encountered an unexpected condition that prevented it from fulfilling the request. Nw_ws_close_code_internal_server_error Nw_ws_close_code_t = 1011 // @const nw_ws_close_code_tls_handshake A reserved value and MUST NOT be set as a status code in a Close control frame by an endpoint. It is designated for use in applications expecting a status code to indicate that the connection was closed due to a failure to perform a TLS handshake (e.g., the server certificate can't be verified). Nw_ws_close_code_tls_handshake Nw_ws_close_code_t = 1015 )
func (Nw_ws_close_code_t) String ¶
func (e Nw_ws_close_code_t) String() string
type Nw_ws_opcode_t ¶
type Nw_ws_opcode_t int64
@typedef nw_ws_opcode_t @abstract WebSocket opcodes that denote the type of frame sent or received by a WebSocket endpoint. Opcodes define the interpretation of their associated payload data.
const ( // @const nw_ws_opcode_invalid Denotes an invalid frame. Nw_ws_opcode_invalid Nw_ws_opcode_t = -1 // @const nw_ws_opcode_cont Denotes a continuation frame. Protocol WebSocket handles continuation frames internally, so clients will not see or use continuation frames. Nw_ws_opcode_cont Nw_ws_opcode_t = 0 // @const nw_ws_opcode_text Denotes a text frame. Nw_ws_opcode_text Nw_ws_opcode_t = 1 // @const nw_ws_opcode_text Denotes a binary frame. Nw_ws_opcode_binary Nw_ws_opcode_t = 2 // @const nw_ws_opcode_text Denotes a close frame. Nw_ws_opcode_close Nw_ws_opcode_t = 8 // @const nw_ws_opcode_text Denotes a ping frame. Nw_ws_opcode_ping Nw_ws_opcode_t = 9 // @const nw_ws_opcode_text Denotes a pong frame. Nw_ws_opcode_pong Nw_ws_opcode_t = 10 )
func (Nw_ws_opcode_t) String ¶
func (e Nw_ws_opcode_t) String() string
type Nw_ws_response_status_t ¶
type Nw_ws_response_status_t int64
@typedef nw_ws_response_status_t @abstract The status of a WebSocket server's response to a client's request to connect.
const ( // @const nw_ws_response_status_invalid The response is invalid. This should be treated as an unexpected value. Nw_ws_response_status_invalid Nw_ws_response_status_t = 0 // @const nw_ws_response_status_accept Accept the request to connect. The WebSocket connection will begin framing data. Nw_ws_response_status_accept Nw_ws_response_status_t = 1 // @const nw_ws_response_status_accept Reject the request to connect. The WebSocket connection will be closed. Nw_ws_response_status_reject Nw_ws_response_status_t = 2 )
func (Nw_ws_response_status_t) String ¶
func (e Nw_ws_response_status_t) String() string
type Nw_ws_version_t ¶
type Nw_ws_version_t int64
@typedef nw_ws_version_t @abstract The WebSocket Protocol version.
const ( // @const nw_ws_version_invalid An invalid WebSocket version Nw_ws_version_invalid Nw_ws_version_t = 0 // @const nw_ws_version_13 WebSocket v13 as defined in RFC 6455 Nw_ws_version_13 Nw_ws_version_t = 1 )
func (Nw_ws_version_t) String ¶
func (e Nw_ws_version_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