pyobjc-framework-NetworkExtension 10.1__tar.gz → 11.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {pyobjc-framework-NetworkExtension-10.1 → pyobjc_framework_networkextension-11.0}/Lib/NetworkExtension/_metadata.py +207 -19
- {pyobjc-framework-NetworkExtension-10.1 → pyobjc_framework_networkextension-11.0}/Lib/pyobjc_framework_NetworkExtension.egg-info/PKG-INFO +5 -5
- {pyobjc-framework-NetworkExtension-10.1 → pyobjc_framework_networkextension-11.0}/Lib/pyobjc_framework_NetworkExtension.egg-info/SOURCES.txt +8 -6
- pyobjc_framework_networkextension-11.0/Lib/pyobjc_framework_NetworkExtension.egg-info/pyobjc-build-info.txt +3 -0
- pyobjc_framework_networkextension-11.0/Lib/pyobjc_framework_NetworkExtension.egg-info/requires.txt +2 -0
- {pyobjc-framework-NetworkExtension-10.1 → pyobjc_framework_networkextension-11.0}/License.txt +1 -1
- pyobjc_framework_networkextension-11.0/Modules/_NetworkExtension.m +67 -0
- {pyobjc-framework-NetworkExtension-10.1 → pyobjc_framework_networkextension-11.0}/Modules/pyobjc-api.h +1 -1
- {pyobjc-framework-NetworkExtension-10.1 → pyobjc_framework_networkextension-11.0}/Modules/pyobjc-compat.h +80 -5
- {pyobjc-framework-NetworkExtension-10.1 → pyobjc_framework_networkextension-11.0}/PKG-INFO +5 -5
- {pyobjc-framework-NetworkExtension-10.1 → pyobjc_framework_networkextension-11.0}/PyObjCTest/test_neappproxyflow.py +8 -0
- {pyobjc-framework-NetworkExtension-10.1 → pyobjc_framework_networkextension-11.0}/PyObjCTest/test_neappproxyprovider.py +7 -0
- pyobjc_framework_networkextension-11.0/PyObjCTest/test_neappproxyudpflow.py +35 -0
- pyobjc_framework_networkextension-11.0/PyObjCTest/test_nednsproxyprovider.py +16 -0
- {pyobjc-framework-NetworkExtension-10.1 → pyobjc_framework_networkextension-11.0}/PyObjCTest/test_nefiltermanager.py +9 -0
- {pyobjc-framework-NetworkExtension-10.1 → pyobjc_framework_networkextension-11.0}/PyObjCTest/test_neprovider.py +3 -0
- {pyobjc-framework-NetworkExtension-10.1 → pyobjc_framework_networkextension-11.0}/PyObjCTest/test_nerelaymanager.py +36 -0
- {pyobjc-framework-NetworkExtension-10.1 → pyobjc_framework_networkextension-11.0}/PyObjCTest/test_nevpnprotocol.py +9 -0
- {pyobjc-framework-NetworkExtension-10.1 → pyobjc_framework_networkextension-11.0}/PyObjCTest/test_nevpnprotocolikev2.py +8 -0
- {pyobjc-framework-NetworkExtension-10.1 → pyobjc_framework_networkextension-11.0}/metadata/NetworkExtension.fwinfo +10 -0
- pyobjc-framework-NetworkExtension-10.1/metadata/raw/arm64-14.0.fwinfo → pyobjc_framework_networkextension-11.0/metadata/raw/arm64-14.5.fwinfo +63 -43
- pyobjc_framework_networkextension-11.0/metadata/raw/arm64-15.0.fwinfo +13916 -0
- pyobjc_framework_networkextension-11.0/metadata/raw/arm64-15.2.fwinfo +13917 -0
- pyobjc-framework-NetworkExtension-10.1/metadata/raw/x86_64-14.0.fwinfo → pyobjc_framework_networkextension-11.0/metadata/raw/x86_64-14.5.fwinfo +63 -43
- pyobjc_framework_networkextension-11.0/metadata/raw/x86_64-15.0.fwinfo +13916 -0
- pyobjc_framework_networkextension-11.0/metadata/raw/x86_64-15.2.fwinfo +13917 -0
- {pyobjc-framework-NetworkExtension-10.1 → pyobjc_framework_networkextension-11.0}/pyobjc_setup.py +121 -27
- {pyobjc-framework-NetworkExtension-10.1 → pyobjc_framework_networkextension-11.0}/setup.py +1 -3
- pyobjc-framework-NetworkExtension-10.1/Lib/pyobjc_framework_NetworkExtension.egg-info/requires.txt +0 -2
- pyobjc-framework-NetworkExtension-10.1/Modules/_NetworkExtension.m +0 -43
- pyobjc-framework-NetworkExtension-10.1/PyObjCTest/test_neappproxyudpflow.py +0 -17
- pyobjc-framework-NetworkExtension-10.1/metadata/raw/arm64-12.0.fwinfo +0 -12016
- pyobjc-framework-NetworkExtension-10.1/metadata/raw/arm64-13.0.fwinfo +0 -12426
- pyobjc-framework-NetworkExtension-10.1/metadata/raw/x86_64-12.0.fwinfo +0 -12016
- pyobjc-framework-NetworkExtension-10.1/metadata/raw/x86_64-13.0.fwinfo +0 -12426
- {pyobjc-framework-NetworkExtension-10.1 → pyobjc_framework_networkextension-11.0}/Lib/NetworkExtension/__init__.py +0 -0
- {pyobjc-framework-NetworkExtension-10.1 → pyobjc_framework_networkextension-11.0}/Lib/pyobjc_framework_NetworkExtension.egg-info/dependency_links.txt +0 -0
- {pyobjc-framework-NetworkExtension-10.1 → pyobjc_framework_networkextension-11.0}/Lib/pyobjc_framework_NetworkExtension.egg-info/not-zip-safe +0 -0
- {pyobjc-framework-NetworkExtension-10.1 → pyobjc_framework_networkextension-11.0}/Lib/pyobjc_framework_NetworkExtension.egg-info/top_level.txt +0 -0
- {pyobjc-framework-NetworkExtension-10.1 → pyobjc_framework_networkextension-11.0}/MANIFEST.in +0 -0
- {pyobjc-framework-NetworkExtension-10.1 → pyobjc_framework_networkextension-11.0}/Modules/_NetworkExtension_protocols.m +0 -0
- {pyobjc-framework-NetworkExtension-10.1 → pyobjc_framework_networkextension-11.0}/PyObjCTest/__init__.py +0 -0
- {pyobjc-framework-NetworkExtension-10.1 → pyobjc_framework_networkextension-11.0}/PyObjCTest/test_neappproxyprovidermanager.py +0 -0
- {pyobjc-framework-NetworkExtension-10.1 → pyobjc_framework_networkextension-11.0}/PyObjCTest/test_neappproxytcpflow.py +0 -0
- {pyobjc-framework-NetworkExtension-10.1 → pyobjc_framework_networkextension-11.0}/PyObjCTest/test_nednsproxymanager.py +0 -0
- {pyobjc-framework-NetworkExtension-10.1 → pyobjc_framework_networkextension-11.0}/PyObjCTest/test_nednssettings.py +0 -0
- {pyobjc-framework-NetworkExtension-10.1 → pyobjc_framework_networkextension-11.0}/PyObjCTest/test_nednssettingsmanager.py +0 -0
- {pyobjc-framework-NetworkExtension-10.1 → pyobjc_framework_networkextension-11.0}/PyObjCTest/test_nefailurehandlerprovider.py +0 -0
- {pyobjc-framework-NetworkExtension-10.1 → pyobjc_framework_networkextension-11.0}/PyObjCTest/test_nefiltercontrolprovider.py +0 -0
- {pyobjc-framework-NetworkExtension-10.1 → pyobjc_framework_networkextension-11.0}/PyObjCTest/test_nefilterdataprovider.py +0 -0
- {pyobjc-framework-NetworkExtension-10.1 → pyobjc_framework_networkextension-11.0}/PyObjCTest/test_nefilterflow.py +0 -0
- {pyobjc-framework-NetworkExtension-10.1 → pyobjc_framework_networkextension-11.0}/PyObjCTest/test_nefilterpacketprovider.py +0 -0
- /pyobjc-framework-NetworkExtension-10.1/PyObjCTest/test_NEFilterProvider.py → /pyobjc_framework_networkextension-11.0/PyObjCTest/test_nefilterprovider.py +0 -0
- {pyobjc-framework-NetworkExtension-10.1 → pyobjc_framework_networkextension-11.0}/PyObjCTest/test_nefilterproviderconfiguration.py +0 -0
- {pyobjc-framework-NetworkExtension-10.1 → pyobjc_framework_networkextension-11.0}/PyObjCTest/test_nenetworkrule.py +0 -0
- {pyobjc-framework-NetworkExtension-10.1 → pyobjc_framework_networkextension-11.0}/PyObjCTest/test_neondemandrule.py +0 -0
- {pyobjc-framework-NetworkExtension-10.1 → pyobjc_framework_networkextension-11.0}/PyObjCTest/test_nepackettunnelflow.py +0 -0
- {pyobjc-framework-NetworkExtension-10.1 → pyobjc_framework_networkextension-11.0}/PyObjCTest/test_nepackettunnelprovider.py +0 -0
- {pyobjc-framework-NetworkExtension-10.1 → pyobjc_framework_networkextension-11.0}/PyObjCTest/test_neproxysettings.py +0 -0
- {pyobjc-framework-NetworkExtension-10.1 → pyobjc_framework_networkextension-11.0}/PyObjCTest/test_netransparentproxymanager.py +0 -0
- {pyobjc-framework-NetworkExtension-10.1 → pyobjc_framework_networkextension-11.0}/PyObjCTest/test_netunnelprovider.py +0 -0
- {pyobjc-framework-NetworkExtension-10.1 → pyobjc_framework_networkextension-11.0}/PyObjCTest/test_netunnelprovidermanager.py +0 -0
- {pyobjc-framework-NetworkExtension-10.1 → pyobjc_framework_networkextension-11.0}/PyObjCTest/test_netunnelprovidersession.py +0 -0
- {pyobjc-framework-NetworkExtension-10.1 → pyobjc_framework_networkextension-11.0}/PyObjCTest/test_networkextension.py +0 -0
- {pyobjc-framework-NetworkExtension-10.1 → pyobjc_framework_networkextension-11.0}/PyObjCTest/test_nevpnconnection.py +0 -0
- {pyobjc-framework-NetworkExtension-10.1 → pyobjc_framework_networkextension-11.0}/PyObjCTest/test_nevpnmanager.py +0 -0
- {pyobjc-framework-NetworkExtension-10.1 → pyobjc_framework_networkextension-11.0}/PyObjCTest/test_nevpnprotocolipsec.py +0 -0
- {pyobjc-framework-NetworkExtension-10.1 → pyobjc_framework_networkextension-11.0}/PyObjCTest/test_nsdnssettings.py +0 -0
- {pyobjc-framework-NetworkExtension-10.1 → pyobjc_framework_networkextension-11.0}/PyObjCTest/test_nwpath.py +0 -0
- /pyobjc-framework-NetworkExtension-10.1/PyObjCTest/test_NWTCPConnection.py → /pyobjc_framework_networkextension-11.0/PyObjCTest/test_nwtcpconnection.py +0 -0
- {pyobjc-framework-NetworkExtension-10.1 → pyobjc_framework_networkextension-11.0}/PyObjCTest/test_nwudpsession.py +0 -0
- {pyobjc-framework-NetworkExtension-10.1 → pyobjc_framework_networkextension-11.0}/metadata/metadata.ini +0 -0
- {pyobjc-framework-NetworkExtension-10.1 → pyobjc_framework_networkextension-11.0}/metadata/raw/arm64-12.3.fwinfo +0 -0
- {pyobjc-framework-NetworkExtension-10.1 → pyobjc_framework_networkextension-11.0}/metadata/raw/arm64-13.3.fwinfo +0 -0
- {pyobjc-framework-NetworkExtension-10.1 → pyobjc_framework_networkextension-11.0}/metadata/raw/x86_64-10.15.fwinfo +0 -0
- {pyobjc-framework-NetworkExtension-10.1 → pyobjc_framework_networkextension-11.0}/metadata/raw/x86_64-10.16.fwinfo +0 -0
- {pyobjc-framework-NetworkExtension-10.1 → pyobjc_framework_networkextension-11.0}/metadata/raw/x86_64-12.3.fwinfo +0 -0
- {pyobjc-framework-NetworkExtension-10.1 → pyobjc_framework_networkextension-11.0}/metadata/raw/x86_64-13.3.fwinfo +0 -0
- {pyobjc-framework-NetworkExtension-10.1 → pyobjc_framework_networkextension-11.0}/pyproject.toml +0 -0
- {pyobjc-framework-NetworkExtension-10.1 → pyobjc_framework_networkextension-11.0}/setup.cfg +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# This file is generated by objective.metadata
|
|
2
2
|
#
|
|
3
|
-
# Last update:
|
|
3
|
+
# Last update: Fri Nov 15 12:09:48 2024
|
|
4
4
|
#
|
|
5
5
|
# flake8: noqa
|
|
6
6
|
|
|
@@ -30,8 +30,8 @@ else:
|
|
|
30
30
|
|
|
31
31
|
|
|
32
32
|
misc = {}
|
|
33
|
-
constants = """$NEAppProxyErrorDomain$NEAppPushErrorDomain$NEDNSProxyConfigurationDidChangeNotification$NEDNSProxyErrorDomain$NEDNSSettingsConfigurationDidChangeNotification$NEDNSSettingsErrorDomain$NEFilterConfigurationDidChangeNotification$NEFilterErrorDomain$NEFilterProviderRemediationMapRemediationButtonTexts$NEFilterProviderRemediationMapRemediationURLs$NEHotspotConfigurationErrorDomain$NERelayConfigurationDidChangeNotification$NERelayErrorDomain$NETunnelProviderErrorDomain$NEVPNConfigurationChangeNotification$NEVPNConnectionErrorDomain$NEVPNConnectionStartOptionPassword$NEVPNConnectionStartOptionUsername$NEVPNErrorDomain$NEVPNStatusDidChangeNotification$kNEHotspotHelperOptionDisplayName$"""
|
|
34
|
-
enums = """$NEAppProxyFlowErrorAborted@5$NEAppProxyFlowErrorDatagramTooLarge@9$NEAppProxyFlowErrorHostUnreachable@3$NEAppProxyFlowErrorInternal@8$NEAppProxyFlowErrorInvalidArgument@4$NEAppProxyFlowErrorNotConnected@1$NEAppProxyFlowErrorPeerReset@2$NEAppProxyFlowErrorReadAlreadyPending@10$NEAppProxyFlowErrorRefused@6$NEAppProxyFlowErrorTimedOut@7$NEAppPushManagerErrorConfigurationInvalid@1$NEAppPushManagerErrorConfigurationNotLoaded@2$NEAppPushManagerErrorInactiveSession@4$NEAppPushManagerErrorInternalError@3$NEDNSProtocolCleartext@1$NEDNSProtocolHTTPS@3$NEDNSProtocolTLS@2$NEDNSProxyManagerErrorConfigurationCannotBeRemoved@4$NEDNSProxyManagerErrorConfigurationDisabled@2$NEDNSProxyManagerErrorConfigurationInvalid@1$NEDNSProxyManagerErrorConfigurationStale@3$NEDNSSettingsManagerErrorConfigurationCannotBeRemoved@4$NEDNSSettingsManagerErrorConfigurationDisabled@2$NEDNSSettingsManagerErrorConfigurationInvalid@1$NEDNSSettingsManagerErrorConfigurationStale@3$NEEvaluateConnectionRuleActionConnectIfNeeded@1$NEEvaluateConnectionRuleActionNeverConnect@2$NEFilterActionAllow@1$NEFilterActionDrop@2$NEFilterActionFilterData@4$NEFilterActionInvalid@0$NEFilterActionRemediate@3$NEFilterDataAttributeHasIPHeader@1$NEFilterFlowBytesMax@18446744073709551615$NEFilterManagerErrorConfigurationCannotBeRemoved@4$NEFilterManagerErrorConfigurationDisabled@2$NEFilterManagerErrorConfigurationInternalError@6$NEFilterManagerErrorConfigurationInvalid@1$NEFilterManagerErrorConfigurationPermissionDenied@5$NEFilterManagerErrorConfigurationStale@3$NEFilterManagerGradeFirewall@1$NEFilterManagerGradeInspector@2$NEFilterPacketProviderVerdictAllow@0$NEFilterPacketProviderVerdictDelay@2$NEFilterPacketProviderVerdictDrop@1$NEFilterReportEventDataDecision@2$NEFilterReportEventFlowClosed@3$NEFilterReportEventNewFlow@1$NEFilterReportEventStatistics@4$NEFilterReportFrequencyHigh@3$NEFilterReportFrequencyLow@1$NEFilterReportFrequencyMedium@2$NEFilterReportFrequencyNone@0$NEHotspotConfigurationEAPTLSVersion_1_0@0$NEHotspotConfigurationEAPTLSVersion_1_1@1$NEHotspotConfigurationEAPTLSVersion_1_2@2$NEHotspotConfigurationEAPTTLSInnerAuthenticationCHAP@1$NEHotspotConfigurationEAPTTLSInnerAuthenticationEAP@4$NEHotspotConfigurationEAPTTLSInnerAuthenticationMSCHAP@2$NEHotspotConfigurationEAPTTLSInnerAuthenticationMSCHAPv2@3$NEHotspotConfigurationEAPTTLSInnerAuthenticationPAP@0$NEHotspotConfigurationEAPTypeEAPFAST@43$NEHotspotConfigurationEAPTypeEAPPEAP@25$NEHotspotConfigurationEAPTypeEAPTLS@13$NEHotspotConfigurationEAPTypeEAPTTLS@21$NEHotspotConfigurationErrorAlreadyAssociated@13$NEHotspotConfigurationErrorApplicationIsNotInForeground@14$NEHotspotConfigurationErrorInternal@8$NEHotspotConfigurationErrorInvalid@0$NEHotspotConfigurationErrorInvalidEAPSettings@4$NEHotspotConfigurationErrorInvalidHS20DomainName@6$NEHotspotConfigurationErrorInvalidHS20Settings@5$NEHotspotConfigurationErrorInvalidSSID@1$NEHotspotConfigurationErrorInvalidSSIDPrefix@15$NEHotspotConfigurationErrorInvalidWEPPassphrase@3$NEHotspotConfigurationErrorInvalidWPAPassphrase@2$NEHotspotConfigurationErrorJoinOnceNotSupported@12$NEHotspotConfigurationErrorPending@9$NEHotspotConfigurationErrorSystemConfiguration@10$NEHotspotConfigurationErrorUnknown@11$NEHotspotConfigurationErrorUserDenied@7$NEHotspotNetworkSecurityTypeEnterprise@3$NEHotspotNetworkSecurityTypeOpen@0$NEHotspotNetworkSecurityTypePersonal@2$NEHotspotNetworkSecurityTypeUnknown@4$NEHotspotNetworkSecurityTypeWEP@1$NENetworkRuleProtocolAny@0$NENetworkRuleProtocolTCP@1$NENetworkRuleProtocolUDP@2$NEOnDemandRuleActionConnect@1$NEOnDemandRuleActionDisconnect@2$NEOnDemandRuleActionEvaluateConnection@3$NEOnDemandRuleActionIgnore@4$NEOnDemandRuleInterfaceTypeAny@0$NEOnDemandRuleInterfaceTypeCellular@3$NEOnDemandRuleInterfaceTypeEthernet@1$NEOnDemandRuleInterfaceTypeWiFi@2$NEProviderStopReasonAppUpdate@16$NEProviderStopReasonAuthenticationCanceled@6$NEProviderStopReasonConfigurationDisabled@9$NEProviderStopReasonConfigurationFailed@7$NEProviderStopReasonConfigurationRemoved@10$NEProviderStopReasonConnectionFailed@14$NEProviderStopReasonIdleTimeout@8$NEProviderStopReasonNoNetworkAvailable@3$NEProviderStopReasonNone@0$NEProviderStopReasonProviderDisabled@5$NEProviderStopReasonProviderFailed@2$NEProviderStopReasonSleep@15$NEProviderStopReasonSuperceded@11$NEProviderStopReasonUnrecoverableNetworkChange@4$NEProviderStopReasonUserInitiated@1$NEProviderStopReasonUserLogout@12$NEProviderStopReasonUserSwitch@13$NERelayManagerErrorConfigurationCannotBeRemoved@4$NERelayManagerErrorConfigurationDisabled@2$NERelayManagerErrorConfigurationInvalid@1$NERelayManagerErrorConfigurationStale@3$NETrafficDirectionAny@0$NETrafficDirectionInbound@1$NETrafficDirectionOutbound@2$NETunnelProviderErrorNetworkSettingsCanceled@2$NETunnelProviderErrorNetworkSettingsFailed@3$NETunnelProviderErrorNetworkSettingsInvalid@1$NETunnelProviderRoutingMethodDestinationIP@1$NETunnelProviderRoutingMethodNetworkRule@3$NETunnelProviderRoutingMethodSourceApplication@2$NEVPNConnectionErrorAuthenticationFailed@8$NEVPNConnectionErrorClientCertificateExpired@11$NEVPNConnectionErrorClientCertificateInvalid@9$NEVPNConnectionErrorClientCertificateNotYetValid@10$NEVPNConnectionErrorConfigurationFailed@4$NEVPNConnectionErrorConfigurationNotFound@13$NEVPNConnectionErrorNegotiationFailed@15$NEVPNConnectionErrorNoNetworkAvailable@2$NEVPNConnectionErrorOverslept@1$NEVPNConnectionErrorPluginDisabled@14$NEVPNConnectionErrorPluginFailed@12$NEVPNConnectionErrorServerAddressResolutionFailed@5$NEVPNConnectionErrorServerCertificateExpired@19$NEVPNConnectionErrorServerCertificateInvalid@17$NEVPNConnectionErrorServerCertificateNotYetValid@18$NEVPNConnectionErrorServerDead@7$NEVPNConnectionErrorServerDisconnected@16$NEVPNConnectionErrorServerNotResponding@6$NEVPNConnectionErrorUnrecoverableNetworkChange@3$NEVPNErrorConfigurationDisabled@2$NEVPNErrorConfigurationInvalid@1$NEVPNErrorConfigurationReadWriteFailed@5$NEVPNErrorConfigurationStale@4$NEVPNErrorConfigurationUnknown@6$NEVPNErrorConnectionFailed@3$NEVPNIKEAuthenticationMethodCertificate@1$NEVPNIKEAuthenticationMethodNone@0$NEVPNIKEAuthenticationMethodSharedSecret@2$NEVPNIKEv2CertificateTypeECDSA256@2$NEVPNIKEv2CertificateTypeECDSA384@3$NEVPNIKEv2CertificateTypeECDSA521@4$NEVPNIKEv2CertificateTypeEd25519@5$NEVPNIKEv2CertificateTypeRSA@1$NEVPNIKEv2CertificateTypeRSAPSS@6$NEVPNIKEv2DeadPeerDetectionRateHigh@3$NEVPNIKEv2DeadPeerDetectionRateLow@1$NEVPNIKEv2DeadPeerDetectionRateMedium@2$NEVPNIKEv2DeadPeerDetectionRateNone@0$NEVPNIKEv2DiffieHellmanGroup0@0$NEVPNIKEv2DiffieHellmanGroup1@1$NEVPNIKEv2DiffieHellmanGroup14@14$NEVPNIKEv2DiffieHellmanGroup15@15$NEVPNIKEv2DiffieHellmanGroup16@16$NEVPNIKEv2DiffieHellmanGroup17@17$NEVPNIKEv2DiffieHellmanGroup18@18$NEVPNIKEv2DiffieHellmanGroup19@19$NEVPNIKEv2DiffieHellmanGroup2@2$NEVPNIKEv2DiffieHellmanGroup20@20$NEVPNIKEv2DiffieHellmanGroup21@21$NEVPNIKEv2DiffieHellmanGroup31@31$NEVPNIKEv2DiffieHellmanGroup32@32$NEVPNIKEv2DiffieHellmanGroup5@5$NEVPNIKEv2DiffieHellmanGroupInvalid@0$NEVPNIKEv2EncryptionAlgorithm3DES@2$NEVPNIKEv2EncryptionAlgorithmAES128@3$NEVPNIKEv2EncryptionAlgorithmAES128GCM@5$NEVPNIKEv2EncryptionAlgorithmAES256@4$NEVPNIKEv2EncryptionAlgorithmAES256GCM@6$NEVPNIKEv2EncryptionAlgorithmChaCha20Poly1305@7$NEVPNIKEv2EncryptionAlgorithmDES@1$NEVPNIKEv2IntegrityAlgorithmSHA160@2$NEVPNIKEv2IntegrityAlgorithmSHA256@3$NEVPNIKEv2IntegrityAlgorithmSHA384@4$NEVPNIKEv2IntegrityAlgorithmSHA512@5$NEVPNIKEv2IntegrityAlgorithmSHA96@1$NEVPNIKEv2TLSVersion1_0@1$NEVPNIKEv2TLSVersion1_1@2$NEVPNIKEv2TLSVersion1_2@3$NEVPNIKEv2TLSVersionDefault@0$NEVPNStatusConnected@3$NEVPNStatusConnecting@2$NEVPNStatusDisconnected@1$NEVPNStatusDisconnecting@5$NEVPNStatusInvalid@0$NEVPNStatusReasserting@4$NWPathStatusInvalid@0$NWPathStatusSatisfiable@3$NWPathStatusSatisfied@1$NWPathStatusUnsatisfied@2$NWTCPConnectionStateCancelled@5$NWTCPConnectionStateConnected@3$NWTCPConnectionStateConnecting@1$NWTCPConnectionStateDisconnected@4$NWTCPConnectionStateInvalid@0$NWTCPConnectionStateWaiting@2$NWUDPSessionStateCancelled@5$NWUDPSessionStateFailed@4$NWUDPSessionStateInvalid@0$NWUDPSessionStatePreparing@2$NWUDPSessionStateReady@3$NWUDPSessionStateWaiting@1$kNEHotspotHelperCommandTypeAuthenticate@3$kNEHotspotHelperCommandTypeEvaluate@2$kNEHotspotHelperCommandTypeFilterScanList@1$kNEHotspotHelperCommandTypeLogoff@6$kNEHotspotHelperCommandTypeMaintain@5$kNEHotspotHelperCommandTypeNone@0$kNEHotspotHelperCommandTypePresentUI@4$kNEHotspotHelperConfidenceHigh@2$kNEHotspotHelperConfidenceLow@1$kNEHotspotHelperConfidenceNone@0$kNEHotspotHelperResultAuthenticationRequired@4$kNEHotspotHelperResultCommandNotRecognized@3$kNEHotspotHelperResultFailure@1$kNEHotspotHelperResultSuccess@0$kNEHotspotHelperResultTemporaryFailure@6$kNEHotspotHelperResultUIRequired@2$kNEHotspotHelperResultUnsupportedNetwork@5$"""
|
|
33
|
+
constants = """$NEAppProxyErrorDomain$NEAppPushErrorDomain$NEDNSProxyConfigurationDidChangeNotification$NEDNSProxyErrorDomain$NEDNSSettingsConfigurationDidChangeNotification$NEDNSSettingsErrorDomain$NEFilterConfigurationDidChangeNotification$NEFilterErrorDomain$NEFilterProviderRemediationMapRemediationButtonTexts$NEFilterProviderRemediationMapRemediationURLs$NEHotspotConfigurationErrorDomain$NERelayClientErrorDomain$NERelayConfigurationDidChangeNotification$NERelayErrorDomain$NETunnelProviderErrorDomain$NEVPNConfigurationChangeNotification$NEVPNConnectionErrorDomain$NEVPNConnectionStartOptionPassword$NEVPNConnectionStartOptionUsername$NEVPNErrorDomain$NEVPNStatusDidChangeNotification$kNEHotspotHelperOptionDisplayName$"""
|
|
34
|
+
enums = """$NEAppProxyFlowErrorAborted@5$NEAppProxyFlowErrorDatagramTooLarge@9$NEAppProxyFlowErrorHostUnreachable@3$NEAppProxyFlowErrorInternal@8$NEAppProxyFlowErrorInvalidArgument@4$NEAppProxyFlowErrorNotConnected@1$NEAppProxyFlowErrorPeerReset@2$NEAppProxyFlowErrorReadAlreadyPending@10$NEAppProxyFlowErrorRefused@6$NEAppProxyFlowErrorTimedOut@7$NEAppPushManagerErrorConfigurationInvalid@1$NEAppPushManagerErrorConfigurationNotLoaded@2$NEAppPushManagerErrorInactiveSession@4$NEAppPushManagerErrorInternalError@3$NEDNSProtocolCleartext@1$NEDNSProtocolHTTPS@3$NEDNSProtocolTLS@2$NEDNSProxyManagerErrorConfigurationCannotBeRemoved@4$NEDNSProxyManagerErrorConfigurationDisabled@2$NEDNSProxyManagerErrorConfigurationInvalid@1$NEDNSProxyManagerErrorConfigurationStale@3$NEDNSSettingsManagerErrorConfigurationCannotBeRemoved@4$NEDNSSettingsManagerErrorConfigurationDisabled@2$NEDNSSettingsManagerErrorConfigurationInvalid@1$NEDNSSettingsManagerErrorConfigurationStale@3$NEEvaluateConnectionRuleActionConnectIfNeeded@1$NEEvaluateConnectionRuleActionNeverConnect@2$NEFilterActionAllow@1$NEFilterActionDrop@2$NEFilterActionFilterData@4$NEFilterActionInvalid@0$NEFilterActionRemediate@3$NEFilterDataAttributeHasIPHeader@1$NEFilterFlowBytesMax@18446744073709551615$NEFilterManagerErrorConfigurationCannotBeRemoved@4$NEFilterManagerErrorConfigurationDisabled@2$NEFilterManagerErrorConfigurationInternalError@6$NEFilterManagerErrorConfigurationInvalid@1$NEFilterManagerErrorConfigurationPermissionDenied@5$NEFilterManagerErrorConfigurationStale@3$NEFilterManagerGradeFirewall@1$NEFilterManagerGradeInspector@2$NEFilterPacketProviderVerdictAllow@0$NEFilterPacketProviderVerdictDelay@2$NEFilterPacketProviderVerdictDrop@1$NEFilterReportEventDataDecision@2$NEFilterReportEventFlowClosed@3$NEFilterReportEventNewFlow@1$NEFilterReportEventStatistics@4$NEFilterReportFrequencyHigh@3$NEFilterReportFrequencyLow@1$NEFilterReportFrequencyMedium@2$NEFilterReportFrequencyNone@0$NEHotspotConfigurationEAPTLSVersion_1_0@0$NEHotspotConfigurationEAPTLSVersion_1_1@1$NEHotspotConfigurationEAPTLSVersion_1_2@2$NEHotspotConfigurationEAPTTLSInnerAuthenticationCHAP@1$NEHotspotConfigurationEAPTTLSInnerAuthenticationEAP@4$NEHotspotConfigurationEAPTTLSInnerAuthenticationMSCHAP@2$NEHotspotConfigurationEAPTTLSInnerAuthenticationMSCHAPv2@3$NEHotspotConfigurationEAPTTLSInnerAuthenticationPAP@0$NEHotspotConfigurationEAPTypeEAPFAST@43$NEHotspotConfigurationEAPTypeEAPPEAP@25$NEHotspotConfigurationEAPTypeEAPTLS@13$NEHotspotConfigurationEAPTypeEAPTTLS@21$NEHotspotConfigurationErrorAlreadyAssociated@13$NEHotspotConfigurationErrorApplicationIsNotInForeground@14$NEHotspotConfigurationErrorInternal@8$NEHotspotConfigurationErrorInvalid@0$NEHotspotConfigurationErrorInvalidEAPSettings@4$NEHotspotConfigurationErrorInvalidHS20DomainName@6$NEHotspotConfigurationErrorInvalidHS20Settings@5$NEHotspotConfigurationErrorInvalidSSID@1$NEHotspotConfigurationErrorInvalidSSIDPrefix@15$NEHotspotConfigurationErrorInvalidWEPPassphrase@3$NEHotspotConfigurationErrorInvalidWPAPassphrase@2$NEHotspotConfigurationErrorJoinOnceNotSupported@12$NEHotspotConfigurationErrorPending@9$NEHotspotConfigurationErrorSystemConfiguration@10$NEHotspotConfigurationErrorSystemDenied@17$NEHotspotConfigurationErrorUnknown@11$NEHotspotConfigurationErrorUserDenied@7$NEHotspotConfigurationErrorUserUnauthorized@16$NEHotspotNetworkSecurityTypeEnterprise@3$NEHotspotNetworkSecurityTypeOpen@0$NEHotspotNetworkSecurityTypePersonal@2$NEHotspotNetworkSecurityTypeUnknown@4$NEHotspotNetworkSecurityTypeWEP@1$NENetworkRuleProtocolAny@0$NENetworkRuleProtocolTCP@1$NENetworkRuleProtocolUDP@2$NEOnDemandRuleActionConnect@1$NEOnDemandRuleActionDisconnect@2$NEOnDemandRuleActionEvaluateConnection@3$NEOnDemandRuleActionIgnore@4$NEOnDemandRuleInterfaceTypeAny@0$NEOnDemandRuleInterfaceTypeCellular@3$NEOnDemandRuleInterfaceTypeEthernet@1$NEOnDemandRuleInterfaceTypeWiFi@2$NEProviderStopReasonAppUpdate@16$NEProviderStopReasonAuthenticationCanceled@6$NEProviderStopReasonConfigurationDisabled@9$NEProviderStopReasonConfigurationFailed@7$NEProviderStopReasonConfigurationRemoved@10$NEProviderStopReasonConnectionFailed@14$NEProviderStopReasonIdleTimeout@8$NEProviderStopReasonInternalError@17$NEProviderStopReasonNoNetworkAvailable@3$NEProviderStopReasonNone@0$NEProviderStopReasonProviderDisabled@5$NEProviderStopReasonProviderFailed@2$NEProviderStopReasonSleep@15$NEProviderStopReasonSuperceded@11$NEProviderStopReasonUnrecoverableNetworkChange@4$NEProviderStopReasonUserInitiated@1$NEProviderStopReasonUserLogout@12$NEProviderStopReasonUserSwitch@13$NERelayManagerClientErrorCertificateExpired@7$NERelayManagerClientErrorCertificateInvalid@6$NERelayManagerClientErrorCertificateMissing@5$NERelayManagerClientErrorDNSFailed@2$NERelayManagerClientErrorNone@1$NERelayManagerClientErrorOther@10$NERelayManagerClientErrorServerCertificateExpired@9$NERelayManagerClientErrorServerCertificateInvalid@8$NERelayManagerClientErrorServerDisconnected@4$NERelayManagerClientErrorServerUnreachable@3$NERelayManagerErrorConfigurationCannotBeRemoved@4$NERelayManagerErrorConfigurationDisabled@2$NERelayManagerErrorConfigurationInvalid@1$NERelayManagerErrorConfigurationStale@3$NETrafficDirectionAny@0$NETrafficDirectionInbound@1$NETrafficDirectionOutbound@2$NETunnelProviderErrorNetworkSettingsCanceled@2$NETunnelProviderErrorNetworkSettingsFailed@3$NETunnelProviderErrorNetworkSettingsInvalid@1$NETunnelProviderRoutingMethodDestinationIP@1$NETunnelProviderRoutingMethodNetworkRule@3$NETunnelProviderRoutingMethodSourceApplication@2$NEVPNConnectionErrorAuthenticationFailed@8$NEVPNConnectionErrorClientCertificateExpired@11$NEVPNConnectionErrorClientCertificateInvalid@9$NEVPNConnectionErrorClientCertificateNotYetValid@10$NEVPNConnectionErrorConfigurationFailed@4$NEVPNConnectionErrorConfigurationNotFound@13$NEVPNConnectionErrorNegotiationFailed@15$NEVPNConnectionErrorNoNetworkAvailable@2$NEVPNConnectionErrorOverslept@1$NEVPNConnectionErrorPluginDisabled@14$NEVPNConnectionErrorPluginFailed@12$NEVPNConnectionErrorServerAddressResolutionFailed@5$NEVPNConnectionErrorServerCertificateExpired@19$NEVPNConnectionErrorServerCertificateInvalid@17$NEVPNConnectionErrorServerCertificateNotYetValid@18$NEVPNConnectionErrorServerDead@7$NEVPNConnectionErrorServerDisconnected@16$NEVPNConnectionErrorServerNotResponding@6$NEVPNConnectionErrorUnrecoverableNetworkChange@3$NEVPNErrorConfigurationDisabled@2$NEVPNErrorConfigurationInvalid@1$NEVPNErrorConfigurationReadWriteFailed@5$NEVPNErrorConfigurationStale@4$NEVPNErrorConfigurationUnknown@6$NEVPNErrorConnectionFailed@3$NEVPNIKEAuthenticationMethodCertificate@1$NEVPNIKEAuthenticationMethodNone@0$NEVPNIKEAuthenticationMethodSharedSecret@2$NEVPNIKEv2CertificateTypeECDSA256@2$NEVPNIKEv2CertificateTypeECDSA384@3$NEVPNIKEv2CertificateTypeECDSA521@4$NEVPNIKEv2CertificateTypeEd25519@5$NEVPNIKEv2CertificateTypeRSA@1$NEVPNIKEv2CertificateTypeRSAPSS@6$NEVPNIKEv2DeadPeerDetectionRateHigh@3$NEVPNIKEv2DeadPeerDetectionRateLow@1$NEVPNIKEv2DeadPeerDetectionRateMedium@2$NEVPNIKEv2DeadPeerDetectionRateNone@0$NEVPNIKEv2DiffieHellmanGroup0@0$NEVPNIKEv2DiffieHellmanGroup1@1$NEVPNIKEv2DiffieHellmanGroup14@14$NEVPNIKEv2DiffieHellmanGroup15@15$NEVPNIKEv2DiffieHellmanGroup16@16$NEVPNIKEv2DiffieHellmanGroup17@17$NEVPNIKEv2DiffieHellmanGroup18@18$NEVPNIKEv2DiffieHellmanGroup19@19$NEVPNIKEv2DiffieHellmanGroup2@2$NEVPNIKEv2DiffieHellmanGroup20@20$NEVPNIKEv2DiffieHellmanGroup21@21$NEVPNIKEv2DiffieHellmanGroup31@31$NEVPNIKEv2DiffieHellmanGroup32@32$NEVPNIKEv2DiffieHellmanGroup5@5$NEVPNIKEv2DiffieHellmanGroupInvalid@0$NEVPNIKEv2EncryptionAlgorithm3DES@2$NEVPNIKEv2EncryptionAlgorithmAES128@3$NEVPNIKEv2EncryptionAlgorithmAES128GCM@5$NEVPNIKEv2EncryptionAlgorithmAES256@4$NEVPNIKEv2EncryptionAlgorithmAES256GCM@6$NEVPNIKEv2EncryptionAlgorithmChaCha20Poly1305@7$NEVPNIKEv2EncryptionAlgorithmDES@1$NEVPNIKEv2IntegrityAlgorithmSHA160@2$NEVPNIKEv2IntegrityAlgorithmSHA256@3$NEVPNIKEv2IntegrityAlgorithmSHA384@4$NEVPNIKEv2IntegrityAlgorithmSHA512@5$NEVPNIKEv2IntegrityAlgorithmSHA96@1$NEVPNIKEv2TLSVersion1_0@1$NEVPNIKEv2TLSVersion1_1@2$NEVPNIKEv2TLSVersion1_2@3$NEVPNIKEv2TLSVersionDefault@0$NEVPNStatusConnected@3$NEVPNStatusConnecting@2$NEVPNStatusDisconnected@1$NEVPNStatusDisconnecting@5$NEVPNStatusInvalid@0$NEVPNStatusReasserting@4$NWPathStatusInvalid@0$NWPathStatusSatisfiable@3$NWPathStatusSatisfied@1$NWPathStatusUnsatisfied@2$NWTCPConnectionStateCancelled@5$NWTCPConnectionStateConnected@3$NWTCPConnectionStateConnecting@1$NWTCPConnectionStateDisconnected@4$NWTCPConnectionStateInvalid@0$NWTCPConnectionStateWaiting@2$NWUDPSessionStateCancelled@5$NWUDPSessionStateFailed@4$NWUDPSessionStateInvalid@0$NWUDPSessionStatePreparing@2$NWUDPSessionStateReady@3$NWUDPSessionStateWaiting@1$kNEHotspotHelperCommandTypeAuthenticate@3$kNEHotspotHelperCommandTypeEvaluate@2$kNEHotspotHelperCommandTypeFilterScanList@1$kNEHotspotHelperCommandTypeLogoff@6$kNEHotspotHelperCommandTypeMaintain@5$kNEHotspotHelperCommandTypeNone@0$kNEHotspotHelperCommandTypePresentUI@4$kNEHotspotHelperConfidenceHigh@2$kNEHotspotHelperConfidenceLow@1$kNEHotspotHelperConfidenceNone@0$kNEHotspotHelperResultAuthenticationRequired@4$kNEHotspotHelperResultCommandNotRecognized@3$kNEHotspotHelperResultFailure@1$kNEHotspotHelperResultSuccess@0$kNEHotspotHelperResultTemporaryFailure@6$kNEHotspotHelperResultUIRequired@2$kNEHotspotHelperResultUnsupportedNetwork@5$"""
|
|
35
35
|
misc.update(
|
|
36
36
|
{
|
|
37
37
|
"NEVPNConnectionError": NewType("NEVPNConnectionError", int),
|
|
@@ -67,6 +67,7 @@ misc.update(
|
|
|
67
67
|
"NEVPNIKEv2CertificateType": NewType("NEVPNIKEv2CertificateType", int),
|
|
68
68
|
"NEFilterManagerGrade": NewType("NEFilterManagerGrade", int),
|
|
69
69
|
"NWUDPSessionState": NewType("NWUDPSessionState", int),
|
|
70
|
+
"NERelayManagerClientError": NewType("NERelayManagerClientError", int),
|
|
70
71
|
"NEHotspotConfigurationTTLSInnerAuthenticationType": NewType(
|
|
71
72
|
"NEHotspotConfigurationTTLSInnerAuthenticationType", int
|
|
72
73
|
),
|
|
@@ -115,12 +116,31 @@ try:
|
|
|
115
116
|
}
|
|
116
117
|
},
|
|
117
118
|
)
|
|
119
|
+
r(
|
|
120
|
+
b"NEAppProxyFlow",
|
|
121
|
+
b"openWithLocalFlowEndpoint:completionHandler:",
|
|
122
|
+
{
|
|
123
|
+
"arguments": {
|
|
124
|
+
3: {
|
|
125
|
+
"callable": {
|
|
126
|
+
"retval": {"type": b"v"},
|
|
127
|
+
"arguments": {0: {"type": b"^v"}, 1: {"type": b"@"}},
|
|
128
|
+
}
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
},
|
|
132
|
+
)
|
|
118
133
|
r(b"NEAppProxyProvider", b"handleNewFlow:", {"retval": {"type": "Z"}})
|
|
119
134
|
r(
|
|
120
135
|
b"NEAppProxyProvider",
|
|
121
136
|
b"handleNewUDPFlow:initialRemoteEndpoint:",
|
|
122
137
|
{"retval": {"type": b"Z"}},
|
|
123
138
|
)
|
|
139
|
+
r(
|
|
140
|
+
b"NEAppProxyProvider",
|
|
141
|
+
b"handleNewUDPFlow:initialRemoteFlowEndpoint:",
|
|
142
|
+
{"retval": {"type": b"Z"}},
|
|
143
|
+
)
|
|
124
144
|
r(
|
|
125
145
|
b"NEAppProxyProvider",
|
|
126
146
|
b"startProxyWithOptions:completionHandler:",
|
|
@@ -204,6 +224,25 @@ try:
|
|
|
204
224
|
}
|
|
205
225
|
},
|
|
206
226
|
)
|
|
227
|
+
r(
|
|
228
|
+
b"NEAppProxyUDPFlow",
|
|
229
|
+
b"readDatagramsAndFlowEndpointsWithCompletionHandler:",
|
|
230
|
+
{
|
|
231
|
+
"arguments": {
|
|
232
|
+
2: {
|
|
233
|
+
"callable": {
|
|
234
|
+
"retval": {"type": b"v"},
|
|
235
|
+
"arguments": {
|
|
236
|
+
0: {"type": b"^v"},
|
|
237
|
+
1: {"type": b"@"},
|
|
238
|
+
2: {"type": b"@"},
|
|
239
|
+
3: {"type": b"@"},
|
|
240
|
+
},
|
|
241
|
+
}
|
|
242
|
+
}
|
|
243
|
+
}
|
|
244
|
+
},
|
|
245
|
+
)
|
|
207
246
|
r(
|
|
208
247
|
b"NEAppProxyUDPFlow",
|
|
209
248
|
b"readDatagramsWithCompletionHandler:",
|
|
@@ -239,6 +278,20 @@ try:
|
|
|
239
278
|
}
|
|
240
279
|
},
|
|
241
280
|
)
|
|
281
|
+
r(
|
|
282
|
+
b"NEAppProxyUDPFlow",
|
|
283
|
+
b"writeDatagrams:sentByFlowEndpoints:completionHandler:",
|
|
284
|
+
{
|
|
285
|
+
"arguments": {
|
|
286
|
+
4: {
|
|
287
|
+
"callable": {
|
|
288
|
+
"retval": {"type": b"v"},
|
|
289
|
+
"arguments": {0: {"type": b"^v"}, 1: {"type": b"@"}},
|
|
290
|
+
}
|
|
291
|
+
}
|
|
292
|
+
}
|
|
293
|
+
},
|
|
294
|
+
)
|
|
242
295
|
r(b"NEAppPushManager", b"isActive", {"retval": {"type": b"Z"}})
|
|
243
296
|
r(b"NEAppPushManager", b"isEnabled", {"retval": {"type": b"Z"}})
|
|
244
297
|
r(
|
|
@@ -380,6 +433,11 @@ try:
|
|
|
380
433
|
b"handleNewUDPFlow:initialRemoteEndpoint:",
|
|
381
434
|
{"retval": {"type": b"Z"}},
|
|
382
435
|
)
|
|
436
|
+
r(
|
|
437
|
+
b"NEDNSProxyProvider",
|
|
438
|
+
b"handleNewUDPFlow:initialRemoteFlowEndpoint:",
|
|
439
|
+
{"retval": {"type": b"Z"}},
|
|
440
|
+
)
|
|
383
441
|
r(
|
|
384
442
|
b"NEDNSProxyProvider",
|
|
385
443
|
b"startProxyWithOptions:completionHandler:",
|
|
@@ -453,20 +511,6 @@ try:
|
|
|
453
511
|
}
|
|
454
512
|
},
|
|
455
513
|
)
|
|
456
|
-
r(
|
|
457
|
-
b"NEFailureHandlerProvider",
|
|
458
|
-
b"handleFailure:completionHandler:",
|
|
459
|
-
{
|
|
460
|
-
"arguments": {
|
|
461
|
-
3: {
|
|
462
|
-
"callable": {
|
|
463
|
-
"retval": {"type": b"v"},
|
|
464
|
-
"arguments": {0: {"type": b"^v"}},
|
|
465
|
-
}
|
|
466
|
-
}
|
|
467
|
-
}
|
|
468
|
-
},
|
|
469
|
-
)
|
|
470
514
|
r(
|
|
471
515
|
b"NEFilterControlProvider",
|
|
472
516
|
b"handleNewFlow:completionHandler:",
|
|
@@ -521,6 +565,7 @@ try:
|
|
|
521
565
|
}
|
|
522
566
|
},
|
|
523
567
|
)
|
|
568
|
+
r(b"NEFilterManager", b"disableEncryptedDNSSettings", {"retval": {"type": b"Z"}})
|
|
524
569
|
r(b"NEFilterManager", b"isEnabled", {"retval": {"type": "Z"}})
|
|
525
570
|
r(
|
|
526
571
|
b"NEFilterManager",
|
|
@@ -567,6 +612,11 @@ try:
|
|
|
567
612
|
}
|
|
568
613
|
},
|
|
569
614
|
)
|
|
615
|
+
r(
|
|
616
|
+
b"NEFilterManager",
|
|
617
|
+
b"setDisableEncryptedDNSSettings:",
|
|
618
|
+
{"arguments": {2: {"type": b"Z"}}},
|
|
619
|
+
)
|
|
570
620
|
r(b"NEFilterManager", b"setEnabled:", {"arguments": {2: {"type": "Z"}}})
|
|
571
621
|
r(
|
|
572
622
|
b"NEFilterNewFlowVerdict",
|
|
@@ -703,6 +753,34 @@ try:
|
|
|
703
753
|
}
|
|
704
754
|
},
|
|
705
755
|
)
|
|
756
|
+
r(
|
|
757
|
+
b"NEHotspotConfigurationManager",
|
|
758
|
+
b"joinAccessoryHotspot:passphrase:completionHandler:",
|
|
759
|
+
{
|
|
760
|
+
"arguments": {
|
|
761
|
+
4: {
|
|
762
|
+
"callable": {
|
|
763
|
+
"retval": {"type": b"v"},
|
|
764
|
+
"arguments": {0: {"type": b"^v"}, 1: {"type": b"@"}},
|
|
765
|
+
}
|
|
766
|
+
}
|
|
767
|
+
}
|
|
768
|
+
},
|
|
769
|
+
)
|
|
770
|
+
r(
|
|
771
|
+
b"NEHotspotConfigurationManager",
|
|
772
|
+
b"joinAccessoryHotspotWithoutSecurity:completionHandler:",
|
|
773
|
+
{
|
|
774
|
+
"arguments": {
|
|
775
|
+
3: {
|
|
776
|
+
"callable": {
|
|
777
|
+
"retval": {"type": b"v"},
|
|
778
|
+
"arguments": {0: {"type": b"^v"}, 1: {"type": b"@"}},
|
|
779
|
+
}
|
|
780
|
+
}
|
|
781
|
+
}
|
|
782
|
+
},
|
|
783
|
+
)
|
|
706
784
|
r(
|
|
707
785
|
b"NEHotspotEAPSettings",
|
|
708
786
|
b"isTLSClientCertificateRequired",
|
|
@@ -739,8 +817,8 @@ try:
|
|
|
739
817
|
"arguments": {
|
|
740
818
|
4: {
|
|
741
819
|
"callable": {
|
|
742
|
-
"retval": {"type": b"
|
|
743
|
-
"arguments": {0: {"type": b"^v"}},
|
|
820
|
+
"retval": {"type": b"v"},
|
|
821
|
+
"arguments": {0: {"type": b"^v"}, 1: {"type": b"@"}},
|
|
744
822
|
}
|
|
745
823
|
}
|
|
746
824
|
},
|
|
@@ -891,6 +969,20 @@ try:
|
|
|
891
969
|
)
|
|
892
970
|
r(b"NEProxySettings", b"setHTTPEnabled:", {"arguments": {2: {"type": "Z"}}})
|
|
893
971
|
r(b"NEProxySettings", b"setHTTPSEnabled:", {"arguments": {2: {"type": "Z"}}})
|
|
972
|
+
r(
|
|
973
|
+
b"NERelayManager",
|
|
974
|
+
b"getLastClientErrors:completionHandler:",
|
|
975
|
+
{
|
|
976
|
+
"arguments": {
|
|
977
|
+
3: {
|
|
978
|
+
"callable": {
|
|
979
|
+
"retval": {"type": b"v"},
|
|
980
|
+
"arguments": {0: {"type": b"^v"}, 1: {"type": b"@"}},
|
|
981
|
+
}
|
|
982
|
+
}
|
|
983
|
+
}
|
|
984
|
+
},
|
|
985
|
+
)
|
|
894
986
|
r(b"NERelayManager", b"isEnabled", {"retval": {"type": b"Z"}})
|
|
895
987
|
r(
|
|
896
988
|
b"NERelayManager",
|
|
@@ -1068,6 +1160,12 @@ try:
|
|
|
1068
1160
|
b"startVPNTunnelWithOptions:andReturnError:",
|
|
1069
1161
|
{"retval": {"type": "Z"}, "arguments": {3: {"type_modifier": b"o"}}},
|
|
1070
1162
|
)
|
|
1163
|
+
r(b"NEVPNIKEv2PPKConfiguration", b"isMandatory", {"retval": {"type": b"Z"}})
|
|
1164
|
+
r(
|
|
1165
|
+
b"NEVPNIKEv2PPKConfiguration",
|
|
1166
|
+
b"setIsMandatory:",
|
|
1167
|
+
{"arguments": {2: {"type": b"Z"}}},
|
|
1168
|
+
)
|
|
1071
1169
|
r(b"NEVPNManager", b"isEnabled", {"retval": {"type": "Z"}})
|
|
1072
1170
|
r(b"NEVPNManager", b"isOnDemandEnabled", {"retval": {"type": "Z"}})
|
|
1073
1171
|
r(
|
|
@@ -1123,6 +1221,7 @@ try:
|
|
|
1123
1221
|
r(b"NEVPNProtocol", b"enforceRoutes", {"retval": {"type": b"Z"}})
|
|
1124
1222
|
r(b"NEVPNProtocol", b"excludeAPNs", {"retval": {"type": b"Z"}})
|
|
1125
1223
|
r(b"NEVPNProtocol", b"excludeCellularServices", {"retval": {"type": b"Z"}})
|
|
1224
|
+
r(b"NEVPNProtocol", b"excludeDeviceCommunication", {"retval": {"type": b"Z"}})
|
|
1126
1225
|
r(b"NEVPNProtocol", b"excludeLocalNetworks", {"retval": {"type": b"Z"}})
|
|
1127
1226
|
r(b"NEVPNProtocol", b"includeAllNetworks", {"retval": {"type": b"Z"}})
|
|
1128
1227
|
r(b"NEVPNProtocol", b"setDisconnectOnSleep:", {"arguments": {2: {"type": "Z"}}})
|
|
@@ -1133,6 +1232,11 @@ try:
|
|
|
1133
1232
|
b"setExcludeCellularServices:",
|
|
1134
1233
|
{"arguments": {2: {"type": b"Z"}}},
|
|
1135
1234
|
)
|
|
1235
|
+
r(
|
|
1236
|
+
b"NEVPNProtocol",
|
|
1237
|
+
b"setExcludeDeviceCommunication:",
|
|
1238
|
+
{"arguments": {2: {"type": b"Z"}}},
|
|
1239
|
+
)
|
|
1136
1240
|
r(b"NEVPNProtocol", b"setExcludeLocalNetworks:", {"arguments": {2: {"type": b"Z"}}})
|
|
1137
1241
|
r(b"NEVPNProtocol", b"setIncludeAllNetworks:", {"arguments": {2: {"type": b"Z"}}})
|
|
1138
1242
|
r(b"NEVPNProtocolIKEv2", b"disableMOBIKE", {"retval": {"type": "Z"}})
|
|
@@ -1165,6 +1269,12 @@ try:
|
|
|
1165
1269
|
b"useConfigurationAttributeInternalIPSubnet",
|
|
1166
1270
|
{"retval": {"type": "Z"}},
|
|
1167
1271
|
)
|
|
1272
|
+
r(b"NEVPNProtocolIPSec", b"excludeDeviceCommunication", {"retval": {"type": "Z"}})
|
|
1273
|
+
r(
|
|
1274
|
+
b"NEVPNProtocolIPSec",
|
|
1275
|
+
b"setExcludeDeviceCommunication:",
|
|
1276
|
+
{"arguments": {2: {"type": "Z"}}},
|
|
1277
|
+
)
|
|
1168
1278
|
r(
|
|
1169
1279
|
b"NEVPNProtocolIPSec",
|
|
1170
1280
|
b"setUseExtendedAuthentication:",
|
|
@@ -1340,6 +1450,84 @@ try:
|
|
|
1340
1450
|
r(b"null", b"isSecure", {"retval": {"type": b"Z"}})
|
|
1341
1451
|
finally:
|
|
1342
1452
|
objc._updatingMetadata(False)
|
|
1453
|
+
|
|
1454
|
+
objc.registerNewKeywordsFromSelector("NEAppRule", b"initWithSigningIdentifier:")
|
|
1455
|
+
objc.registerNewKeywordsFromSelector(
|
|
1456
|
+
"NEAppRule", b"initWithSigningIdentifier:designatedRequirement:"
|
|
1457
|
+
)
|
|
1458
|
+
objc.registerNewKeywordsFromSelector("NEDNSSettings", b"initWithServers:")
|
|
1459
|
+
objc.registerNewKeywordsFromSelector(
|
|
1460
|
+
"NEEthernetTunnelNetworkSettings",
|
|
1461
|
+
b"initWithTunnelRemoteAddress:ethernetAddress:mtu:",
|
|
1462
|
+
)
|
|
1463
|
+
objc.registerNewKeywordsFromSelector(
|
|
1464
|
+
"NEEvaluateConnectionRule", b"initWithMatchDomains:andAction:"
|
|
1465
|
+
)
|
|
1466
|
+
objc.registerNewKeywordsFromSelector("NEFilterRule", b"initWithNetworkRule:action:")
|
|
1467
|
+
objc.registerNewKeywordsFromSelector(
|
|
1468
|
+
"NEFilterSettings", b"initWithRules:defaultAction:"
|
|
1469
|
+
)
|
|
1470
|
+
objc.registerNewKeywordsFromSelector(
|
|
1471
|
+
"NEHotspotConfiguration", b"initWithHS20Settings:eapSettings:"
|
|
1472
|
+
)
|
|
1473
|
+
objc.registerNewKeywordsFromSelector("NEHotspotConfiguration", b"initWithSSID:")
|
|
1474
|
+
objc.registerNewKeywordsFromSelector(
|
|
1475
|
+
"NEHotspotConfiguration", b"initWithSSID:eapSettings:"
|
|
1476
|
+
)
|
|
1477
|
+
objc.registerNewKeywordsFromSelector(
|
|
1478
|
+
"NEHotspotConfiguration", b"initWithSSID:passphrase:isWEP:"
|
|
1479
|
+
)
|
|
1480
|
+
objc.registerNewKeywordsFromSelector("NEHotspotConfiguration", b"initWithSSIDPrefix:")
|
|
1481
|
+
objc.registerNewKeywordsFromSelector(
|
|
1482
|
+
"NEHotspotConfiguration", b"initWithSSIDPrefix:passphrase:isWEP:"
|
|
1483
|
+
)
|
|
1484
|
+
objc.registerNewKeywordsFromSelector(
|
|
1485
|
+
"NEHotspotHS20Settings", b"initWithDomainName:roamingEnabled:"
|
|
1486
|
+
)
|
|
1487
|
+
objc.registerNewKeywordsFromSelector(
|
|
1488
|
+
"NEIPv4Route", b"initWithDestinationAddress:subnetMask:"
|
|
1489
|
+
)
|
|
1490
|
+
objc.registerNewKeywordsFromSelector(
|
|
1491
|
+
"NEIPv4Settings", b"initWithAddresses:subnetMasks:"
|
|
1492
|
+
)
|
|
1493
|
+
objc.registerNewKeywordsFromSelector(
|
|
1494
|
+
"NEIPv6Route", b"initWithDestinationAddress:networkPrefixLength:"
|
|
1495
|
+
)
|
|
1496
|
+
objc.registerNewKeywordsFromSelector(
|
|
1497
|
+
"NEIPv6Settings", b"initWithAddresses:networkPrefixLengths:"
|
|
1498
|
+
)
|
|
1499
|
+
objc.registerNewKeywordsFromSelector(
|
|
1500
|
+
"NENetworkRule", b"initWithDestinationHost:protocol:"
|
|
1501
|
+
)
|
|
1502
|
+
objc.registerNewKeywordsFromSelector(
|
|
1503
|
+
"NENetworkRule", b"initWithDestinationHostEndpoint:protocol:"
|
|
1504
|
+
)
|
|
1505
|
+
objc.registerNewKeywordsFromSelector(
|
|
1506
|
+
"NENetworkRule", b"initWithDestinationNetwork:prefix:protocol:"
|
|
1507
|
+
)
|
|
1508
|
+
objc.registerNewKeywordsFromSelector(
|
|
1509
|
+
"NENetworkRule", b"initWithDestinationNetworkEndpoint:prefix:protocol:"
|
|
1510
|
+
)
|
|
1511
|
+
objc.registerNewKeywordsFromSelector(
|
|
1512
|
+
"NENetworkRule",
|
|
1513
|
+
b"initWithRemoteNetwork:remotePrefix:localNetwork:localPrefix:protocol:direction:",
|
|
1514
|
+
)
|
|
1515
|
+
objc.registerNewKeywordsFromSelector(
|
|
1516
|
+
"NENetworkRule",
|
|
1517
|
+
b"initWithRemoteNetworkEndpoint:remotePrefix:localNetworkEndpoint:localPrefix:protocol:direction:",
|
|
1518
|
+
)
|
|
1519
|
+
objc.registerNewKeywordsFromSelector("NEPacket", b"initWithData:protocolFamily:")
|
|
1520
|
+
objc.registerNewKeywordsFromSelector("NEProxyServer", b"initWithAddress:port:")
|
|
1521
|
+
objc.registerNewKeywordsFromSelector(
|
|
1522
|
+
"NETunnelNetworkSettings", b"initWithTunnelRemoteAddress:"
|
|
1523
|
+
)
|
|
1524
|
+
objc.registerNewKeywordsFromSelector(
|
|
1525
|
+
"NEVPNIKEv2PPKConfiguration", b"initWithIdentifier:keychainReference:"
|
|
1526
|
+
)
|
|
1527
|
+
objc.registerNewKeywordsFromSelector(
|
|
1528
|
+
"NWTCPConnection", b"initWithUpgradeForConnection:"
|
|
1529
|
+
)
|
|
1530
|
+
objc.registerNewKeywordsFromSelector("NWUDPSession", b"initWithUpgradeForSession:")
|
|
1343
1531
|
expressions = {}
|
|
1344
1532
|
|
|
1345
1533
|
# END OF FILE
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: pyobjc-framework-NetworkExtension
|
|
3
|
-
Version:
|
|
3
|
+
Version: 11.0
|
|
4
4
|
Summary: Wrappers for the framework NetworkExtension on macOS
|
|
5
5
|
Home-page: https://github.com/ronaldoussoren/pyobjc
|
|
6
6
|
Author: Ronald Oussoren
|
|
@@ -18,20 +18,20 @@ Classifier: Operating System :: MacOS :: MacOS X
|
|
|
18
18
|
Classifier: Programming Language :: Python
|
|
19
19
|
Classifier: Programming Language :: Python :: 3
|
|
20
20
|
Classifier: Programming Language :: Python :: 3 :: Only
|
|
21
|
-
Classifier: Programming Language :: Python :: 3.8
|
|
22
21
|
Classifier: Programming Language :: Python :: 3.9
|
|
23
22
|
Classifier: Programming Language :: Python :: 3.10
|
|
24
23
|
Classifier: Programming Language :: Python :: 3.11
|
|
25
24
|
Classifier: Programming Language :: Python :: 3.12
|
|
26
25
|
Classifier: Programming Language :: Python :: 3.13
|
|
26
|
+
Classifier: Programming Language :: Python :: 3.14
|
|
27
27
|
Classifier: Programming Language :: Python :: Implementation :: CPython
|
|
28
28
|
Classifier: Programming Language :: Objective C
|
|
29
29
|
Classifier: Topic :: Software Development :: Libraries :: Python Modules
|
|
30
30
|
Classifier: Topic :: Software Development :: User Interfaces
|
|
31
|
-
Requires-Python: >=3.
|
|
31
|
+
Requires-Python: >=3.9
|
|
32
32
|
Description-Content-Type: text/x-rst; charset=UTF-8
|
|
33
|
-
Requires-Dist: pyobjc-core>=
|
|
34
|
-
Requires-Dist: pyobjc-framework-Cocoa>=
|
|
33
|
+
Requires-Dist: pyobjc-core>=11.0
|
|
34
|
+
Requires-Dist: pyobjc-framework-Cocoa>=11.0
|
|
35
35
|
Project-URL: Documentation, https://pyobjc.readthedocs.io/en/latest/
|
|
36
36
|
Project-URL: Issue tracker, https://github.com/ronaldoussoren/pyobjc/issues
|
|
37
37
|
Project-URL: Repository, https://github.com/ronaldoussoren/pyobjc
|
|
@@ -9,6 +9,7 @@ Lib/pyobjc_framework_NetworkExtension.egg-info/PKG-INFO
|
|
|
9
9
|
Lib/pyobjc_framework_NetworkExtension.egg-info/SOURCES.txt
|
|
10
10
|
Lib/pyobjc_framework_NetworkExtension.egg-info/dependency_links.txt
|
|
11
11
|
Lib/pyobjc_framework_NetworkExtension.egg-info/not-zip-safe
|
|
12
|
+
Lib/pyobjc_framework_NetworkExtension.egg-info/pyobjc-build-info.txt
|
|
12
13
|
Lib/pyobjc_framework_NetworkExtension.egg-info/requires.txt
|
|
13
14
|
Lib/pyobjc_framework_NetworkExtension.egg-info/top_level.txt
|
|
14
15
|
Modules/_NetworkExtension.m
|
|
@@ -24,6 +25,7 @@ PyObjCTest/test_neappproxyprovidermanager.py
|
|
|
24
25
|
PyObjCTest/test_neappproxytcpflow.py
|
|
25
26
|
PyObjCTest/test_neappproxyudpflow.py
|
|
26
27
|
PyObjCTest/test_nednsproxymanager.py
|
|
28
|
+
PyObjCTest/test_nednsproxyprovider.py
|
|
27
29
|
PyObjCTest/test_nednssettings.py
|
|
28
30
|
PyObjCTest/test_nednssettingsmanager.py
|
|
29
31
|
PyObjCTest/test_nefailurehandlerprovider.py
|
|
@@ -57,15 +59,15 @@ PyObjCTest/test_nwtcpconnection.py
|
|
|
57
59
|
PyObjCTest/test_nwudpsession.py
|
|
58
60
|
metadata/NetworkExtension.fwinfo
|
|
59
61
|
metadata/metadata.ini
|
|
60
|
-
metadata/raw/arm64-12.0.fwinfo
|
|
61
62
|
metadata/raw/arm64-12.3.fwinfo
|
|
62
|
-
metadata/raw/arm64-13.0.fwinfo
|
|
63
63
|
metadata/raw/arm64-13.3.fwinfo
|
|
64
|
-
metadata/raw/arm64-14.
|
|
64
|
+
metadata/raw/arm64-14.5.fwinfo
|
|
65
|
+
metadata/raw/arm64-15.0.fwinfo
|
|
66
|
+
metadata/raw/arm64-15.2.fwinfo
|
|
65
67
|
metadata/raw/x86_64-10.15.fwinfo
|
|
66
68
|
metadata/raw/x86_64-10.16.fwinfo
|
|
67
|
-
metadata/raw/x86_64-12.0.fwinfo
|
|
68
69
|
metadata/raw/x86_64-12.3.fwinfo
|
|
69
|
-
metadata/raw/x86_64-13.0.fwinfo
|
|
70
70
|
metadata/raw/x86_64-13.3.fwinfo
|
|
71
|
-
metadata/raw/x86_64-14.
|
|
71
|
+
metadata/raw/x86_64-14.5.fwinfo
|
|
72
|
+
metadata/raw/x86_64-15.0.fwinfo
|
|
73
|
+
metadata/raw/x86_64-15.2.fwinfo
|
{pyobjc-framework-NetworkExtension-10.1 → pyobjc_framework_networkextension-11.0}/License.txt
RENAMED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
(This is the MIT license, note that libffi-src is a separate product with its own license)
|
|
2
2
|
|
|
3
3
|
Copyright 2002, 2003 - Bill Bumgarner, Ronald Oussoren, Steve Majewski, Lele Gaifax, et.al.
|
|
4
|
-
Copyright 2003-
|
|
4
|
+
Copyright 2003-2024 - Ronald Oussoren
|
|
5
5
|
|
|
6
6
|
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
|
7
7
|
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
#define PY_SSIZE_T_CLEAN
|
|
2
|
+
#include "Python.h"
|
|
3
|
+
#include "pyobjc-api.h"
|
|
4
|
+
|
|
5
|
+
#import <Foundation/Foundation.h>
|
|
6
|
+
#import <NetworkExtension/NetworkExtension.h>
|
|
7
|
+
|
|
8
|
+
/* We include the source code here instead of
|
|
9
|
+
* using the linker due to limitations in pyobjc-api.h
|
|
10
|
+
*/
|
|
11
|
+
#include "_NetworkExtension_protocols.m"
|
|
12
|
+
|
|
13
|
+
static PyMethodDef mod_methods[] = {
|
|
14
|
+
{0, 0, 0, 0} /* sentinel */
|
|
15
|
+
};
|
|
16
|
+
|
|
17
|
+
static int mod_exec_module(PyObject* m)
|
|
18
|
+
{
|
|
19
|
+
return 0;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
static struct PyModuleDef_Slot mod_slots[] = {
|
|
23
|
+
{
|
|
24
|
+
.slot = Py_mod_exec,
|
|
25
|
+
.value = (void*)mod_exec_module
|
|
26
|
+
},
|
|
27
|
+
#if PY_VERSION_HEX >= 0x030c0000
|
|
28
|
+
{
|
|
29
|
+
/* This extension does not use the CPython API other than initializing
|
|
30
|
+
* the module, hence is safe with subinterpreters and per-interpreter
|
|
31
|
+
* GILs
|
|
32
|
+
*/
|
|
33
|
+
.slot = Py_mod_multiple_interpreters,
|
|
34
|
+
.value = Py_MOD_PER_INTERPRETER_GIL_SUPPORTED,
|
|
35
|
+
},
|
|
36
|
+
#endif
|
|
37
|
+
#if PY_VERSION_HEX >= 0x030d0000
|
|
38
|
+
{
|
|
39
|
+
/* The code in this extension should be safe to use without the GIL */
|
|
40
|
+
.slot = Py_mod_gil,
|
|
41
|
+
.value = Py_MOD_GIL_NOT_USED,
|
|
42
|
+
},
|
|
43
|
+
#endif
|
|
44
|
+
{ /* Sentinel */
|
|
45
|
+
.slot = 0,
|
|
46
|
+
.value = 0
|
|
47
|
+
}
|
|
48
|
+
};
|
|
49
|
+
|
|
50
|
+
static struct PyModuleDef mod_module = {
|
|
51
|
+
.m_base = PyModuleDef_HEAD_INIT,
|
|
52
|
+
.m_name = "_NetworkExtension",
|
|
53
|
+
.m_doc = NULL,
|
|
54
|
+
.m_size = 0,
|
|
55
|
+
.m_methods = mod_methods,
|
|
56
|
+
.m_slots = mod_slots,
|
|
57
|
+
.m_traverse = NULL,
|
|
58
|
+
.m_clear = NULL,
|
|
59
|
+
.m_free = NULL,
|
|
60
|
+
};
|
|
61
|
+
|
|
62
|
+
PyObject* PyInit__NetworkExtension(void);
|
|
63
|
+
|
|
64
|
+
PyObject* __attribute__((__visibility__("default"))) PyInit__NetworkExtension(void)
|
|
65
|
+
{
|
|
66
|
+
return PyModuleDef_Init(&mod_module);
|
|
67
|
+
}
|
|
@@ -83,7 +83,7 @@ struct pyobjc_api {
|
|
|
83
83
|
PyObject* _Nullable (*_Nonnull unsupported_method_caller)(
|
|
84
84
|
PyObject* _Nonnull, PyObject* _Nonnull, PyObject* _Nonnull const* _Nonnull,
|
|
85
85
|
size_t);
|
|
86
|
-
void (*_Nonnull err_python_to_objc_gil)(PyGILState_STATE* _Nonnull state);
|
|
86
|
+
void (*_Nonnull err_python_to_objc_gil)(PyGILState_STATE* _Nonnull state) __attribute__((__noreturn__));
|
|
87
87
|
int (*_Nonnull simplify_sig)(const char* signature, char* buf, size_t buflen);
|
|
88
88
|
void (*_Nonnull free_c_array)(int, Py_buffer*);
|
|
89
89
|
int (*_Nonnull py_to_c_array)(BOOL, BOOL, const char* _Nonnull, PyObject* _Nonnull,
|
|
@@ -11,6 +11,12 @@
|
|
|
11
11
|
|
|
12
12
|
NS_ASSUME_NONNULL_BEGIN
|
|
13
13
|
|
|
14
|
+
#ifdef USE_STATIC_ANALYZER
|
|
15
|
+
#define CLANG_SUPPRESS [[clang::suppress]]
|
|
16
|
+
#else
|
|
17
|
+
#define CLANG_SUPPRESS
|
|
18
|
+
#endif
|
|
19
|
+
|
|
14
20
|
/*
|
|
15
21
|
*
|
|
16
22
|
* Start of compiler definitions
|
|
@@ -153,10 +159,6 @@ extern PyObject* _Nullable PyObject_VectorcallMethod(
|
|
|
153
159
|
|
|
154
160
|
extern int PyObjC_Cmp(PyObject* o1, PyObject* o2, int* result);
|
|
155
161
|
|
|
156
|
-
extern PyObject* _Nullable PyObjCBytes_InternFromString(const char* v);
|
|
157
|
-
extern PyObject* _Nullable PyObjCBytes_InternFromStringAndSize(const char* v,
|
|
158
|
-
Py_ssize_t l);
|
|
159
|
-
|
|
160
162
|
/*
|
|
161
163
|
* A micro optimization: when using Python 3.3 or later it
|
|
162
164
|
* is possible to access a 'char*' with an ASCII representation
|
|
@@ -238,7 +240,80 @@ _PyObjCTuple_GetItem(PyObject* tuple, Py_ssize_t idx)
|
|
|
238
240
|
PyGILState_Release(_GILState); \
|
|
239
241
|
} while (0)
|
|
240
242
|
|
|
241
|
-
|
|
243
|
+
#if PY_VERSION_HEX < 0x030a0000
|
|
244
|
+
|
|
245
|
+
static inline PyObject* Py_NewRef(PyObject* o)
|
|
246
|
+
{
|
|
247
|
+
Py_INCREF(o);
|
|
248
|
+
return o;
|
|
249
|
+
}
|
|
250
|
+
|
|
251
|
+
static inline PyObject* Py_XNewRef(PyObject* o)
|
|
252
|
+
{
|
|
253
|
+
Py_XINCREF(o);
|
|
254
|
+
return o;
|
|
255
|
+
}
|
|
256
|
+
|
|
257
|
+
#endif /* PY_VERSION_HEX < 0x030a0000 */
|
|
258
|
+
|
|
259
|
+
#if PY_VERSION_HEX < 0x030d0000
|
|
260
|
+
#define Py_BEGIN_CRITICAL_SECTION(value) { (void)(value);
|
|
261
|
+
#define Py_END_CRITICAL_SECTION() }
|
|
262
|
+
#define Py_EXIT_CRITICAL_SECTION() ((void)0)
|
|
263
|
+
|
|
264
|
+
#define Py_BEGIN_CRITICAL_SECTION2(value1, value2) { (void)(value1); (void)(value2);
|
|
265
|
+
#define Py_END_CRITICAL_SECTION2() }
|
|
266
|
+
#define Py_EXIT_CRITICAL_SECTION2() ((void)0)
|
|
267
|
+
|
|
268
|
+
#define PyObjC_ATOMIC
|
|
269
|
+
|
|
270
|
+
#else
|
|
271
|
+
|
|
272
|
+
#ifdef Py_GIL_DISABLED
|
|
273
|
+
#define Py_EXIT_CRITICAL_SECTION() PyCriticalSection_End(&_py_cs)
|
|
274
|
+
#define Py_EXIT_CRITICAL_SECTION2() PyCriticalSection2_End(&_py_cs2)
|
|
275
|
+
#define PyObjC_ATOMIC _Atomic
|
|
276
|
+
#else
|
|
277
|
+
#define Py_EXIT_CRITICAL_SECTION() ((void)0)
|
|
278
|
+
#define Py_EXIT_CRITICAL_SECTION2() ((void)0)
|
|
279
|
+
#define PyObjC_ATOMIC
|
|
280
|
+
#endif
|
|
281
|
+
|
|
282
|
+
#endif
|
|
283
|
+
|
|
284
|
+
#if PY_VERSION_HEX < 0x030d0000
|
|
285
|
+
static inline int PyDict_GetItemRef(PyObject *p, PyObject *key, PyObject * _Nonnull* _Nullable result)
|
|
286
|
+
{
|
|
287
|
+
*result = PyDict_GetItemWithError(p, key);
|
|
288
|
+
if (*result == NULL) {
|
|
289
|
+
if (PyErr_Occurred()) {
|
|
290
|
+
return -1;
|
|
291
|
+
} else {
|
|
292
|
+
return 0;
|
|
293
|
+
}
|
|
294
|
+
} else {
|
|
295
|
+
Py_INCREF(*result);
|
|
296
|
+
return 1;
|
|
297
|
+
}
|
|
298
|
+
}
|
|
299
|
+
|
|
300
|
+
static inline PyObject* _Nullable PyList_GetItemRef(PyObject* l, Py_ssize_t i)
|
|
301
|
+
{
|
|
302
|
+
PyObject* result = PyList_GetItem(l, i);
|
|
303
|
+
Py_XINCREF(result);
|
|
304
|
+
return result;
|
|
305
|
+
}
|
|
306
|
+
#endif
|
|
307
|
+
|
|
308
|
+
#if PY_VERSION_HEX < 0x030c0000
|
|
309
|
+
static inline PyObject* PyType_GetDict(PyTypeObject* type)
|
|
310
|
+
{
|
|
311
|
+
PyObject* result = type->tp_dict;
|
|
312
|
+
Py_INCREF(result);
|
|
313
|
+
return result;
|
|
314
|
+
}
|
|
315
|
+
#endif
|
|
316
|
+
|
|
242
317
|
|
|
243
318
|
NS_ASSUME_NONNULL_END
|
|
244
319
|
|