-
-
Save vs-mobiletools-engineering-service2/b2d02e3f8d630976087e0cd621ea52b6 to your computer and use it in GitHub Desktop.
generator-diff/generator.diff
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/old/dotnet/ios/generated-sources/NetworkExtension/NEDnsOverHttpsSettings.g.cs b/new/dotnet/ios/generated-sources/NetworkExtension/NEDnsOverHttpsSettings.g.cs | |
index bde304a..4c2bd58 100644 | |
--- a/old/dotnet/ios/generated-sources/NetworkExtension/NEDnsOverHttpsSettings.g.cs | |
+++ b/new/dotnet/ios/generated-sources/NetworkExtension/NEDnsOverHttpsSettings.g.cs | |
@@ -109,6 +109,48 @@ namespace NetworkExtension { | |
{ | |
} | |
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)] | |
+ [UnsupportedOSPlatform ("tvos")] | |
+ [SupportedOSPlatform ("macos13.0")] | |
+ [SupportedOSPlatform ("ios16.0")] | |
+ [SupportedOSPlatform ("maccatalyst16.0")] | |
+ public virtual NSData? IdentityReference { | |
+ [Export ("identityReference", ArgumentSemantic.Copy)] | |
+ [UnsupportedOSPlatform ("tvos")] | |
+ [SupportedOSPlatform ("macos11.0")] | |
+ [SupportedOSPlatform ("ios14.0")] | |
+ [SupportedOSPlatform ("maccatalyst14.0")] | |
+ get { | |
+ #if ARCH_32 | |
+ throw new PlatformNotSupportedException ("This API is not supported on this version of iOS"); | |
+ #else | |
+ NSData? ret; | |
+ if (IsDirectBinding) { | |
+ ret = Runtime.GetNSObject<NSData> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend (this.Handle, Selector.GetHandle ("identityReference")))!; | |
+ } else { | |
+ ret = Runtime.GetNSObject<NSData> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSendSuper (this.SuperHandle, Selector.GetHandle ("identityReference")))!; | |
+ } | |
+ return ret!; | |
+ #endif | |
+ } | |
+ [Export ("setIdentityReference:", ArgumentSemantic.Copy)] | |
+ [UnsupportedOSPlatform ("tvos")] | |
+ [SupportedOSPlatform ("macos11.0")] | |
+ [SupportedOSPlatform ("ios14.0")] | |
+ [SupportedOSPlatform ("maccatalyst14.0")] | |
+ set { | |
+ #if ARCH_32 | |
+ throw new PlatformNotSupportedException ("This API is not supported on this version of iOS"); | |
+ #else | |
+ var value__handle__ = value.GetHandle (); | |
+ if (IsDirectBinding) { | |
+ global::ObjCRuntime.Messaging.void_objc_msgSend_NativeHandle (this.Handle, Selector.GetHandle ("setIdentityReference:"), value__handle__); | |
+ } else { | |
+ global::ObjCRuntime.Messaging.void_objc_msgSendSuper_NativeHandle (this.SuperHandle, Selector.GetHandle ("setIdentityReference:"), value__handle__); | |
+ } | |
+ #endif | |
+ } | |
+ } | |
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)] | |
[UnsupportedOSPlatform ("tvos")] | |
[SupportedOSPlatform ("macos11.0")] | |
diff --git a/old/dotnet/ios/generated-sources/NetworkExtension/NEDnsOverTlsSettings.g.cs b/new/dotnet/ios/generated-sources/NetworkExtension/NEDnsOverTlsSettings.g.cs | |
index 488cc5c..268a409 100644 | |
--- a/old/dotnet/ios/generated-sources/NetworkExtension/NEDnsOverTlsSettings.g.cs | |
+++ b/new/dotnet/ios/generated-sources/NetworkExtension/NEDnsOverTlsSettings.g.cs | |
@@ -109,6 +109,48 @@ namespace NetworkExtension { | |
{ | |
} | |
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)] | |
+ [UnsupportedOSPlatform ("tvos")] | |
+ [SupportedOSPlatform ("macos13.0")] | |
+ [SupportedOSPlatform ("ios16.0")] | |
+ [SupportedOSPlatform ("maccatalyst16.0")] | |
+ public virtual NSData? IdentityReference { | |
+ [Export ("identityReference", ArgumentSemantic.Copy)] | |
+ [UnsupportedOSPlatform ("tvos")] | |
+ [SupportedOSPlatform ("macos11.0")] | |
+ [SupportedOSPlatform ("ios14.0")] | |
+ [SupportedOSPlatform ("maccatalyst14.0")] | |
+ get { | |
+ #if ARCH_32 | |
+ throw new PlatformNotSupportedException ("This API is not supported on this version of iOS"); | |
+ #else | |
+ NSData? ret; | |
+ if (IsDirectBinding) { | |
+ ret = Runtime.GetNSObject<NSData> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend (this.Handle, Selector.GetHandle ("identityReference")))!; | |
+ } else { | |
+ ret = Runtime.GetNSObject<NSData> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSendSuper (this.SuperHandle, Selector.GetHandle ("identityReference")))!; | |
+ } | |
+ return ret!; | |
+ #endif | |
+ } | |
+ [Export ("setIdentityReference:", ArgumentSemantic.Copy)] | |
+ [UnsupportedOSPlatform ("tvos")] | |
+ [SupportedOSPlatform ("macos11.0")] | |
+ [SupportedOSPlatform ("ios14.0")] | |
+ [SupportedOSPlatform ("maccatalyst14.0")] | |
+ set { | |
+ #if ARCH_32 | |
+ throw new PlatformNotSupportedException ("This API is not supported on this version of iOS"); | |
+ #else | |
+ var value__handle__ = value.GetHandle (); | |
+ if (IsDirectBinding) { | |
+ global::ObjCRuntime.Messaging.void_objc_msgSend_NativeHandle (this.Handle, Selector.GetHandle ("setIdentityReference:"), value__handle__); | |
+ } else { | |
+ global::ObjCRuntime.Messaging.void_objc_msgSendSuper_NativeHandle (this.SuperHandle, Selector.GetHandle ("setIdentityReference:"), value__handle__); | |
+ } | |
+ #endif | |
+ } | |
+ } | |
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)] | |
[UnsupportedOSPlatform ("tvos")] | |
[SupportedOSPlatform ("macos11.0")] | |
diff --git a/old/dotnet/ios/generated-sources/NetworkExtension/NEVpnConnection.g.cs b/new/dotnet/ios/generated-sources/NetworkExtension/NEVpnConnection.g.cs | |
index e21a68f..4ccebaa 100644 | |
--- a/old/dotnet/ios/generated-sources/NetworkExtension/NEVpnConnection.g.cs | |
+++ b/new/dotnet/ios/generated-sources/NetworkExtension/NEVpnConnection.g.cs | |
@@ -81,6 +81,48 @@ namespace NetworkExtension { | |
{ | |
} | |
+ [Export ("fetchLastDisconnectErrorWithCompletionHandler:")] | |
+ [UnsupportedOSPlatform ("tvos")] | |
+ [SupportedOSPlatform ("macos13.0")] | |
+ [SupportedOSPlatform ("ios16.0")] | |
+ [SupportedOSPlatform ("maccatalyst16.0")] | |
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)] | |
+ public unsafe virtual void FetchLastDisconnectError ([BlockProxy (typeof (ObjCRuntime.Trampolines.NIDActionArity1V0))]global::System.Action<NSError> handler) | |
+ { | |
+ #if ARCH_32 | |
+ throw new PlatformNotSupportedException ("This API is not supported on this version of iOS"); | |
+ #else | |
+ if (handler is null) | |
+ ObjCRuntime.ThrowHelper.ThrowArgumentNullException (nameof (handler)); | |
+ BlockLiteral *block_ptr_handler; | |
+ BlockLiteral block_handler; | |
+ block_handler = new BlockLiteral (); | |
+ block_ptr_handler = &block_handler; | |
+ block_handler.SetupBlockUnsafe (Trampolines.SDActionArity1V0.Handler, handler); | |
+ if (IsDirectBinding) { | |
+ global::ObjCRuntime.Messaging.void_objc_msgSend_NativeHandle (this.Handle, Selector.GetHandle ("fetchLastDisconnectErrorWithCompletionHandler:"), (IntPtr) block_ptr_handler); | |
+ } else { | |
+ global::ObjCRuntime.Messaging.void_objc_msgSendSuper_NativeHandle (this.SuperHandle, Selector.GetHandle ("fetchLastDisconnectErrorWithCompletionHandler:"), (IntPtr) block_ptr_handler); | |
+ } | |
+ block_ptr_handler->CleanupBlock (); | |
+ #endif | |
+ } | |
+ [UnsupportedOSPlatform ("tvos")] | |
+ [SupportedOSPlatform ("macos13.0")] | |
+ [SupportedOSPlatform ("ios16.0")] | |
+ [SupportedOSPlatform ("maccatalyst16.0")] | |
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)] | |
+ public unsafe virtual Task FetchLastDisconnectErrorAsync () | |
+ { | |
+ var tcs = new TaskCompletionSource<bool> (); | |
+ FetchLastDisconnectError((obj_) => { | |
+ if (obj_ != null) | |
+ tcs.SetException (new NSErrorException(obj_)); | |
+ else | |
+ tcs.SetResult (true); | |
+ }); | |
+ return tcs.Task; | |
+ } | |
[Export ("startVPNTunnelAndReturnError:")] | |
[SupportedOSPlatform ("ios8.0")] | |
[SupportedOSPlatform ("macos10.10")] | |
diff --git a/new/dotnet/ios/generated-sources/NetworkExtension/NEVpnConnectionError.g.cs b/new/dotnet/ios/generated-sources/NetworkExtension/NEVpnConnectionError.g.cs | |
new file mode 100644 | |
index 0000000..c9e6a14 | |
--- /dev/null | |
+++ b/new/dotnet/ios/generated-sources/NetworkExtension/NEVpnConnectionError.g.cs | |
@@ -0,0 +1,93 @@ | |
+// | |
+// Auto-generated from generator.cs, do not edit | |
+// | |
+// We keep references to objects, so warning 414 is expected | |
+#pragma warning disable 414 | |
+using System; | |
+using System.Drawing; | |
+using System.Diagnostics; | |
+using System.ComponentModel; | |
+using System.Threading.Tasks; | |
+using System.Runtime.Versioning; | |
+using System.Runtime.InteropServices; | |
+using System.Diagnostics.CodeAnalysis; | |
+using UIKit; | |
+using GLKit; | |
+using Metal; | |
+using CoreML; | |
+using MapKit; | |
+using Photos; | |
+using ModelIO; | |
+using Network; | |
+using SceneKit; | |
+using Contacts; | |
+using Security; | |
+using Messages; | |
+using AudioUnit; | |
+using CoreVideo; | |
+using CoreMedia; | |
+using QuickLook; | |
+using CoreImage; | |
+using SpriteKit; | |
+using Foundation; | |
+using CoreMotion; | |
+using ObjCRuntime; | |
+using AddressBook; | |
+using MediaPlayer; | |
+using GameplayKit; | |
+using CoreGraphics; | |
+using CoreLocation; | |
+using AVFoundation; | |
+using NewsstandKit; | |
+using FileProvider; | |
+using CoreAnimation; | |
+using CoreFoundation; | |
+using NetworkExtension; | |
+using MetalPerformanceShadersGraph; | |
+#nullable enable | |
+#if !NET | |
+using NativeHandle = System.IntPtr; | |
+#endif | |
+namespace NetworkExtension { | |
+ [UnsupportedOSPlatform ("tvos")] | |
+ [SupportedOSPlatform ("macos13.0")] | |
+ [SupportedOSPlatform ("ios16.0")] | |
+ [SupportedOSPlatform ("maccatalyst16.0")] | |
+ [Native] | |
+ public enum NEVpnConnectionError : long { | |
+ Overslept = 1, | |
+ NoNetworkAvailable = 2, | |
+ UnrecoverableNetworkChange = 3, | |
+ ConfigurationFailed = 4, | |
+ ServerAddressResolutionFailed = 5, | |
+ ServerNotResponding = 6, | |
+ ServerDead = 7, | |
+ AuthenticationFailed = 8, | |
+ ClientCertificateInvalid = 9, | |
+ ClientCertificateNotYetValid = 10, | |
+ ClientCertificateExpired = 11, | |
+ PluginFailed = 12, | |
+ ConfigurationNotFound = 13, | |
+ PluginDisabled = 14, | |
+ NegotiationFailed = 15, | |
+ ServerDisconnected = 16, | |
+ ServerCertificateInvalid = 17, | |
+ ServerCertificateNotYetValid = 18, | |
+ ServerCertificateExpired = 19, | |
+ } | |
+ [UnsupportedOSPlatform ("tvos")] | |
+ [SupportedOSPlatform ("macos13.0")] | |
+ [SupportedOSPlatform ("ios16.0")] | |
+ [SupportedOSPlatform ("maccatalyst16.0")] | |
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)] | |
+ static public partial class NEVpnConnectionErrorExtensions { | |
+ [Field ("NEVPNConnectionErrorDomain", "NetworkExtension")] | |
+ static NSString? _domain; | |
+ public static NSString? GetDomain (this NEVpnConnectionError self) | |
+ { | |
+ if (_domain is null) | |
+ _domain = Dlfcn.GetStringConstant (Libraries.NetworkExtension.Handle, "NEVPNConnectionErrorDomain"); | |
+ return _domain; | |
+ } | |
+ } | |
+} | |
diff --git a/old/dotnet/maccatalyst/generated-sources/NetworkExtension/NEDnsOverHttpsSettings.g.cs b/new/dotnet/maccatalyst/generated-sources/NetworkExtension/NEDnsOverHttpsSettings.g.cs | |
index 77805ad..1b9ec40 100644 | |
--- a/old/dotnet/maccatalyst/generated-sources/NetworkExtension/NEDnsOverHttpsSettings.g.cs | |
+++ b/new/dotnet/maccatalyst/generated-sources/NetworkExtension/NEDnsOverHttpsSettings.g.cs | |
@@ -95,6 +95,40 @@ namespace NetworkExtension { | |
{ | |
} | |
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)] | |
+ [UnsupportedOSPlatform ("tvos")] | |
+ [SupportedOSPlatform ("macos13.0")] | |
+ [SupportedOSPlatform ("ios16.0")] | |
+ [SupportedOSPlatform ("maccatalyst16.0")] | |
+ public virtual NSData? IdentityReference { | |
+ [Export ("identityReference", ArgumentSemantic.Copy)] | |
+ [UnsupportedOSPlatform ("tvos")] | |
+ [SupportedOSPlatform ("macos11.0")] | |
+ [SupportedOSPlatform ("ios14.0")] | |
+ [SupportedOSPlatform ("maccatalyst14.0")] | |
+ get { | |
+ NSData? ret; | |
+ if (IsDirectBinding) { | |
+ ret = Runtime.GetNSObject<NSData> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend (this.Handle, Selector.GetHandle ("identityReference")))!; | |
+ } else { | |
+ ret = Runtime.GetNSObject<NSData> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSendSuper (this.SuperHandle, Selector.GetHandle ("identityReference")))!; | |
+ } | |
+ return ret!; | |
+ } | |
+ [Export ("setIdentityReference:", ArgumentSemantic.Copy)] | |
+ [UnsupportedOSPlatform ("tvos")] | |
+ [SupportedOSPlatform ("macos11.0")] | |
+ [SupportedOSPlatform ("ios14.0")] | |
+ [SupportedOSPlatform ("maccatalyst14.0")] | |
+ set { | |
+ var value__handle__ = value.GetHandle (); | |
+ if (IsDirectBinding) { | |
+ global::ObjCRuntime.Messaging.void_objc_msgSend_NativeHandle (this.Handle, Selector.GetHandle ("setIdentityReference:"), value__handle__); | |
+ } else { | |
+ global::ObjCRuntime.Messaging.void_objc_msgSendSuper_NativeHandle (this.SuperHandle, Selector.GetHandle ("setIdentityReference:"), value__handle__); | |
+ } | |
+ } | |
+ } | |
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)] | |
[UnsupportedOSPlatform ("tvos")] | |
[SupportedOSPlatform ("macos11.0")] | |
diff --git a/old/dotnet/maccatalyst/generated-sources/NetworkExtension/NEDnsOverTlsSettings.g.cs b/new/dotnet/maccatalyst/generated-sources/NetworkExtension/NEDnsOverTlsSettings.g.cs | |
index b2f4fa5..2cf9789 100644 | |
--- a/old/dotnet/maccatalyst/generated-sources/NetworkExtension/NEDnsOverTlsSettings.g.cs | |
+++ b/new/dotnet/maccatalyst/generated-sources/NetworkExtension/NEDnsOverTlsSettings.g.cs | |
@@ -95,6 +95,40 @@ namespace NetworkExtension { | |
{ | |
} | |
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)] | |
+ [UnsupportedOSPlatform ("tvos")] | |
+ [SupportedOSPlatform ("macos13.0")] | |
+ [SupportedOSPlatform ("ios16.0")] | |
+ [SupportedOSPlatform ("maccatalyst16.0")] | |
+ public virtual NSData? IdentityReference { | |
+ [Export ("identityReference", ArgumentSemantic.Copy)] | |
+ [UnsupportedOSPlatform ("tvos")] | |
+ [SupportedOSPlatform ("macos11.0")] | |
+ [SupportedOSPlatform ("ios14.0")] | |
+ [SupportedOSPlatform ("maccatalyst14.0")] | |
+ get { | |
+ NSData? ret; | |
+ if (IsDirectBinding) { | |
+ ret = Runtime.GetNSObject<NSData> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend (this.Handle, Selector.GetHandle ("identityReference")))!; | |
+ } else { | |
+ ret = Runtime.GetNSObject<NSData> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSendSuper (this.SuperHandle, Selector.GetHandle ("identityReference")))!; | |
+ } | |
+ return ret!; | |
+ } | |
+ [Export ("setIdentityReference:", ArgumentSemantic.Copy)] | |
+ [UnsupportedOSPlatform ("tvos")] | |
+ [SupportedOSPlatform ("macos11.0")] | |
+ [SupportedOSPlatform ("ios14.0")] | |
+ [SupportedOSPlatform ("maccatalyst14.0")] | |
+ set { | |
+ var value__handle__ = value.GetHandle (); | |
+ if (IsDirectBinding) { | |
+ global::ObjCRuntime.Messaging.void_objc_msgSend_NativeHandle (this.Handle, Selector.GetHandle ("setIdentityReference:"), value__handle__); | |
+ } else { | |
+ global::ObjCRuntime.Messaging.void_objc_msgSendSuper_NativeHandle (this.SuperHandle, Selector.GetHandle ("setIdentityReference:"), value__handle__); | |
+ } | |
+ } | |
+ } | |
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)] | |
[UnsupportedOSPlatform ("tvos")] | |
[SupportedOSPlatform ("macos11.0")] | |
diff --git a/old/dotnet/maccatalyst/generated-sources/NetworkExtension/NEVpnConnection.g.cs b/new/dotnet/maccatalyst/generated-sources/NetworkExtension/NEVpnConnection.g.cs | |
index fa85f8a..443e5b7 100644 | |
--- a/old/dotnet/maccatalyst/generated-sources/NetworkExtension/NEVpnConnection.g.cs | |
+++ b/new/dotnet/maccatalyst/generated-sources/NetworkExtension/NEVpnConnection.g.cs | |
@@ -81,6 +81,44 @@ namespace NetworkExtension { | |
{ | |
} | |
+ [Export ("fetchLastDisconnectErrorWithCompletionHandler:")] | |
+ [UnsupportedOSPlatform ("tvos")] | |
+ [SupportedOSPlatform ("macos13.0")] | |
+ [SupportedOSPlatform ("ios16.0")] | |
+ [SupportedOSPlatform ("maccatalyst16.0")] | |
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)] | |
+ public unsafe virtual void FetchLastDisconnectError ([BlockProxy (typeof (ObjCRuntime.Trampolines.NIDActionArity1V15))]global::System.Action<NSError> handler) | |
+ { | |
+ if (handler is null) | |
+ ObjCRuntime.ThrowHelper.ThrowArgumentNullException (nameof (handler)); | |
+ BlockLiteral *block_ptr_handler; | |
+ BlockLiteral block_handler; | |
+ block_handler = new BlockLiteral (); | |
+ block_ptr_handler = &block_handler; | |
+ block_handler.SetupBlockUnsafe (Trampolines.SDActionArity1V15.Handler, handler); | |
+ if (IsDirectBinding) { | |
+ global::ObjCRuntime.Messaging.void_objc_msgSend_NativeHandle (this.Handle, Selector.GetHandle ("fetchLastDisconnectErrorWithCompletionHandler:"), (IntPtr) block_ptr_handler); | |
+ } else { | |
+ global::ObjCRuntime.Messaging.void_objc_msgSendSuper_NativeHandle (this.SuperHandle, Selector.GetHandle ("fetchLastDisconnectErrorWithCompletionHandler:"), (IntPtr) block_ptr_handler); | |
+ } | |
+ block_ptr_handler->CleanupBlock (); | |
+ } | |
+ [UnsupportedOSPlatform ("tvos")] | |
+ [SupportedOSPlatform ("macos13.0")] | |
+ [SupportedOSPlatform ("ios16.0")] | |
+ [SupportedOSPlatform ("maccatalyst16.0")] | |
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)] | |
+ public unsafe virtual Task FetchLastDisconnectErrorAsync () | |
+ { | |
+ var tcs = new TaskCompletionSource<bool> (); | |
+ FetchLastDisconnectError((obj_) => { | |
+ if (obj_ != null) | |
+ tcs.SetException (new NSErrorException(obj_)); | |
+ else | |
+ tcs.SetResult (true); | |
+ }); | |
+ return tcs.Task; | |
+ } | |
[Export ("startVPNTunnelAndReturnError:")] | |
[SupportedOSPlatform ("ios8.0")] | |
[SupportedOSPlatform ("macos10.10")] | |
diff --git a/new/dotnet/maccatalyst/generated-sources/NetworkExtension/NEVpnConnectionError.g.cs b/new/dotnet/maccatalyst/generated-sources/NetworkExtension/NEVpnConnectionError.g.cs | |
new file mode 100644 | |
index 0000000..f32cff2 | |
--- /dev/null | |
+++ b/new/dotnet/maccatalyst/generated-sources/NetworkExtension/NEVpnConnectionError.g.cs | |
@@ -0,0 +1,93 @@ | |
+// | |
+// Auto-generated from generator.cs, do not edit | |
+// | |
+// We keep references to objects, so warning 414 is expected | |
+#pragma warning disable 414 | |
+using System; | |
+using System.Drawing; | |
+using System.Diagnostics; | |
+using System.ComponentModel; | |
+using System.Threading.Tasks; | |
+using System.Runtime.Versioning; | |
+using System.Runtime.InteropServices; | |
+using System.Diagnostics.CodeAnalysis; | |
+using UIKit; | |
+using Metal; | |
+using CoreML; | |
+using AppKit; | |
+using MapKit; | |
+using Photos; | |
+using ModelIO; | |
+using Network; | |
+using SceneKit; | |
+using Contacts; | |
+using Security; | |
+using CloudKit; | |
+using Messages; | |
+using AudioUnit; | |
+using CoreVideo; | |
+using CoreMedia; | |
+using QuickLook; | |
+using CoreImage; | |
+using SpriteKit; | |
+using Foundation; | |
+using CoreMotion; | |
+using ObjCRuntime; | |
+using AddressBook; | |
+using MediaPlayer; | |
+using GameplayKit; | |
+using CoreGraphics; | |
+using CoreLocation; | |
+using AVFoundation; | |
+using FileProvider; | |
+using CoreAnimation; | |
+using CoreFoundation; | |
+using NetworkExtension; | |
+using MetalPerformanceShadersGraph; | |
+#nullable enable | |
+#if !NET | |
+using NativeHandle = System.IntPtr; | |
+#endif | |
+namespace NetworkExtension { | |
+ [UnsupportedOSPlatform ("tvos")] | |
+ [SupportedOSPlatform ("macos13.0")] | |
+ [SupportedOSPlatform ("ios16.0")] | |
+ [SupportedOSPlatform ("maccatalyst16.0")] | |
+ [Native] | |
+ public enum NEVpnConnectionError : long { | |
+ Overslept = 1, | |
+ NoNetworkAvailable = 2, | |
+ UnrecoverableNetworkChange = 3, | |
+ ConfigurationFailed = 4, | |
+ ServerAddressResolutionFailed = 5, | |
+ ServerNotResponding = 6, | |
+ ServerDead = 7, | |
+ AuthenticationFailed = 8, | |
+ ClientCertificateInvalid = 9, | |
+ ClientCertificateNotYetValid = 10, | |
+ ClientCertificateExpired = 11, | |
+ PluginFailed = 12, | |
+ ConfigurationNotFound = 13, | |
+ PluginDisabled = 14, | |
+ NegotiationFailed = 15, | |
+ ServerDisconnected = 16, | |
+ ServerCertificateInvalid = 17, | |
+ ServerCertificateNotYetValid = 18, | |
+ ServerCertificateExpired = 19, | |
+ } | |
+ [UnsupportedOSPlatform ("tvos")] | |
+ [SupportedOSPlatform ("macos13.0")] | |
+ [SupportedOSPlatform ("ios16.0")] | |
+ [SupportedOSPlatform ("maccatalyst16.0")] | |
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)] | |
+ static public partial class NEVpnConnectionErrorExtensions { | |
+ [Field ("NEVPNConnectionErrorDomain", "NetworkExtension")] | |
+ static NSString? _domain; | |
+ public static NSString? GetDomain (this NEVpnConnectionError self) | |
+ { | |
+ if (_domain is null) | |
+ _domain = Dlfcn.GetStringConstant (Libraries.NetworkExtension.Handle, "NEVPNConnectionErrorDomain"); | |
+ return _domain; | |
+ } | |
+ } | |
+} | |
diff --git a/old/dotnet/macos/generated-sources/NetworkExtension/NEDnsOverHttpsSettings.g.cs b/new/dotnet/macos/generated-sources/NetworkExtension/NEDnsOverHttpsSettings.g.cs | |
index 481f9a0..02f543b 100644 | |
--- a/old/dotnet/macos/generated-sources/NetworkExtension/NEDnsOverHttpsSettings.g.cs | |
+++ b/new/dotnet/macos/generated-sources/NetworkExtension/NEDnsOverHttpsSettings.g.cs | |
@@ -50,10 +50,16 @@ namespace NetworkExtension { | |
[SupportedOSPlatform ("ios14.0")] | |
[SupportedOSPlatform ("maccatalyst14.0")] | |
public unsafe partial class NEDnsOverHttpsSettings : NEDnsSettings { | |
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)] | |
+ const string selIdentityReference = "identityReference"; | |
+ static readonly NativeHandle selIdentityReferenceHandle = Selector.GetHandle ("identityReference"); | |
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)] | |
const string selServerURL = "serverURL"; | |
static readonly NativeHandle selServerURLHandle = Selector.GetHandle ("serverURL"); | |
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)] | |
+ const string selSetIdentityReference_ = "setIdentityReference:"; | |
+ static readonly NativeHandle selSetIdentityReference_Handle = Selector.GetHandle ("setIdentityReference:"); | |
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)] | |
const string selSetServerURL_ = "setServerURL:"; | |
static readonly NativeHandle selSetServerURL_Handle = Selector.GetHandle ("setServerURL:"); | |
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)] | |
@@ -96,6 +102,40 @@ namespace NetworkExtension { | |
{ | |
} | |
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)] | |
+ [UnsupportedOSPlatform ("tvos")] | |
+ [SupportedOSPlatform ("macos13.0")] | |
+ [SupportedOSPlatform ("ios16.0")] | |
+ [SupportedOSPlatform ("maccatalyst16.0")] | |
+ public virtual NSData? IdentityReference { | |
+ [Export ("identityReference", ArgumentSemantic.Copy)] | |
+ [UnsupportedOSPlatform ("tvos")] | |
+ [SupportedOSPlatform ("macos11.0")] | |
+ [SupportedOSPlatform ("ios14.0")] | |
+ [SupportedOSPlatform ("maccatalyst14.0")] | |
+ get { | |
+ NSData? ret; | |
+ if (IsDirectBinding) { | |
+ ret = Runtime.GetNSObject<NSData> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend (this.Handle, selIdentityReferenceHandle))!; | |
+ } else { | |
+ ret = Runtime.GetNSObject<NSData> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSendSuper (this.SuperHandle, selIdentityReferenceHandle))!; | |
+ } | |
+ return ret!; | |
+ } | |
+ [Export ("setIdentityReference:", ArgumentSemantic.Copy)] | |
+ [UnsupportedOSPlatform ("tvos")] | |
+ [SupportedOSPlatform ("macos11.0")] | |
+ [SupportedOSPlatform ("ios14.0")] | |
+ [SupportedOSPlatform ("maccatalyst14.0")] | |
+ set { | |
+ var value__handle__ = value.GetHandle (); | |
+ if (IsDirectBinding) { | |
+ global::ObjCRuntime.Messaging.void_objc_msgSend_NativeHandle (this.Handle, selSetIdentityReference_Handle, value__handle__); | |
+ } else { | |
+ global::ObjCRuntime.Messaging.void_objc_msgSendSuper_NativeHandle (this.SuperHandle, selSetIdentityReference_Handle, value__handle__); | |
+ } | |
+ } | |
+ } | |
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)] | |
[UnsupportedOSPlatform ("tvos")] | |
[SupportedOSPlatform ("macos11.0")] | |
diff --git a/old/dotnet/macos/generated-sources/NetworkExtension/NEDnsOverTlsSettings.g.cs b/new/dotnet/macos/generated-sources/NetworkExtension/NEDnsOverTlsSettings.g.cs | |
index e8aa81c..4604eda 100644 | |
--- a/old/dotnet/macos/generated-sources/NetworkExtension/NEDnsOverTlsSettings.g.cs | |
+++ b/new/dotnet/macos/generated-sources/NetworkExtension/NEDnsOverTlsSettings.g.cs | |
@@ -50,10 +50,16 @@ namespace NetworkExtension { | |
[SupportedOSPlatform ("ios14.0")] | |
[SupportedOSPlatform ("maccatalyst14.0")] | |
public unsafe partial class NEDnsOverTlsSettings : NEDnsSettings { | |
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)] | |
+ const string selIdentityReference = "identityReference"; | |
+ static readonly NativeHandle selIdentityReferenceHandle = Selector.GetHandle ("identityReference"); | |
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)] | |
const string selServerName = "serverName"; | |
static readonly NativeHandle selServerNameHandle = Selector.GetHandle ("serverName"); | |
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)] | |
+ const string selSetIdentityReference_ = "setIdentityReference:"; | |
+ static readonly NativeHandle selSetIdentityReference_Handle = Selector.GetHandle ("setIdentityReference:"); | |
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)] | |
const string selSetServerName_ = "setServerName:"; | |
static readonly NativeHandle selSetServerName_Handle = Selector.GetHandle ("setServerName:"); | |
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)] | |
@@ -96,6 +102,40 @@ namespace NetworkExtension { | |
{ | |
} | |
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)] | |
+ [UnsupportedOSPlatform ("tvos")] | |
+ [SupportedOSPlatform ("macos13.0")] | |
+ [SupportedOSPlatform ("ios16.0")] | |
+ [SupportedOSPlatform ("maccatalyst16.0")] | |
+ public virtual NSData? IdentityReference { | |
+ [Export ("identityReference", ArgumentSemantic.Copy)] | |
+ [UnsupportedOSPlatform ("tvos")] | |
+ [SupportedOSPlatform ("macos11.0")] | |
+ [SupportedOSPlatform ("ios14.0")] | |
+ [SupportedOSPlatform ("maccatalyst14.0")] | |
+ get { | |
+ NSData? ret; | |
+ if (IsDirectBinding) { | |
+ ret = Runtime.GetNSObject<NSData> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend (this.Handle, selIdentityReferenceHandle))!; | |
+ } else { | |
+ ret = Runtime.GetNSObject<NSData> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSendSuper (this.SuperHandle, selIdentityReferenceHandle))!; | |
+ } | |
+ return ret!; | |
+ } | |
+ [Export ("setIdentityReference:", ArgumentSemantic.Copy)] | |
+ [UnsupportedOSPlatform ("tvos")] | |
+ [SupportedOSPlatform ("macos11.0")] | |
+ [SupportedOSPlatform ("ios14.0")] | |
+ [SupportedOSPlatform ("maccatalyst14.0")] | |
+ set { | |
+ var value__handle__ = value.GetHandle (); | |
+ if (IsDirectBinding) { | |
+ global::ObjCRuntime.Messaging.void_objc_msgSend_NativeHandle (this.Handle, selSetIdentityReference_Handle, value__handle__); | |
+ } else { | |
+ global::ObjCRuntime.Messaging.void_objc_msgSendSuper_NativeHandle (this.SuperHandle, selSetIdentityReference_Handle, value__handle__); | |
+ } | |
+ } | |
+ } | |
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)] | |
[UnsupportedOSPlatform ("tvos")] | |
[SupportedOSPlatform ("macos11.0")] | |
diff --git a/new/dotnet/macos/generated-sources/NetworkExtension/NEEthernetTunnelNetworkSettings.g.cs b/new/dotnet/macos/generated-sources/NetworkExtension/NEEthernetTunnelNetworkSettings.g.cs | |
new file mode 100644 | |
index 0000000..33ad009 | |
--- /dev/null | |
+++ b/new/dotnet/macos/generated-sources/NetworkExtension/NEEthernetTunnelNetworkSettings.g.cs | |
@@ -0,0 +1,142 @@ | |
+// | |
+// Auto-generated from generator.cs, do not edit | |
+// | |
+// We keep references to objects, so warning 414 is expected | |
+#pragma warning disable 414 | |
+using System; | |
+using System.Drawing; | |
+using System.Diagnostics; | |
+using System.ComponentModel; | |
+using System.Threading.Tasks; | |
+using System.Runtime.Versioning; | |
+using System.Runtime.InteropServices; | |
+using System.Diagnostics.CodeAnalysis; | |
+using Metal; | |
+using CoreML; | |
+using OpenGL; | |
+using AppKit; | |
+using Photos; | |
+using ModelIO; | |
+using Network; | |
+using SceneKit; | |
+using Contacts; | |
+using Security; | |
+using CloudKit; | |
+using AudioUnit; | |
+using CoreVideo; | |
+using CoreMedia; | |
+using CoreImage; | |
+using SpriteKit; | |
+using Foundation; | |
+using ObjCRuntime; | |
+using MediaPlayer; | |
+using GameplayKit; | |
+using CoreGraphics; | |
+using CoreLocation; | |
+using AVFoundation; | |
+using FileProvider; | |
+using CoreAnimation; | |
+using CoreFoundation; | |
+using NetworkExtension; | |
+using MetalPerformanceShadersGraph; | |
+#nullable enable | |
+#if !NET | |
+using NativeHandle = System.IntPtr; | |
+#endif | |
+namespace NetworkExtension { | |
+ [Register("NEEthernetTunnelNetworkSettings", true)] | |
+ [UnsupportedOSPlatform ("tvos")] | |
+ [UnsupportedOSPlatform ("ios")] | |
+ [SupportedOSPlatform ("macos13.0")] | |
+ [UnsupportedOSPlatform ("maccatalyst")] | |
+ public unsafe partial class NEEthernetTunnelNetworkSettings : NEPacketTunnelNetworkSettings { | |
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)] | |
+ const string selEthernetAddress = "ethernetAddress"; | |
+ static readonly NativeHandle selEthernetAddressHandle = Selector.GetHandle ("ethernetAddress"); | |
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)] | |
+ const string selInitWithTunnelRemoteAddress_EthernetAddress_Mtu_ = "initWithTunnelRemoteAddress:ethernetAddress:mtu:"; | |
+ static readonly NativeHandle selInitWithTunnelRemoteAddress_EthernetAddress_Mtu_Handle = Selector.GetHandle ("initWithTunnelRemoteAddress:ethernetAddress:mtu:"); | |
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)] | |
+ static readonly NativeHandle class_ptr = Class.GetHandle ("NEEthernetTunnelNetworkSettings"); | |
+ public override NativeHandle ClassHandle { get { return class_ptr; } } | |
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)] | |
+ [EditorBrowsable (EditorBrowsableState.Advanced)] | |
+ [Export ("init")] | |
+ public NEEthernetTunnelNetworkSettings () : base (NSObjectFlag.Empty) | |
+ { | |
+ if (IsDirectBinding) { | |
+ InitializeHandle (global::ObjCRuntime.Messaging.IntPtr_objc_msgSend (this.Handle, global::ObjCRuntime.Selector.Init), "init"); | |
+ } else { | |
+ InitializeHandle (global::ObjCRuntime.Messaging.IntPtr_objc_msgSendSuper (this.SuperHandle, global::ObjCRuntime.Selector.Init), "init"); | |
+ } | |
+ } | |
+ | |
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)] | |
+ [DesignatedInitializer] | |
+ [EditorBrowsable (EditorBrowsableState.Advanced)] | |
+ [Export ("initWithCoder:")] | |
+ public NEEthernetTunnelNetworkSettings (NSCoder coder) : base (NSObjectFlag.Empty) | |
+ { | |
+ if (IsDirectBinding) { | |
+ InitializeHandle (global::ObjCRuntime.Messaging.IntPtr_objc_msgSend_IntPtr (this.Handle, Selector.InitWithCoder, coder.Handle), "initWithCoder:"); | |
+ } else { | |
+ InitializeHandle (global::ObjCRuntime.Messaging.IntPtr_objc_msgSendSuper_IntPtr (this.SuperHandle, Selector.InitWithCoder, coder.Handle), "initWithCoder:"); | |
+ } | |
+ } | |
+ | |
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)] | |
+ [EditorBrowsable (EditorBrowsableState.Advanced)] | |
+ protected NEEthernetTunnelNetworkSettings (NSObjectFlag t) : base (t) | |
+ { | |
+ } | |
+ | |
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)] | |
+ [EditorBrowsable (EditorBrowsableState.Advanced)] | |
+ protected internal NEEthernetTunnelNetworkSettings (NativeHandle handle) : base (handle) | |
+ { | |
+ } | |
+ | |
+ [Export ("initWithTunnelRemoteAddress:ethernetAddress:mtu:")] | |
+ [UnsupportedOSPlatform ("tvos")] | |
+ [UnsupportedOSPlatform ("ios")] | |
+ [UnsupportedOSPlatform ("maccatalyst")] | |
+ [SupportedOSPlatform ("macos13.0")] | |
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)] | |
+ public NEEthernetTunnelNetworkSettings (string address, string ethernetAddress, nint mtu) | |
+ : base (NSObjectFlag.Empty) | |
+ { | |
+ if (address is null) | |
+ ObjCRuntime.ThrowHelper.ThrowArgumentNullException (nameof (address)); | |
+ if (ethernetAddress is null) | |
+ ObjCRuntime.ThrowHelper.ThrowArgumentNullException (nameof (ethernetAddress)); | |
+ var nsaddress = CFString.CreateNative (address); | |
+ var nsethernetAddress = CFString.CreateNative (ethernetAddress); | |
+ if (IsDirectBinding) { | |
+ InitializeHandle (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle_NativeHandle_IntPtr (this.Handle, selInitWithTunnelRemoteAddress_EthernetAddress_Mtu_Handle, nsaddress, nsethernetAddress, mtu), "initWithTunnelRemoteAddress:ethernetAddress:mtu:"); | |
+ } else { | |
+ InitializeHandle (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSendSuper_NativeHandle_NativeHandle_IntPtr (this.SuperHandle, selInitWithTunnelRemoteAddress_EthernetAddress_Mtu_Handle, nsaddress, nsethernetAddress, mtu), "initWithTunnelRemoteAddress:ethernetAddress:mtu:"); | |
+ } | |
+ CFString.ReleaseNative (nsaddress); | |
+ CFString.ReleaseNative (nsethernetAddress); | |
+ } | |
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)] | |
+ [UnsupportedOSPlatform ("tvos")] | |
+ [UnsupportedOSPlatform ("ios")] | |
+ [UnsupportedOSPlatform ("maccatalyst")] | |
+ [SupportedOSPlatform ("macos13.0")] | |
+ public virtual string EthernetAddress { | |
+ [Export ("ethernetAddress")] | |
+ [UnsupportedOSPlatform ("tvos")] | |
+ [UnsupportedOSPlatform ("ios")] | |
+ [UnsupportedOSPlatform ("maccatalyst")] | |
+ [SupportedOSPlatform ("macos13.0")] | |
+ get { | |
+ if (IsDirectBinding) { | |
+ return CFString.FromHandle (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend (this.Handle, selEthernetAddressHandle))!; | |
+ } else { | |
+ return CFString.FromHandle (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSendSuper (this.SuperHandle, selEthernetAddressHandle))!; | |
+ } | |
+ } | |
+ } | |
+ } /* class NEEthernetTunnelNetworkSettings */ | |
+} | |
diff --git a/new/dotnet/macos/generated-sources/NetworkExtension/NEEthernetTunnelProvider.g.cs b/new/dotnet/macos/generated-sources/NetworkExtension/NEEthernetTunnelProvider.g.cs | |
new file mode 100644 | |
index 0000000..c03e372 | |
--- /dev/null | |
+++ b/new/dotnet/macos/generated-sources/NetworkExtension/NEEthernetTunnelProvider.g.cs | |
@@ -0,0 +1,81 @@ | |
+// | |
+// Auto-generated from generator.cs, do not edit | |
+// | |
+// We keep references to objects, so warning 414 is expected | |
+#pragma warning disable 414 | |
+using System; | |
+using System.Drawing; | |
+using System.Diagnostics; | |
+using System.ComponentModel; | |
+using System.Threading.Tasks; | |
+using System.Runtime.Versioning; | |
+using System.Runtime.InteropServices; | |
+using System.Diagnostics.CodeAnalysis; | |
+using Metal; | |
+using CoreML; | |
+using OpenGL; | |
+using AppKit; | |
+using Photos; | |
+using ModelIO; | |
+using Network; | |
+using SceneKit; | |
+using Contacts; | |
+using Security; | |
+using CloudKit; | |
+using AudioUnit; | |
+using CoreVideo; | |
+using CoreMedia; | |
+using CoreImage; | |
+using SpriteKit; | |
+using Foundation; | |
+using ObjCRuntime; | |
+using MediaPlayer; | |
+using GameplayKit; | |
+using CoreGraphics; | |
+using CoreLocation; | |
+using AVFoundation; | |
+using FileProvider; | |
+using CoreAnimation; | |
+using CoreFoundation; | |
+using NetworkExtension; | |
+using MetalPerformanceShadersGraph; | |
+#nullable enable | |
+#if !NET | |
+using NativeHandle = System.IntPtr; | |
+#endif | |
+namespace NetworkExtension { | |
+ [Register("NEEthernetTunnelProvider", true)] | |
+ [UnsupportedOSPlatform ("tvos")] | |
+ [UnsupportedOSPlatform ("ios")] | |
+ [SupportedOSPlatform ("macos13.0")] | |
+ [UnsupportedOSPlatform ("maccatalyst")] | |
+ public unsafe partial class NEEthernetTunnelProvider : NEPacketTunnelProvider { | |
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)] | |
+ static readonly NativeHandle class_ptr = Class.GetHandle ("NEEthernetTunnelProvider"); | |
+ public override NativeHandle ClassHandle { get { return class_ptr; } } | |
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)] | |
+ [EditorBrowsable (EditorBrowsableState.Advanced)] | |
+ [Export ("init")] | |
+ public NEEthernetTunnelProvider () : base (NSObjectFlag.Empty) | |
+ { | |
+ if (IsDirectBinding) { | |
+ InitializeHandle (global::ObjCRuntime.Messaging.IntPtr_objc_msgSend (this.Handle, global::ObjCRuntime.Selector.Init), "init"); | |
+ } else { | |
+ InitializeHandle (global::ObjCRuntime.Messaging.IntPtr_objc_msgSendSuper (this.SuperHandle, global::ObjCRuntime.Selector.Init), "init"); | |
+ } | |
+ } | |
+ | |
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)] | |
+ [EditorBrowsable (EditorBrowsableState.Advanced)] | |
+ protected NEEthernetTunnelProvider (NSObjectFlag t) : base (t) | |
+ { | |
+ } | |
+ | |
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)] | |
+ [EditorBrowsable (EditorBrowsableState.Advanced)] | |
+ protected internal NEEthernetTunnelProvider (NativeHandle handle) : base (handle) | |
+ { | |
+ } | |
+ | |
+ } /* class NEEthernetTunnelProvider */ | |
+} | |
diff --git a/old/dotnet/macos/generated-sources/NetworkExtension/NEIPv4Settings.g.cs b/new/dotnet/macos/generated-sources/NetworkExtension/NEIPv4Settings.g.cs | |
index f3783e7..d153c98 100644 | |
--- a/old/dotnet/macos/generated-sources/NetworkExtension/NEIPv4Settings.g.cs | |
+++ b/new/dotnet/macos/generated-sources/NetworkExtension/NEIPv4Settings.g.cs | |
@@ -71,12 +71,18 @@ namespace NetworkExtension { | |
const string selInitWithCoder_ = "initWithCoder:"; | |
static readonly NativeHandle selInitWithCoder_Handle = Selector.GetHandle ("initWithCoder:"); | |
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)] | |
+ const string selRouter = "router"; | |
+ static readonly NativeHandle selRouterHandle = Selector.GetHandle ("router"); | |
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)] | |
const string selSetExcludedRoutes_ = "setExcludedRoutes:"; | |
static readonly NativeHandle selSetExcludedRoutes_Handle = Selector.GetHandle ("setExcludedRoutes:"); | |
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)] | |
const string selSetIncludedRoutes_ = "setIncludedRoutes:"; | |
static readonly NativeHandle selSetIncludedRoutes_Handle = Selector.GetHandle ("setIncludedRoutes:"); | |
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)] | |
+ const string selSetRouter_ = "setRouter:"; | |
+ static readonly NativeHandle selSetRouter_Handle = Selector.GetHandle ("setRouter:"); | |
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)] | |
const string selSubnetMasks = "subnetMasks"; | |
static readonly NativeHandle selSubnetMasksHandle = Selector.GetHandle ("subnetMasks"); | |
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)] | |
@@ -248,6 +254,39 @@ namespace NetworkExtension { | |
} | |
} | |
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)] | |
+ [UnsupportedOSPlatform ("tvos")] | |
+ [UnsupportedOSPlatform ("ios")] | |
+ [SupportedOSPlatform ("macos13.0")] | |
+ [UnsupportedOSPlatform ("maccatalyst")] | |
+ public virtual string? Router { | |
+ [Export ("router")] | |
+ [UnsupportedOSPlatform ("tvos")] | |
+ [UnsupportedOSPlatform ("ios")] | |
+ [UnsupportedOSPlatform ("maccatalyst")] | |
+ [SupportedOSPlatform ("macos10.11")] | |
+ get { | |
+ if (IsDirectBinding) { | |
+ return CFString.FromHandle (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend (this.Handle, selRouterHandle))!; | |
+ } else { | |
+ return CFString.FromHandle (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSendSuper (this.SuperHandle, selRouterHandle))!; | |
+ } | |
+ } | |
+ [Export ("setRouter:")] | |
+ [UnsupportedOSPlatform ("tvos")] | |
+ [UnsupportedOSPlatform ("ios")] | |
+ [UnsupportedOSPlatform ("maccatalyst")] | |
+ [SupportedOSPlatform ("macos10.11")] | |
+ set { | |
+ var nsvalue = CFString.CreateNative (value); | |
+ if (IsDirectBinding) { | |
+ global::ObjCRuntime.Messaging.void_objc_msgSend_NativeHandle (this.Handle, selSetRouter_Handle, nsvalue); | |
+ } else { | |
+ global::ObjCRuntime.Messaging.void_objc_msgSendSuper_NativeHandle (this.SuperHandle, selSetRouter_Handle, nsvalue); | |
+ } | |
+ CFString.ReleaseNative (nsvalue); | |
+ } | |
+ } | |
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)] | |
[SupportedOSPlatform ("ios9.0")] | |
[SupportedOSPlatform ("macos10.11")] | |
[SupportedOSPlatform ("maccatalyst9.0")] | |
diff --git a/old/dotnet/macos/generated-sources/NetworkExtension/NEVpnConnection.g.cs b/new/dotnet/macos/generated-sources/NetworkExtension/NEVpnConnection.g.cs | |
index f288abb..04f2cfe 100644 | |
--- a/old/dotnet/macos/generated-sources/NetworkExtension/NEVpnConnection.g.cs | |
+++ b/new/dotnet/macos/generated-sources/NetworkExtension/NEVpnConnection.g.cs | |
@@ -53,6 +53,9 @@ namespace NetworkExtension { | |
const string selConnectedDate = "connectedDate"; | |
static readonly NativeHandle selConnectedDateHandle = Selector.GetHandle ("connectedDate"); | |
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)] | |
+ const string selFetchLastDisconnectErrorWithCompletionHandler_ = "fetchLastDisconnectErrorWithCompletionHandler:"; | |
+ static readonly NativeHandle selFetchLastDisconnectErrorWithCompletionHandler_Handle = Selector.GetHandle ("fetchLastDisconnectErrorWithCompletionHandler:"); | |
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)] | |
const string selManager = "manager"; | |
static readonly NativeHandle selManagerHandle = Selector.GetHandle ("manager"); | |
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)] | |
@@ -94,6 +97,44 @@ namespace NetworkExtension { | |
{ | |
} | |
+ [Export ("fetchLastDisconnectErrorWithCompletionHandler:")] | |
+ [UnsupportedOSPlatform ("tvos")] | |
+ [SupportedOSPlatform ("macos13.0")] | |
+ [SupportedOSPlatform ("ios16.0")] | |
+ [SupportedOSPlatform ("maccatalyst16.0")] | |
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)] | |
+ public unsafe virtual void FetchLastDisconnectError ([BlockProxy (typeof (ObjCRuntime.Trampolines.NIDActionArity1V16))]global::System.Action<NSError> handler) | |
+ { | |
+ if (handler is null) | |
+ ObjCRuntime.ThrowHelper.ThrowArgumentNullException (nameof (handler)); | |
+ BlockLiteral *block_ptr_handler; | |
+ BlockLiteral block_handler; | |
+ block_handler = new BlockLiteral (); | |
+ block_ptr_handler = &block_handler; | |
+ block_handler.SetupBlockUnsafe (Trampolines.SDActionArity1V16.Handler, handler); | |
+ if (IsDirectBinding) { | |
+ global::ObjCRuntime.Messaging.void_objc_msgSend_NativeHandle (this.Handle, selFetchLastDisconnectErrorWithCompletionHandler_Handle, (IntPtr) block_ptr_handler); | |
+ } else { | |
+ global::ObjCRuntime.Messaging.void_objc_msgSendSuper_NativeHandle (this.SuperHandle, selFetchLastDisconnectErrorWithCompletionHandler_Handle, (IntPtr) block_ptr_handler); | |
+ } | |
+ block_ptr_handler->CleanupBlock (); | |
+ } | |
+ [UnsupportedOSPlatform ("tvos")] | |
+ [SupportedOSPlatform ("macos13.0")] | |
+ [SupportedOSPlatform ("ios16.0")] | |
+ [SupportedOSPlatform ("maccatalyst16.0")] | |
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)] | |
+ public unsafe virtual Task FetchLastDisconnectErrorAsync () | |
+ { | |
+ var tcs = new TaskCompletionSource<bool> (); | |
+ FetchLastDisconnectError((obj_) => { | |
+ if (obj_ != null) | |
+ tcs.SetException (new NSErrorException(obj_)); | |
+ else | |
+ tcs.SetResult (true); | |
+ }); | |
+ return tcs.Task; | |
+ } | |
[Export ("startVPNTunnelAndReturnError:")] | |
[SupportedOSPlatform ("ios8.0")] | |
[SupportedOSPlatform ("macos10.10")] | |
diff --git a/new/dotnet/macos/generated-sources/NetworkExtension/NEVpnConnectionError.g.cs b/new/dotnet/macos/generated-sources/NetworkExtension/NEVpnConnectionError.g.cs | |
new file mode 100644 | |
index 0000000..386fb00 | |
--- /dev/null | |
+++ b/new/dotnet/macos/generated-sources/NetworkExtension/NEVpnConnectionError.g.cs | |
@@ -0,0 +1,88 @@ | |
+// | |
+// Auto-generated from generator.cs, do not edit | |
+// | |
+// We keep references to objects, so warning 414 is expected | |
+#pragma warning disable 414 | |
+using System; | |
+using System.Drawing; | |
+using System.Diagnostics; | |
+using System.ComponentModel; | |
+using System.Threading.Tasks; | |
+using System.Runtime.Versioning; | |
+using System.Runtime.InteropServices; | |
+using System.Diagnostics.CodeAnalysis; | |
+using Metal; | |
+using CoreML; | |
+using OpenGL; | |
+using AppKit; | |
+using Photos; | |
+using ModelIO; | |
+using Network; | |
+using SceneKit; | |
+using Contacts; | |
+using Security; | |
+using CloudKit; | |
+using AudioUnit; | |
+using CoreVideo; | |
+using CoreMedia; | |
+using CoreImage; | |
+using SpriteKit; | |
+using Foundation; | |
+using ObjCRuntime; | |
+using MediaPlayer; | |
+using GameplayKit; | |
+using CoreGraphics; | |
+using CoreLocation; | |
+using AVFoundation; | |
+using FileProvider; | |
+using CoreAnimation; | |
+using CoreFoundation; | |
+using NetworkExtension; | |
+using MetalPerformanceShadersGraph; | |
+#nullable enable | |
+#if !NET | |
+using NativeHandle = System.IntPtr; | |
+#endif | |
+namespace NetworkExtension { | |
+ [UnsupportedOSPlatform ("tvos")] | |
+ [SupportedOSPlatform ("macos13.0")] | |
+ [SupportedOSPlatform ("ios16.0")] | |
+ [SupportedOSPlatform ("maccatalyst16.0")] | |
+ [Native] | |
+ public enum NEVpnConnectionError : long { | |
+ Overslept = 1, | |
+ NoNetworkAvailable = 2, | |
+ UnrecoverableNetworkChange = 3, | |
+ ConfigurationFailed = 4, | |
+ ServerAddressResolutionFailed = 5, | |
+ ServerNotResponding = 6, | |
+ ServerDead = 7, | |
+ AuthenticationFailed = 8, | |
+ ClientCertificateInvalid = 9, | |
+ ClientCertificateNotYetValid = 10, | |
+ ClientCertificateExpired = 11, | |
+ PluginFailed = 12, | |
+ ConfigurationNotFound = 13, | |
+ PluginDisabled = 14, | |
+ NegotiationFailed = 15, | |
+ ServerDisconnected = 16, | |
+ ServerCertificateInvalid = 17, | |
+ ServerCertificateNotYetValid = 18, | |
+ ServerCertificateExpired = 19, | |
+ } | |
+ [UnsupportedOSPlatform ("tvos")] | |
+ [SupportedOSPlatform ("macos13.0")] | |
+ [SupportedOSPlatform ("ios16.0")] | |
+ [SupportedOSPlatform ("maccatalyst16.0")] | |
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)] | |
+ static public partial class NEVpnConnectionErrorExtensions { | |
+ [Field ("NEVPNConnectionErrorDomain", "NetworkExtension")] | |
+ static NSString? _domain; | |
+ public static NSString? GetDomain (this NEVpnConnectionError self) | |
+ { | |
+ if (_domain is null) | |
+ _domain = Dlfcn.GetStringConstant (Libraries.NetworkExtension.Handle, "NEVPNConnectionErrorDomain"); | |
+ return _domain; | |
+ } | |
+ } | |
+} | |
diff --git a/old/ios/native/NetworkExtension/NEDnsOverHttpsSettings.g.cs b/new/ios/native/NetworkExtension/NEDnsOverHttpsSettings.g.cs | |
index 07211a0..f370b6b 100644 | |
--- a/old/ios/native/NetworkExtension/NEDnsOverHttpsSettings.g.cs | |
+++ b/new/ios/native/NetworkExtension/NEDnsOverHttpsSettings.g.cs | |
@@ -109,6 +109,45 @@ namespace NetworkExtension { | |
{ | |
} | |
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)] | |
+ [Introduced (PlatformName.MacOSX, 13,0, ObjCRuntime.PlatformArchitecture.All)] | |
+ [Introduced (PlatformName.iOS, 16,0, ObjCRuntime.PlatformArchitecture.All)] | |
+ [Introduced (PlatformName.MacCatalyst, 16,0, ObjCRuntime.PlatformArchitecture.All)] | |
+ public virtual NSData? IdentityReference { | |
+ [Introduced (PlatformName.MacOSX, 13,0, ObjCRuntime.PlatformArchitecture.All)] | |
+ [Introduced (PlatformName.iOS, 16,0, ObjCRuntime.PlatformArchitecture.All)] | |
+ [Introduced (PlatformName.MacCatalyst, 16,0, ObjCRuntime.PlatformArchitecture.All)] | |
+ [Export ("identityReference", ArgumentSemantic.Copy)] | |
+ get { | |
+ #if ARCH_32 | |
+ throw new PlatformNotSupportedException ("This API is not supported on this version of iOS"); | |
+ #else | |
+ NSData? ret; | |
+ if (IsDirectBinding) { | |
+ ret = Runtime.GetNSObject<NSData> (global::ObjCRuntime.Messaging.IntPtr_objc_msgSend (this.Handle, Selector.GetHandle ("identityReference")))!; | |
+ } else { | |
+ ret = Runtime.GetNSObject<NSData> (global::ObjCRuntime.Messaging.IntPtr_objc_msgSendSuper (this.SuperHandle, Selector.GetHandle ("identityReference")))!; | |
+ } | |
+ return ret!; | |
+ #endif | |
+ } | |
+ [Introduced (PlatformName.MacOSX, 13,0, ObjCRuntime.PlatformArchitecture.All)] | |
+ [Introduced (PlatformName.iOS, 16,0, ObjCRuntime.PlatformArchitecture.All)] | |
+ [Introduced (PlatformName.MacCatalyst, 16,0, ObjCRuntime.PlatformArchitecture.All)] | |
+ [Export ("setIdentityReference:", ArgumentSemantic.Copy)] | |
+ set { | |
+ #if ARCH_32 | |
+ throw new PlatformNotSupportedException ("This API is not supported on this version of iOS"); | |
+ #else | |
+ var value__handle__ = value.GetHandle (); | |
+ if (IsDirectBinding) { | |
+ global::ObjCRuntime.Messaging.void_objc_msgSend_IntPtr (this.Handle, Selector.GetHandle ("setIdentityReference:"), value__handle__); | |
+ } else { | |
+ global::ObjCRuntime.Messaging.void_objc_msgSendSuper_IntPtr (this.SuperHandle, Selector.GetHandle ("setIdentityReference:"), value__handle__); | |
+ } | |
+ #endif | |
+ } | |
+ } | |
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)] | |
public virtual NSUrl? ServerUrl { | |
[Export ("serverURL", ArgumentSemantic.Copy)] | |
diff --git a/old/ios/native/NetworkExtension/NEDnsOverTlsSettings.g.cs b/new/ios/native/NetworkExtension/NEDnsOverTlsSettings.g.cs | |
index 4e32cfd..089e061 100644 | |
--- a/old/ios/native/NetworkExtension/NEDnsOverTlsSettings.g.cs | |
+++ b/new/ios/native/NetworkExtension/NEDnsOverTlsSettings.g.cs | |
@@ -109,6 +109,45 @@ namespace NetworkExtension { | |
{ | |
} | |
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)] | |
+ [Introduced (PlatformName.MacOSX, 13,0, ObjCRuntime.PlatformArchitecture.All)] | |
+ [Introduced (PlatformName.iOS, 16,0, ObjCRuntime.PlatformArchitecture.All)] | |
+ [Introduced (PlatformName.MacCatalyst, 16,0, ObjCRuntime.PlatformArchitecture.All)] | |
+ public virtual NSData? IdentityReference { | |
+ [Introduced (PlatformName.MacOSX, 13,0, ObjCRuntime.PlatformArchitecture.All)] | |
+ [Introduced (PlatformName.iOS, 16,0, ObjCRuntime.PlatformArchitecture.All)] | |
+ [Introduced (PlatformName.MacCatalyst, 16,0, ObjCRuntime.PlatformArchitecture.All)] | |
+ [Export ("identityReference", ArgumentSemantic.Copy)] | |
+ get { | |
+ #if ARCH_32 | |
+ throw new PlatformNotSupportedException ("This API is not supported on this version of iOS"); | |
+ #else | |
+ NSData? ret; | |
+ if (IsDirectBinding) { | |
+ ret = Runtime.GetNSObject<NSData> (global::ObjCRuntime.Messaging.IntPtr_objc_msgSend (this.Handle, Selector.GetHandle ("identityReference")))!; | |
+ } else { | |
+ ret = Runtime.GetNSObject<NSData> (global::ObjCRuntime.Messaging.IntPtr_objc_msgSendSuper (this.SuperHandle, Selector.GetHandle ("identityReference")))!; | |
+ } | |
+ return ret!; | |
+ #endif | |
+ } | |
+ [Introduced (PlatformName.MacOSX, 13,0, ObjCRuntime.PlatformArchitecture.All)] | |
+ [Introduced (PlatformName.iOS, 16,0, ObjCRuntime.PlatformArchitecture.All)] | |
+ [Introduced (PlatformName.MacCatalyst, 16,0, ObjCRuntime.PlatformArchitecture.All)] | |
+ [Export ("setIdentityReference:", ArgumentSemantic.Copy)] | |
+ set { | |
+ #if ARCH_32 | |
+ throw new PlatformNotSupportedException ("This API is not supported on this version of iOS"); | |
+ #else | |
+ var value__handle__ = value.GetHandle (); | |
+ if (IsDirectBinding) { | |
+ global::ObjCRuntime.Messaging.void_objc_msgSend_IntPtr (this.Handle, Selector.GetHandle ("setIdentityReference:"), value__handle__); | |
+ } else { | |
+ global::ObjCRuntime.Messaging.void_objc_msgSendSuper_IntPtr (this.SuperHandle, Selector.GetHandle ("setIdentityReference:"), value__handle__); | |
+ } | |
+ #endif | |
+ } | |
+ } | |
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)] | |
public virtual string? ServerName { | |
[Export ("serverName")] | |
diff --git a/old/ios/native/NetworkExtension/NEVpnConnection.g.cs b/new/ios/native/NetworkExtension/NEVpnConnection.g.cs | |
index e2d3acf..dfd091e 100644 | |
--- a/old/ios/native/NetworkExtension/NEVpnConnection.g.cs | |
+++ b/new/ios/native/NetworkExtension/NEVpnConnection.g.cs | |
@@ -79,6 +79,50 @@ namespace NetworkExtension { | |
{ | |
} | |
+ [Export ("fetchLastDisconnectErrorWithCompletionHandler:")] | |
+ [Unavailable (PlatformName.WatchOS, ObjCRuntime.PlatformArchitecture.All)] | |
+ [Unavailable (PlatformName.TvOS, ObjCRuntime.PlatformArchitecture.All)] | |
+ [Introduced (PlatformName.MacOSX, 13,0, ObjCRuntime.PlatformArchitecture.All)] | |
+ [Introduced (PlatformName.iOS, 16,0, ObjCRuntime.PlatformArchitecture.All)] | |
+ [Introduced (PlatformName.MacCatalyst, 16,0, ObjCRuntime.PlatformArchitecture.All)] | |
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)] | |
+ public unsafe virtual void FetchLastDisconnectError ([BlockProxy (typeof (ObjCRuntime.Trampolines.NIDActionArity1V0))]global::System.Action<NSError> handler) | |
+ { | |
+ #if ARCH_32 | |
+ throw new PlatformNotSupportedException ("This API is not supported on this version of iOS"); | |
+ #else | |
+ if (handler is null) | |
+ ObjCRuntime.ThrowHelper.ThrowArgumentNullException (nameof (handler)); | |
+ BlockLiteral *block_ptr_handler; | |
+ BlockLiteral block_handler; | |
+ block_handler = new BlockLiteral (); | |
+ block_ptr_handler = &block_handler; | |
+ block_handler.SetupBlockUnsafe (Trampolines.SDActionArity1V0.Handler, handler); | |
+ if (IsDirectBinding) { | |
+ global::ObjCRuntime.Messaging.void_objc_msgSend_IntPtr (this.Handle, Selector.GetHandle ("fetchLastDisconnectErrorWithCompletionHandler:"), (IntPtr) block_ptr_handler); | |
+ } else { | |
+ global::ObjCRuntime.Messaging.void_objc_msgSendSuper_IntPtr (this.SuperHandle, Selector.GetHandle ("fetchLastDisconnectErrorWithCompletionHandler:"), (IntPtr) block_ptr_handler); | |
+ } | |
+ block_ptr_handler->CleanupBlock (); | |
+ #endif | |
+ } | |
+ [Unavailable (PlatformName.WatchOS, ObjCRuntime.PlatformArchitecture.All)] | |
+ [Unavailable (PlatformName.TvOS, ObjCRuntime.PlatformArchitecture.All)] | |
+ [Introduced (PlatformName.MacOSX, 13,0, ObjCRuntime.PlatformArchitecture.All)] | |
+ [Introduced (PlatformName.iOS, 16,0, ObjCRuntime.PlatformArchitecture.All)] | |
+ [Introduced (PlatformName.MacCatalyst, 16,0, ObjCRuntime.PlatformArchitecture.All)] | |
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)] | |
+ public unsafe virtual Task FetchLastDisconnectErrorAsync () | |
+ { | |
+ var tcs = new TaskCompletionSource<bool> (); | |
+ FetchLastDisconnectError((obj_) => { | |
+ if (obj_ != null) | |
+ tcs.SetException (new NSErrorException(obj_)); | |
+ else | |
+ tcs.SetResult (true); | |
+ }); | |
+ return tcs.Task; | |
+ } | |
[Export ("startVPNTunnelAndReturnError:")] | |
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)] | |
public virtual bool StartVpnTunnel (out NSError error) | |
diff --git a/new/ios/native/NetworkExtension/NEVpnConnectionError.g.cs b/new/ios/native/NetworkExtension/NEVpnConnectionError.g.cs | |
new file mode 100644 | |
index 0000000..4a40435 | |
--- /dev/null | |
+++ b/new/ios/native/NetworkExtension/NEVpnConnectionError.g.cs | |
@@ -0,0 +1,94 @@ | |
+// | |
+// Auto-generated from generator.cs, do not edit | |
+// | |
+// We keep references to objects, so warning 414 is expected | |
+#pragma warning disable 414 | |
+using System; | |
+using System.Drawing; | |
+using System.Diagnostics; | |
+using System.ComponentModel; | |
+using System.Threading.Tasks; | |
+using System.Runtime.InteropServices; | |
+using System.Diagnostics.CodeAnalysis; | |
+using UIKit; | |
+using GLKit; | |
+using Metal; | |
+using CoreML; | |
+using MapKit; | |
+using Photos; | |
+using ModelIO; | |
+using Network; | |
+using SceneKit; | |
+using Contacts; | |
+using Security; | |
+using Messages; | |
+using AudioUnit; | |
+using CoreVideo; | |
+using CoreMedia; | |
+using QuickLook; | |
+using CoreImage; | |
+using SpriteKit; | |
+using Foundation; | |
+using CoreMotion; | |
+using ObjCRuntime; | |
+using AddressBook; | |
+using MediaPlayer; | |
+using GameplayKit; | |
+using CoreGraphics; | |
+using CoreLocation; | |
+using AVFoundation; | |
+using NewsstandKit; | |
+using FileProvider; | |
+using CoreAnimation; | |
+using CoreFoundation; | |
+using NetworkExtension; | |
+using MetalPerformanceShadersGraph; | |
+#nullable enable | |
+#if !NET | |
+using NativeHandle = System.IntPtr; | |
+#endif | |
+namespace NetworkExtension { | |
+ [Unavailable (PlatformName.WatchOS, ObjCRuntime.PlatformArchitecture.All)] | |
+ [Unavailable (PlatformName.TvOS, ObjCRuntime.PlatformArchitecture.All)] | |
+ [Introduced (PlatformName.MacOSX, 13,0, ObjCRuntime.PlatformArchitecture.All)] | |
+ [Introduced (PlatformName.iOS, 16,0, ObjCRuntime.PlatformArchitecture.All)] | |
+ [Introduced (PlatformName.MacCatalyst, 16,0, ObjCRuntime.PlatformArchitecture.All)] | |
+ [Native] | |
+ public enum NEVpnConnectionError : long { | |
+ Overslept = 1, | |
+ NoNetworkAvailable = 2, | |
+ UnrecoverableNetworkChange = 3, | |
+ ConfigurationFailed = 4, | |
+ ServerAddressResolutionFailed = 5, | |
+ ServerNotResponding = 6, | |
+ ServerDead = 7, | |
+ AuthenticationFailed = 8, | |
+ ClientCertificateInvalid = 9, | |
+ ClientCertificateNotYetValid = 10, | |
+ ClientCertificateExpired = 11, | |
+ PluginFailed = 12, | |
+ ConfigurationNotFound = 13, | |
+ PluginDisabled = 14, | |
+ NegotiationFailed = 15, | |
+ ServerDisconnected = 16, | |
+ ServerCertificateInvalid = 17, | |
+ ServerCertificateNotYetValid = 18, | |
+ ServerCertificateExpired = 19, | |
+ } | |
+ [Unavailable (PlatformName.WatchOS, ObjCRuntime.PlatformArchitecture.All)] | |
+ [Unavailable (PlatformName.TvOS, ObjCRuntime.PlatformArchitecture.All)] | |
+ [Introduced (PlatformName.MacOSX, 13,0, ObjCRuntime.PlatformArchitecture.All)] | |
+ [Introduced (PlatformName.iOS, 16,0, ObjCRuntime.PlatformArchitecture.All)] | |
+ [Introduced (PlatformName.MacCatalyst, 16,0, ObjCRuntime.PlatformArchitecture.All)] | |
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)] | |
+ static public partial class NEVpnConnectionErrorExtensions { | |
+ [Field ("NEVPNConnectionErrorDomain", "NetworkExtension")] | |
+ static NSString? _domain; | |
+ public static NSString? GetDomain (this NEVpnConnectionError self) | |
+ { | |
+ if (_domain is null) | |
+ _domain = Dlfcn.GetStringConstant (Libraries.NetworkExtension.Handle, "NEVPNConnectionErrorDomain"); | |
+ return _domain; | |
+ } | |
+ } | |
+} | |
diff --git a/old/mac/full/NetworkExtension/NEDnsOverHttpsSettings.g.cs b/new/mac/full/NetworkExtension/NEDnsOverHttpsSettings.g.cs | |
index 96c1345..72229b4 100644 | |
--- a/old/mac/full/NetworkExtension/NEDnsOverHttpsSettings.g.cs | |
+++ b/new/mac/full/NetworkExtension/NEDnsOverHttpsSettings.g.cs | |
@@ -50,10 +50,16 @@ namespace NetworkExtension { | |
[Introduced (PlatformName.iOS, 14,0, ObjCRuntime.PlatformArchitecture.All)] | |
[Introduced (PlatformName.MacCatalyst, 14,0, ObjCRuntime.PlatformArchitecture.All)] | |
public unsafe partial class NEDnsOverHttpsSettings : NEDnsSettings { | |
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)] | |
+ const string selIdentityReference = "identityReference"; | |
+ static readonly IntPtr selIdentityReferenceHandle = Selector.GetHandle ("identityReference"); | |
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)] | |
const string selServerURL = "serverURL"; | |
static readonly IntPtr selServerURLHandle = Selector.GetHandle ("serverURL"); | |
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)] | |
+ const string selSetIdentityReference_ = "setIdentityReference:"; | |
+ static readonly IntPtr selSetIdentityReference_Handle = Selector.GetHandle ("setIdentityReference:"); | |
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)] | |
const string selSetServerURL_ = "setServerURL:"; | |
static readonly IntPtr selSetServerURL_Handle = Selector.GetHandle ("setServerURL:"); | |
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)] | |
@@ -96,6 +102,37 @@ namespace NetworkExtension { | |
{ | |
} | |
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)] | |
+ [Introduced (PlatformName.MacOSX, 13,0, ObjCRuntime.PlatformArchitecture.All)] | |
+ [Introduced (PlatformName.iOS, 16,0, ObjCRuntime.PlatformArchitecture.All)] | |
+ [Introduced (PlatformName.MacCatalyst, 16,0, ObjCRuntime.PlatformArchitecture.All)] | |
+ public virtual NSData? IdentityReference { | |
+ [Introduced (PlatformName.MacOSX, 13,0, ObjCRuntime.PlatformArchitecture.All)] | |
+ [Introduced (PlatformName.iOS, 16,0, ObjCRuntime.PlatformArchitecture.All)] | |
+ [Introduced (PlatformName.MacCatalyst, 16,0, ObjCRuntime.PlatformArchitecture.All)] | |
+ [Export ("identityReference", ArgumentSemantic.Copy)] | |
+ get { | |
+ NSData? ret; | |
+ if (IsDirectBinding) { | |
+ ret = Runtime.GetNSObject<NSData> (global::ObjCRuntime.Messaging.IntPtr_objc_msgSend (this.Handle, selIdentityReferenceHandle))!; | |
+ } else { | |
+ ret = Runtime.GetNSObject<NSData> (global::ObjCRuntime.Messaging.IntPtr_objc_msgSendSuper (this.SuperHandle, selIdentityReferenceHandle))!; | |
+ } | |
+ return ret!; | |
+ } | |
+ [Introduced (PlatformName.MacOSX, 13,0, ObjCRuntime.PlatformArchitecture.All)] | |
+ [Introduced (PlatformName.iOS, 16,0, ObjCRuntime.PlatformArchitecture.All)] | |
+ [Introduced (PlatformName.MacCatalyst, 16,0, ObjCRuntime.PlatformArchitecture.All)] | |
+ [Export ("setIdentityReference:", ArgumentSemantic.Copy)] | |
+ set { | |
+ var value__handle__ = value.GetHandle (); | |
+ if (IsDirectBinding) { | |
+ global::ObjCRuntime.Messaging.void_objc_msgSend_IntPtr (this.Handle, selSetIdentityReference_Handle, value__handle__); | |
+ } else { | |
+ global::ObjCRuntime.Messaging.void_objc_msgSendSuper_IntPtr (this.SuperHandle, selSetIdentityReference_Handle, value__handle__); | |
+ } | |
+ } | |
+ } | |
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)] | |
public virtual NSUrl? ServerUrl { | |
[Export ("serverURL", ArgumentSemantic.Copy)] | |
diff --git a/old/mac/full/NetworkExtension/NEDnsOverTlsSettings.g.cs b/new/mac/full/NetworkExtension/NEDnsOverTlsSettings.g.cs | |
index b530b70..72832f5 100644 | |
--- a/old/mac/full/NetworkExtension/NEDnsOverTlsSettings.g.cs | |
+++ b/new/mac/full/NetworkExtension/NEDnsOverTlsSettings.g.cs | |
@@ -50,10 +50,16 @@ namespace NetworkExtension { | |
[Introduced (PlatformName.iOS, 14,0, ObjCRuntime.PlatformArchitecture.All)] | |
[Introduced (PlatformName.MacCatalyst, 14,0, ObjCRuntime.PlatformArchitecture.All)] | |
public unsafe partial class NEDnsOverTlsSettings : NEDnsSettings { | |
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)] | |
+ const string selIdentityReference = "identityReference"; | |
+ static readonly IntPtr selIdentityReferenceHandle = Selector.GetHandle ("identityReference"); | |
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)] | |
const string selServerName = "serverName"; | |
static readonly IntPtr selServerNameHandle = Selector.GetHandle ("serverName"); | |
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)] | |
+ const string selSetIdentityReference_ = "setIdentityReference:"; | |
+ static readonly IntPtr selSetIdentityReference_Handle = Selector.GetHandle ("setIdentityReference:"); | |
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)] | |
const string selSetServerName_ = "setServerName:"; | |
static readonly IntPtr selSetServerName_Handle = Selector.GetHandle ("setServerName:"); | |
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)] | |
@@ -96,6 +102,37 @@ namespace NetworkExtension { | |
{ | |
} | |
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)] | |
+ [Introduced (PlatformName.MacOSX, 13,0, ObjCRuntime.PlatformArchitecture.All)] | |
+ [Introduced (PlatformName.iOS, 16,0, ObjCRuntime.PlatformArchitecture.All)] | |
+ [Introduced (PlatformName.MacCatalyst, 16,0, ObjCRuntime.PlatformArchitecture.All)] | |
+ public virtual NSData? IdentityReference { | |
+ [Introduced (PlatformName.MacOSX, 13,0, ObjCRuntime.PlatformArchitecture.All)] | |
+ [Introduced (PlatformName.iOS, 16,0, ObjCRuntime.PlatformArchitecture.All)] | |
+ [Introduced (PlatformName.MacCatalyst, 16,0, ObjCRuntime.PlatformArchitecture.All)] | |
+ [Export ("identityReference", ArgumentSemantic.Copy)] | |
+ get { | |
+ NSData? ret; | |
+ if (IsDirectBinding) { | |
+ ret = Runtime.GetNSObject<NSData> (global::ObjCRuntime.Messaging.IntPtr_objc_msgSend (this.Handle, selIdentityReferenceHandle))!; | |
+ } else { | |
+ ret = Runtime.GetNSObject<NSData> (global::ObjCRuntime.Messaging.IntPtr_objc_msgSendSuper (this.SuperHandle, selIdentityReferenceHandle))!; | |
+ } | |
+ return ret!; | |
+ } | |
+ [Introduced (PlatformName.MacOSX, 13,0, ObjCRuntime.PlatformArchitecture.All)] | |
+ [Introduced (PlatformName.iOS, 16,0, ObjCRuntime.PlatformArchitecture.All)] | |
+ [Introduced (PlatformName.MacCatalyst, 16,0, ObjCRuntime.PlatformArchitecture.All)] | |
+ [Export ("setIdentityReference:", ArgumentSemantic.Copy)] | |
+ set { | |
+ var value__handle__ = value.GetHandle (); | |
+ if (IsDirectBinding) { | |
+ global::ObjCRuntime.Messaging.void_objc_msgSend_IntPtr (this.Handle, selSetIdentityReference_Handle, value__handle__); | |
+ } else { | |
+ global::ObjCRuntime.Messaging.void_objc_msgSendSuper_IntPtr (this.SuperHandle, selSetIdentityReference_Handle, value__handle__); | |
+ } | |
+ } | |
+ } | |
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)] | |
public virtual string? ServerName { | |
[Export ("serverName")] | |
diff --git a/new/mac/full/NetworkExtension/NEEthernetTunnelNetworkSettings.g.cs b/new/mac/full/NetworkExtension/NEEthernetTunnelNetworkSettings.g.cs | |
new file mode 100644 | |
index 0000000..88df8fa | |
--- /dev/null | |
+++ b/new/mac/full/NetworkExtension/NEEthernetTunnelNetworkSettings.g.cs | |
@@ -0,0 +1,129 @@ | |
+// | |
+// Auto-generated from generator.cs, do not edit | |
+// | |
+// We keep references to objects, so warning 414 is expected | |
+#pragma warning disable 414 | |
+using System; | |
+using System.Diagnostics; | |
+using System.ComponentModel; | |
+using System.Threading.Tasks; | |
+using System.Runtime.InteropServices; | |
+using System.Diagnostics.CodeAnalysis; | |
+using QTKit; | |
+using Metal; | |
+using CoreML; | |
+using OpenGL; | |
+using AppKit; | |
+using Photos; | |
+using ModelIO; | |
+using Network; | |
+using SceneKit; | |
+using Contacts; | |
+using Security; | |
+using CloudKit; | |
+using AudioUnit; | |
+using CoreVideo; | |
+using CoreMedia; | |
+using CoreImage; | |
+using SpriteKit; | |
+using Foundation; | |
+using ObjCRuntime; | |
+using MediaPlayer; | |
+using GameplayKit; | |
+using CoreGraphics; | |
+using CoreLocation; | |
+using AVFoundation; | |
+using FileProvider; | |
+using CoreAnimation; | |
+using CoreFoundation; | |
+using NetworkExtension; | |
+using MetalPerformanceShadersGraph; | |
+#nullable enable | |
+#if !NET | |
+using NativeHandle = System.IntPtr; | |
+#endif | |
+namespace NetworkExtension { | |
+ [Register("NEEthernetTunnelNetworkSettings", true)] | |
+ [Unavailable (PlatformName.WatchOS, ObjCRuntime.PlatformArchitecture.All)] | |
+ [Unavailable (PlatformName.TvOS, ObjCRuntime.PlatformArchitecture.All)] | |
+ [Unavailable (PlatformName.iOS, ObjCRuntime.PlatformArchitecture.All)] | |
+ [Introduced (PlatformName.MacOSX, 13,0, ObjCRuntime.PlatformArchitecture.All)] | |
+ public unsafe partial class NEEthernetTunnelNetworkSettings : NEPacketTunnelNetworkSettings { | |
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)] | |
+ const string selEthernetAddress = "ethernetAddress"; | |
+ static readonly IntPtr selEthernetAddressHandle = Selector.GetHandle ("ethernetAddress"); | |
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)] | |
+ const string selInitWithTunnelRemoteAddress_EthernetAddress_Mtu_ = "initWithTunnelRemoteAddress:ethernetAddress:mtu:"; | |
+ static readonly IntPtr selInitWithTunnelRemoteAddress_EthernetAddress_Mtu_Handle = Selector.GetHandle ("initWithTunnelRemoteAddress:ethernetAddress:mtu:"); | |
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)] | |
+ static readonly IntPtr class_ptr = Class.GetHandle ("NEEthernetTunnelNetworkSettings"); | |
+ public override IntPtr ClassHandle { get { return class_ptr; } } | |
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)] | |
+ [EditorBrowsable (EditorBrowsableState.Advanced)] | |
+ [Export ("init")] | |
+ public NEEthernetTunnelNetworkSettings () : base (NSObjectFlag.Empty) | |
+ { | |
+ if (IsDirectBinding) { | |
+ InitializeHandle (global::ObjCRuntime.Messaging.IntPtr_objc_msgSend (this.Handle, global::ObjCRuntime.Selector.Init), "init"); | |
+ } else { | |
+ InitializeHandle (global::ObjCRuntime.Messaging.IntPtr_objc_msgSendSuper (this.SuperHandle, global::ObjCRuntime.Selector.Init), "init"); | |
+ } | |
+ } | |
+ | |
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)] | |
+ [DesignatedInitializer] | |
+ [EditorBrowsable (EditorBrowsableState.Advanced)] | |
+ [Export ("initWithCoder:")] | |
+ public NEEthernetTunnelNetworkSettings (NSCoder coder) : base (NSObjectFlag.Empty) | |
+ { | |
+ if (IsDirectBinding) { | |
+ InitializeHandle (global::ObjCRuntime.Messaging.IntPtr_objc_msgSend_IntPtr (this.Handle, Selector.InitWithCoder, coder.Handle), "initWithCoder:"); | |
+ } else { | |
+ InitializeHandle (global::ObjCRuntime.Messaging.IntPtr_objc_msgSendSuper_IntPtr (this.SuperHandle, Selector.InitWithCoder, coder.Handle), "initWithCoder:"); | |
+ } | |
+ } | |
+ | |
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)] | |
+ [EditorBrowsable (EditorBrowsableState.Advanced)] | |
+ protected NEEthernetTunnelNetworkSettings (NSObjectFlag t) : base (t) | |
+ { | |
+ } | |
+ | |
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)] | |
+ [EditorBrowsable (EditorBrowsableState.Advanced)] | |
+ protected internal NEEthernetTunnelNetworkSettings (IntPtr handle) : base (handle) | |
+ { | |
+ } | |
+ | |
+ [Export ("initWithTunnelRemoteAddress:ethernetAddress:mtu:")] | |
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)] | |
+ public NEEthernetTunnelNetworkSettings (string address, string ethernetAddress, nint mtu) | |
+ : base (NSObjectFlag.Empty) | |
+ { | |
+ if (address is null) | |
+ ObjCRuntime.ThrowHelper.ThrowArgumentNullException (nameof (address)); | |
+ if (ethernetAddress is null) | |
+ ObjCRuntime.ThrowHelper.ThrowArgumentNullException (nameof (ethernetAddress)); | |
+ var nsaddress = CFString.CreateNative (address); | |
+ var nsethernetAddress = CFString.CreateNative (ethernetAddress); | |
+ if (IsDirectBinding) { | |
+ InitializeHandle (global::ObjCRuntime.Messaging.IntPtr_objc_msgSend_IntPtr_IntPtr_IntPtr (this.Handle, selInitWithTunnelRemoteAddress_EthernetAddress_Mtu_Handle, nsaddress, nsethernetAddress, (IntPtr) mtu), "initWithTunnelRemoteAddress:ethernetAddress:mtu:"); | |
+ } else { | |
+ InitializeHandle (global::ObjCRuntime.Messaging.IntPtr_objc_msgSendSuper_IntPtr_IntPtr_IntPtr (this.SuperHandle, selInitWithTunnelRemoteAddress_EthernetAddress_Mtu_Handle, nsaddress, nsethernetAddress, (IntPtr) mtu), "initWithTunnelRemoteAddress:ethernetAddress:mtu:"); | |
+ } | |
+ CFString.ReleaseNative (nsaddress); | |
+ CFString.ReleaseNative (nsethernetAddress); | |
+ } | |
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)] | |
+ public virtual string EthernetAddress { | |
+ [Export ("ethernetAddress")] | |
+ get { | |
+ if (IsDirectBinding) { | |
+ return CFString.FromHandle (global::ObjCRuntime.Messaging.IntPtr_objc_msgSend (this.Handle, selEthernetAddressHandle))!; | |
+ } else { | |
+ return CFString.FromHandle (global::ObjCRuntime.Messaging.IntPtr_objc_msgSendSuper (this.SuperHandle, selEthernetAddressHandle))!; | |
+ } | |
+ } | |
+ } | |
+ } /* class NEEthernetTunnelNetworkSettings */ | |
+} | |
diff --git a/new/mac/full/NetworkExtension/NEEthernetTunnelProvider.g.cs b/new/mac/full/NetworkExtension/NEEthernetTunnelProvider.g.cs | |
new file mode 100644 | |
index 0000000..21b08f8 | |
--- /dev/null | |
+++ b/new/mac/full/NetworkExtension/NEEthernetTunnelProvider.g.cs | |
@@ -0,0 +1,80 @@ | |
+// | |
+// Auto-generated from generator.cs, do not edit | |
+// | |
+// We keep references to objects, so warning 414 is expected | |
+#pragma warning disable 414 | |
+using System; | |
+using System.Diagnostics; | |
+using System.ComponentModel; | |
+using System.Threading.Tasks; | |
+using System.Runtime.InteropServices; | |
+using System.Diagnostics.CodeAnalysis; | |
+using QTKit; | |
+using Metal; | |
+using CoreML; | |
+using OpenGL; | |
+using AppKit; | |
+using Photos; | |
+using ModelIO; | |
+using Network; | |
+using SceneKit; | |
+using Contacts; | |
+using Security; | |
+using CloudKit; | |
+using AudioUnit; | |
+using CoreVideo; | |
+using CoreMedia; | |
+using CoreImage; | |
+using SpriteKit; | |
+using Foundation; | |
+using ObjCRuntime; | |
+using MediaPlayer; | |
+using GameplayKit; | |
+using CoreGraphics; | |
+using CoreLocation; | |
+using AVFoundation; | |
+using FileProvider; | |
+using CoreAnimation; | |
+using CoreFoundation; | |
+using NetworkExtension; | |
+using MetalPerformanceShadersGraph; | |
+#nullable enable | |
+#if !NET | |
+using NativeHandle = System.IntPtr; | |
+#endif | |
+namespace NetworkExtension { | |
+ [Register("NEEthernetTunnelProvider", true)] | |
+ [Unavailable (PlatformName.WatchOS, ObjCRuntime.PlatformArchitecture.All)] | |
+ [Unavailable (PlatformName.TvOS, ObjCRuntime.PlatformArchitecture.All)] | |
+ [Unavailable (PlatformName.iOS, ObjCRuntime.PlatformArchitecture.All)] | |
+ [Introduced (PlatformName.MacOSX, 13,0, ObjCRuntime.PlatformArchitecture.All)] | |
+ public unsafe partial class NEEthernetTunnelProvider : NEPacketTunnelProvider { | |
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)] | |
+ static readonly IntPtr class_ptr = Class.GetHandle ("NEEthernetTunnelProvider"); | |
+ public override IntPtr ClassHandle { get { return class_ptr; } } | |
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)] | |
+ [EditorBrowsable (EditorBrowsableState.Advanced)] | |
+ [Export ("init")] | |
+ public NEEthernetTunnelProvider () : base (NSObjectFlag.Empty) | |
+ { | |
+ if (IsDirectBinding) { | |
+ InitializeHandle (global::ObjCRuntime.Messaging.IntPtr_objc_msgSend (this.Handle, global::ObjCRuntime.Selector.Init), "init"); | |
+ } else { | |
+ InitializeHandle (global::ObjCRuntime.Messaging.IntPtr_objc_msgSendSuper (this.SuperHandle, global::ObjCRuntime.Selector.Init), "init"); | |
+ } | |
+ } | |
+ | |
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)] | |
+ [EditorBrowsable (EditorBrowsableState.Advanced)] | |
+ protected NEEthernetTunnelProvider (NSObjectFlag t) : base (t) | |
+ { | |
+ } | |
+ | |
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)] | |
+ [EditorBrowsable (EditorBrowsableState.Advanced)] | |
+ protected internal NEEthernetTunnelProvider (IntPtr handle) : base (handle) | |
+ { | |
+ } | |
+ | |
+ } /* class NEEthernetTunnelProvider */ | |
+} | |
diff --git a/old/mac/full/NetworkExtension/NEIPv4Settings.g.cs b/new/mac/full/NetworkExtension/NEIPv4Settings.g.cs | |
index 1ef29f0..d1555cf 100644 | |
--- a/old/mac/full/NetworkExtension/NEIPv4Settings.g.cs | |
+++ b/new/mac/full/NetworkExtension/NEIPv4Settings.g.cs | |
@@ -69,12 +69,18 @@ namespace NetworkExtension { | |
const string selInitWithCoder_ = "initWithCoder:"; | |
static readonly IntPtr selInitWithCoder_Handle = Selector.GetHandle ("initWithCoder:"); | |
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)] | |
+ const string selRouter = "router"; | |
+ static readonly IntPtr selRouterHandle = Selector.GetHandle ("router"); | |
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)] | |
const string selSetExcludedRoutes_ = "setExcludedRoutes:"; | |
static readonly IntPtr selSetExcludedRoutes_Handle = Selector.GetHandle ("setExcludedRoutes:"); | |
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)] | |
const string selSetIncludedRoutes_ = "setIncludedRoutes:"; | |
static readonly IntPtr selSetIncludedRoutes_Handle = Selector.GetHandle ("setIncludedRoutes:"); | |
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)] | |
+ const string selSetRouter_ = "setRouter:"; | |
+ static readonly IntPtr selSetRouter_Handle = Selector.GetHandle ("setRouter:"); | |
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)] | |
const string selSubnetMasks = "subnetMasks"; | |
static readonly IntPtr selSubnetMasksHandle = Selector.GetHandle ("subnetMasks"); | |
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)] | |
@@ -211,6 +217,39 @@ namespace NetworkExtension { | |
} | |
} | |
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)] | |
+ [Unavailable (PlatformName.WatchOS, ObjCRuntime.PlatformArchitecture.All)] | |
+ [Unavailable (PlatformName.TvOS, ObjCRuntime.PlatformArchitecture.All)] | |
+ [Unavailable (PlatformName.iOS, ObjCRuntime.PlatformArchitecture.All)] | |
+ [Introduced (PlatformName.MacOSX, 13,0, ObjCRuntime.PlatformArchitecture.All)] | |
+ public virtual string? Router { | |
+ [Unavailable (PlatformName.WatchOS, ObjCRuntime.PlatformArchitecture.All)] | |
+ [Unavailable (PlatformName.TvOS, ObjCRuntime.PlatformArchitecture.All)] | |
+ [Unavailable (PlatformName.iOS, ObjCRuntime.PlatformArchitecture.All)] | |
+ [Introduced (PlatformName.MacOSX, 13,0, ObjCRuntime.PlatformArchitecture.All)] | |
+ [Export ("router")] | |
+ get { | |
+ if (IsDirectBinding) { | |
+ return CFString.FromHandle (global::ObjCRuntime.Messaging.IntPtr_objc_msgSend (this.Handle, selRouterHandle))!; | |
+ } else { | |
+ return CFString.FromHandle (global::ObjCRuntime.Messaging.IntPtr_objc_msgSendSuper (this.SuperHandle, selRouterHandle))!; | |
+ } | |
+ } | |
+ [Unavailable (PlatformName.WatchOS, ObjCRuntime.PlatformArchitecture.All)] | |
+ [Unavailable (PlatformName.TvOS, ObjCRuntime.PlatformArchitecture.All)] | |
+ [Unavailable (PlatformName.iOS, ObjCRuntime.PlatformArchitecture.All)] | |
+ [Introduced (PlatformName.MacOSX, 13,0, ObjCRuntime.PlatformArchitecture.All)] | |
+ [Export ("setRouter:")] | |
+ set { | |
+ var nsvalue = CFString.CreateNative (value); | |
+ if (IsDirectBinding) { | |
+ global::ObjCRuntime.Messaging.void_objc_msgSend_IntPtr (this.Handle, selSetRouter_Handle, nsvalue); | |
+ } else { | |
+ global::ObjCRuntime.Messaging.void_objc_msgSendSuper_IntPtr (this.SuperHandle, selSetRouter_Handle, nsvalue); | |
+ } | |
+ CFString.ReleaseNative (nsvalue); | |
+ } | |
+ } | |
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)] | |
public virtual string[] SubnetMasks { | |
[Export ("subnetMasks")] | |
get { | |
diff --git a/old/mac/full/NetworkExtension/NEVpnConnection.g.cs b/new/mac/full/NetworkExtension/NEVpnConnection.g.cs | |
index c349e26..c39579b 100644 | |
--- a/old/mac/full/NetworkExtension/NEVpnConnection.g.cs | |
+++ b/new/mac/full/NetworkExtension/NEVpnConnection.g.cs | |
@@ -51,6 +51,9 @@ namespace NetworkExtension { | |
const string selConnectedDate = "connectedDate"; | |
static readonly IntPtr selConnectedDateHandle = Selector.GetHandle ("connectedDate"); | |
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)] | |
+ const string selFetchLastDisconnectErrorWithCompletionHandler_ = "fetchLastDisconnectErrorWithCompletionHandler:"; | |
+ static readonly IntPtr selFetchLastDisconnectErrorWithCompletionHandler_Handle = Selector.GetHandle ("fetchLastDisconnectErrorWithCompletionHandler:"); | |
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)] | |
const string selManager = "manager"; | |
static readonly IntPtr selManagerHandle = Selector.GetHandle ("manager"); | |
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)] | |
@@ -92,6 +95,46 @@ namespace NetworkExtension { | |
{ | |
} | |
+ [Export ("fetchLastDisconnectErrorWithCompletionHandler:")] | |
+ [Unavailable (PlatformName.WatchOS, ObjCRuntime.PlatformArchitecture.All)] | |
+ [Unavailable (PlatformName.TvOS, ObjCRuntime.PlatformArchitecture.All)] | |
+ [Introduced (PlatformName.MacOSX, 13,0, ObjCRuntime.PlatformArchitecture.All)] | |
+ [Introduced (PlatformName.iOS, 16,0, ObjCRuntime.PlatformArchitecture.All)] | |
+ [Introduced (PlatformName.MacCatalyst, 16,0, ObjCRuntime.PlatformArchitecture.All)] | |
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)] | |
+ public unsafe virtual void FetchLastDisconnectError ([BlockProxy (typeof (ObjCRuntime.Trampolines.NIDActionArity1V16))]global::System.Action<NSError> handler) | |
+ { | |
+ if (handler is null) | |
+ ObjCRuntime.ThrowHelper.ThrowArgumentNullException (nameof (handler)); | |
+ BlockLiteral *block_ptr_handler; | |
+ BlockLiteral block_handler; | |
+ block_handler = new BlockLiteral (); | |
+ block_ptr_handler = &block_handler; | |
+ block_handler.SetupBlockUnsafe (Trampolines.SDActionArity1V16.Handler, handler); | |
+ if (IsDirectBinding) { | |
+ global::ObjCRuntime.Messaging.void_objc_msgSend_IntPtr (this.Handle, selFetchLastDisconnectErrorWithCompletionHandler_Handle, (IntPtr) block_ptr_handler); | |
+ } else { | |
+ global::ObjCRuntime.Messaging.void_objc_msgSendSuper_IntPtr (this.SuperHandle, selFetchLastDisconnectErrorWithCompletionHandler_Handle, (IntPtr) block_ptr_handler); | |
+ } | |
+ block_ptr_handler->CleanupBlock (); | |
+ } | |
+ [Unavailable (PlatformName.WatchOS, ObjCRuntime.PlatformArchitecture.All)] | |
+ [Unavailable (PlatformName.TvOS, ObjCRuntime.PlatformArchitecture.All)] | |
+ [Introduced (PlatformName.MacOSX, 13,0, ObjCRuntime.PlatformArchitecture.All)] | |
+ [Introduced (PlatformName.iOS, 16,0, ObjCRuntime.PlatformArchitecture.All)] | |
+ [Introduced (PlatformName.MacCatalyst, 16,0, ObjCRuntime.PlatformArchitecture.All)] | |
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)] | |
+ public unsafe virtual Task FetchLastDisconnectErrorAsync () | |
+ { | |
+ var tcs = new TaskCompletionSource<bool> (); | |
+ FetchLastDisconnectError((obj_) => { | |
+ if (obj_ != null) | |
+ tcs.SetException (new NSErrorException(obj_)); | |
+ else | |
+ tcs.SetResult (true); | |
+ }); | |
+ return tcs.Task; | |
+ } | |
[Export ("startVPNTunnelAndReturnError:")] | |
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)] | |
public virtual bool StartVpnTunnel (out NSError error) | |
diff --git a/new/mac/full/NetworkExtension/NEVpnConnectionError.g.cs b/new/mac/full/NetworkExtension/NEVpnConnectionError.g.cs | |
new file mode 100644 | |
index 0000000..5d436b9 | |
--- /dev/null | |
+++ b/new/mac/full/NetworkExtension/NEVpnConnectionError.g.cs | |
@@ -0,0 +1,89 @@ | |
+// | |
+// Auto-generated from generator.cs, do not edit | |
+// | |
+// We keep references to objects, so warning 414 is expected | |
+#pragma warning disable 414 | |
+using System; | |
+using System.Diagnostics; | |
+using System.ComponentModel; | |
+using System.Threading.Tasks; | |
+using System.Runtime.InteropServices; | |
+using System.Diagnostics.CodeAnalysis; | |
+using QTKit; | |
+using Metal; | |
+using CoreML; | |
+using OpenGL; | |
+using AppKit; | |
+using Photos; | |
+using ModelIO; | |
+using Network; | |
+using SceneKit; | |
+using Contacts; | |
+using Security; | |
+using CloudKit; | |
+using AudioUnit; | |
+using CoreVideo; | |
+using CoreMedia; | |
+using CoreImage; | |
+using SpriteKit; | |
+using Foundation; | |
+using ObjCRuntime; | |
+using MediaPlayer; | |
+using GameplayKit; | |
+using CoreGraphics; | |
+using CoreLocation; | |
+using AVFoundation; | |
+using FileProvider; | |
+using CoreAnimation; | |
+using CoreFoundation; | |
+using NetworkExtension; | |
+using MetalPerformanceShadersGraph; | |
+#nullable enable | |
+#if !NET | |
+using NativeHandle = System.IntPtr; | |
+#endif | |
+namespace NetworkExtension { | |
+ [Unavailable (PlatformName.WatchOS, ObjCRuntime.PlatformArchitecture.All)] | |
+ [Unavailable (PlatformName.TvOS, ObjCRuntime.PlatformArchitecture.All)] | |
+ [Introduced (PlatformName.MacOSX, 13,0, ObjCRuntime.PlatformArchitecture.All)] | |
+ [Introduced (PlatformName.iOS, 16,0, ObjCRuntime.PlatformArchitecture.All)] | |
+ [Introduced (PlatformName.MacCatalyst, 16,0, ObjCRuntime.PlatformArchitecture.All)] | |
+ [Native] | |
+ public enum NEVpnConnectionError : long { | |
+ Overslept = 1, | |
+ NoNetworkAvailable = 2, | |
+ UnrecoverableNetworkChange = 3, | |
+ ConfigurationFailed = 4, | |
+ ServerAddressResolutionFailed = 5, | |
+ ServerNotResponding = 6, | |
+ ServerDead = 7, | |
+ AuthenticationFailed = 8, | |
+ ClientCertificateInvalid = 9, | |
+ ClientCertificateNotYetValid = 10, | |
+ ClientCertificateExpired = 11, | |
+ PluginFailed = 12, | |
+ ConfigurationNotFound = 13, | |
+ PluginDisabled = 14, | |
+ NegotiationFailed = 15, | |
+ ServerDisconnected = 16, | |
+ ServerCertificateInvalid = 17, | |
+ ServerCertificateNotYetValid = 18, | |
+ ServerCertificateExpired = 19, | |
+ } | |
+ [Unavailable (PlatformName.WatchOS, ObjCRuntime.PlatformArchitecture.All)] | |
+ [Unavailable (PlatformName.TvOS, ObjCRuntime.PlatformArchitecture.All)] | |
+ [Introduced (PlatformName.MacOSX, 13,0, ObjCRuntime.PlatformArchitecture.All)] | |
+ [Introduced (PlatformName.iOS, 16,0, ObjCRuntime.PlatformArchitecture.All)] | |
+ [Introduced (PlatformName.MacCatalyst, 16,0, ObjCRuntime.PlatformArchitecture.All)] | |
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)] | |
+ static public partial class NEVpnConnectionErrorExtensions { | |
+ [Field ("NEVPNConnectionErrorDomain", "NetworkExtension")] | |
+ static NSString? _domain; | |
+ public static NSString? GetDomain (this NEVpnConnectionError self) | |
+ { | |
+ if (_domain is null) | |
+ _domain = Dlfcn.GetStringConstant (Libraries.NetworkExtension.Handle, "NEVPNConnectionErrorDomain"); | |
+ return _domain; | |
+ } | |
+ } | |
+} | |
diff --git a/old/mac/mobile/NetworkExtension/NEDnsOverHttpsSettings.g.cs b/new/mac/mobile/NetworkExtension/NEDnsOverHttpsSettings.g.cs | |
index 96c1345..72229b4 100644 | |
--- a/old/mac/mobile/NetworkExtension/NEDnsOverHttpsSettings.g.cs | |
+++ b/new/mac/mobile/NetworkExtension/NEDnsOverHttpsSettings.g.cs | |
@@ -50,10 +50,16 @@ namespace NetworkExtension { | |
[Introduced (PlatformName.iOS, 14,0, ObjCRuntime.PlatformArchitecture.All)] | |
[Introduced (PlatformName.MacCatalyst, 14,0, ObjCRuntime.PlatformArchitecture.All)] | |
public unsafe partial class NEDnsOverHttpsSettings : NEDnsSettings { | |
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)] | |
+ const string selIdentityReference = "identityReference"; | |
+ static readonly IntPtr selIdentityReferenceHandle = Selector.GetHandle ("identityReference"); | |
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)] | |
const string selServerURL = "serverURL"; | |
static readonly IntPtr selServerURLHandle = Selector.GetHandle ("serverURL"); | |
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)] | |
+ const string selSetIdentityReference_ = "setIdentityReference:"; | |
+ static readonly IntPtr selSetIdentityReference_Handle = Selector.GetHandle ("setIdentityReference:"); | |
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)] | |
const string selSetServerURL_ = "setServerURL:"; | |
static readonly IntPtr selSetServerURL_Handle = Selector.GetHandle ("setServerURL:"); | |
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)] | |
@@ -96,6 +102,37 @@ namespace NetworkExtension { | |
{ | |
} | |
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)] | |
+ [Introduced (PlatformName.MacOSX, 13,0, ObjCRuntime.PlatformArchitecture.All)] | |
+ [Introduced (PlatformName.iOS, 16,0, ObjCRuntime.PlatformArchitecture.All)] | |
+ [Introduced (PlatformName.MacCatalyst, 16,0, ObjCRuntime.PlatformArchitecture.All)] | |
+ public virtual NSData? IdentityReference { | |
+ [Introduced (PlatformName.MacOSX, 13,0, ObjCRuntime.PlatformArchitecture.All)] | |
+ [Introduced (PlatformName.iOS, 16,0, ObjCRuntime.PlatformArchitecture.All)] | |
+ [Introduced (PlatformName.MacCatalyst, 16,0, ObjCRuntime.PlatformArchitecture.All)] | |
+ [Export ("identityReference", ArgumentSemantic.Copy)] | |
+ get { | |
+ NSData? ret; | |
+ if (IsDirectBinding) { | |
+ ret = Runtime.GetNSObject<NSData> (global::ObjCRuntime.Messaging.IntPtr_objc_msgSend (this.Handle, selIdentityReferenceHandle))!; | |
+ } else { | |
+ ret = Runtime.GetNSObject<NSData> (global::ObjCRuntime.Messaging.IntPtr_objc_msgSendSuper (this.SuperHandle, selIdentityReferenceHandle))!; | |
+ } | |
+ return ret!; | |
+ } | |
+ [Introduced (PlatformName.MacOSX, 13,0, ObjCRuntime.PlatformArchitecture.All)] | |
+ [Introduced (PlatformName.iOS, 16,0, ObjCRuntime.PlatformArchitecture.All)] | |
+ [Introduced (PlatformName.MacCatalyst, 16,0, ObjCRuntime.PlatformArchitecture.All)] | |
+ [Export ("setIdentityReference:", ArgumentSemantic.Copy)] | |
+ set { | |
+ var value__handle__ = value.GetHandle (); | |
+ if (IsDirectBinding) { | |
+ global::ObjCRuntime.Messaging.void_objc_msgSend_IntPtr (this.Handle, selSetIdentityReference_Handle, value__handle__); | |
+ } else { | |
+ global::ObjCRuntime.Messaging.void_objc_msgSendSuper_IntPtr (this.SuperHandle, selSetIdentityReference_Handle, value__handle__); | |
+ } | |
+ } | |
+ } | |
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)] | |
public virtual NSUrl? ServerUrl { | |
[Export ("serverURL", ArgumentSemantic.Copy)] | |
diff --git a/old/mac/mobile/NetworkExtension/NEDnsOverTlsSettings.g.cs b/new/mac/mobile/NetworkExtension/NEDnsOverTlsSettings.g.cs | |
index b530b70..72832f5 100644 | |
--- a/old/mac/mobile/NetworkExtension/NEDnsOverTlsSettings.g.cs | |
+++ b/new/mac/mobile/NetworkExtension/NEDnsOverTlsSettings.g.cs | |
@@ -50,10 +50,16 @@ namespace NetworkExtension { | |
[Introduced (PlatformName.iOS, 14,0, ObjCRuntime.PlatformArchitecture.All)] | |
[Introduced (PlatformName.MacCatalyst, 14,0, ObjCRuntime.PlatformArchitecture.All)] | |
public unsafe partial class NEDnsOverTlsSettings : NEDnsSettings { | |
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)] | |
+ const string selIdentityReference = "identityReference"; | |
+ static readonly IntPtr selIdentityReferenceHandle = Selector.GetHandle ("identityReference"); | |
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)] | |
const string selServerName = "serverName"; | |
static readonly IntPtr selServerNameHandle = Selector.GetHandle ("serverName"); | |
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)] | |
+ const string selSetIdentityReference_ = "setIdentityReference:"; | |
+ static readonly IntPtr selSetIdentityReference_Handle = Selector.GetHandle ("setIdentityReference:"); | |
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)] | |
const string selSetServerName_ = "setServerName:"; | |
static readonly IntPtr selSetServerName_Handle = Selector.GetHandle ("setServerName:"); | |
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)] | |
@@ -96,6 +102,37 @@ namespace NetworkExtension { | |
{ | |
} | |
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)] | |
+ [Introduced (PlatformName.MacOSX, 13,0, ObjCRuntime.PlatformArchitecture.All)] | |
+ [Introduced (PlatformName.iOS, 16,0, ObjCRuntime.PlatformArchitecture.All)] | |
+ [Introduced (PlatformName.MacCatalyst, 16,0, ObjCRuntime.PlatformArchitecture.All)] | |
+ public virtual NSData? IdentityReference { | |
+ [Introduced (PlatformName.MacOSX, 13,0, ObjCRuntime.PlatformArchitecture.All)] | |
+ [Introduced (PlatformName.iOS, 16,0, ObjCRuntime.PlatformArchitecture.All)] | |
+ [Introduced (PlatformName.MacCatalyst, 16,0, ObjCRuntime.PlatformArchitecture.All)] | |
+ [Export ("identityReference", ArgumentSemantic.Copy)] | |
+ get { | |
+ NSData? ret; | |
+ if (IsDirectBinding) { | |
+ ret = Runtime.GetNSObject<NSData> (global::ObjCRuntime.Messaging.IntPtr_objc_msgSend (this.Handle, selIdentityReferenceHandle))!; | |
+ } else { | |
+ ret = Runtime.GetNSObject<NSData> (global::ObjCRuntime.Messaging.IntPtr_objc_msgSendSuper (this.SuperHandle, selIdentityReferenceHandle))!; | |
+ } | |
+ return ret!; | |
+ } | |
+ [Introduced (PlatformName.MacOSX, 13,0, ObjCRuntime.PlatformArchitecture.All)] | |
+ [Introduced (PlatformName.iOS, 16,0, ObjCRuntime.PlatformArchitecture.All)] | |
+ [Introduced (PlatformName.MacCatalyst, 16,0, ObjCRuntime.PlatformArchitecture.All)] | |
+ [Export ("setIdentityReference:", ArgumentSemantic.Copy)] | |
+ set { | |
+ var value__handle__ = value.GetHandle (); | |
+ if (IsDirectBinding) { | |
+ global::ObjCRuntime.Messaging.void_objc_msgSend_IntPtr (this.Handle, selSetIdentityReference_Handle, value__handle__); | |
+ } else { | |
+ global::ObjCRuntime.Messaging.void_objc_msgSendSuper_IntPtr (this.SuperHandle, selSetIdentityReference_Handle, value__handle__); | |
+ } | |
+ } | |
+ } | |
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)] | |
public virtual string? ServerName { | |
[Export ("serverName")] | |
diff --git a/new/mac/mobile/NetworkExtension/NEEthernetTunnelNetworkSettings.g.cs b/new/mac/mobile/NetworkExtension/NEEthernetTunnelNetworkSettings.g.cs | |
new file mode 100644 | |
index 0000000..88df8fa | |
--- /dev/null | |
+++ b/new/mac/mobile/NetworkExtension/NEEthernetTunnelNetworkSettings.g.cs | |
@@ -0,0 +1,129 @@ | |
+// | |
+// Auto-generated from generator.cs, do not edit | |
+// | |
+// We keep references to objects, so warning 414 is expected | |
+#pragma warning disable 414 | |
+using System; | |
+using System.Diagnostics; | |
+using System.ComponentModel; | |
+using System.Threading.Tasks; | |
+using System.Runtime.InteropServices; | |
+using System.Diagnostics.CodeAnalysis; | |
+using QTKit; | |
+using Metal; | |
+using CoreML; | |
+using OpenGL; | |
+using AppKit; | |
+using Photos; | |
+using ModelIO; | |
+using Network; | |
+using SceneKit; | |
+using Contacts; | |
+using Security; | |
+using CloudKit; | |
+using AudioUnit; | |
+using CoreVideo; | |
+using CoreMedia; | |
+using CoreImage; | |
+using SpriteKit; | |
+using Foundation; | |
+using ObjCRuntime; | |
+using MediaPlayer; | |
+using GameplayKit; | |
+using CoreGraphics; | |
+using CoreLocation; | |
+using AVFoundation; | |
+using FileProvider; | |
+using CoreAnimation; | |
+using CoreFoundation; | |
+using NetworkExtension; | |
+using MetalPerformanceShadersGraph; | |
+#nullable enable | |
+#if !NET | |
+using NativeHandle = System.IntPtr; | |
+#endif | |
+namespace NetworkExtension { | |
+ [Register("NEEthernetTunnelNetworkSettings", true)] | |
+ [Unavailable (PlatformName.WatchOS, ObjCRuntime.PlatformArchitecture.All)] | |
+ [Unavailable (PlatformName.TvOS, ObjCRuntime.PlatformArchitecture.All)] | |
+ [Unavailable (PlatformName.iOS, ObjCRuntime.PlatformArchitecture.All)] | |
+ [Introduced (PlatformName.MacOSX, 13,0, ObjCRuntime.PlatformArchitecture.All)] | |
+ public unsafe partial class NEEthernetTunnelNetworkSettings : NEPacketTunnelNetworkSettings { | |
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)] | |
+ const string selEthernetAddress = "ethernetAddress"; | |
+ static readonly IntPtr selEthernetAddressHandle = Selector.GetHandle ("ethernetAddress"); | |
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)] | |
+ const string selInitWithTunnelRemoteAddress_EthernetAddress_Mtu_ = "initWithTunnelRemoteAddress:ethernetAddress:mtu:"; | |
+ static readonly IntPtr selInitWithTunnelRemoteAddress_EthernetAddress_Mtu_Handle = Selector.GetHandle ("initWithTunnelRemoteAddress:ethernetAddress:mtu:"); | |
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)] | |
+ static readonly IntPtr class_ptr = Class.GetHandle ("NEEthernetTunnelNetworkSettings"); | |
+ public override IntPtr ClassHandle { get { return class_ptr; } } | |
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)] | |
+ [EditorBrowsable (EditorBrowsableState.Advanced)] | |
+ [Export ("init")] | |
+ public NEEthernetTunnelNetworkSettings () : base (NSObjectFlag.Empty) | |
+ { | |
+ if (IsDirectBinding) { | |
+ InitializeHandle (global::ObjCRuntime.Messaging.IntPtr_objc_msgSend (this.Handle, global::ObjCRuntime.Selector.Init), "init"); | |
+ } else { | |
+ InitializeHandle (global::ObjCRuntime.Messaging.IntPtr_objc_msgSendSuper (this.SuperHandle, global::ObjCRuntime.Selector.Init), "init"); | |
+ } | |
+ } | |
+ | |
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)] | |
+ [DesignatedInitializer] | |
+ [EditorBrowsable (EditorBrowsableState.Advanced)] | |
+ [Export ("initWithCoder:")] | |
+ public NEEthernetTunnelNetworkSettings (NSCoder coder) : base (NSObjectFlag.Empty) | |
+ { | |
+ if (IsDirectBinding) { | |
+ InitializeHandle (global::ObjCRuntime.Messaging.IntPtr_objc_msgSend_IntPtr (this.Handle, Selector.InitWithCoder, coder.Handle), "initWithCoder:"); | |
+ } else { | |
+ InitializeHandle (global::ObjCRuntime.Messaging.IntPtr_objc_msgSendSuper_IntPtr (this.SuperHandle, Selector.InitWithCoder, coder.Handle), "initWithCoder:"); | |
+ } | |
+ } | |
+ | |
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)] | |
+ [EditorBrowsable (EditorBrowsableState.Advanced)] | |
+ protected NEEthernetTunnelNetworkSettings (NSObjectFlag t) : base (t) | |
+ { | |
+ } | |
+ | |
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)] | |
+ [EditorBrowsable (EditorBrowsableState.Advanced)] | |
+ protected internal NEEthernetTunnelNetworkSettings (IntPtr handle) : base (handle) | |
+ { | |
+ } | |
+ | |
+ [Export ("initWithTunnelRemoteAddress:ethernetAddress:mtu:")] | |
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)] | |
+ public NEEthernetTunnelNetworkSettings (string address, string ethernetAddress, nint mtu) | |
+ : base (NSObjectFlag.Empty) | |
+ { | |
+ if (address is null) | |
+ ObjCRuntime.ThrowHelper.ThrowArgumentNullException (nameof (address)); | |
+ if (ethernetAddress is null) | |
+ ObjCRuntime.ThrowHelper.ThrowArgumentNullException (nameof (ethernetAddress)); | |
+ var nsaddress = CFString.CreateNative (address); | |
+ var nsethernetAddress = CFString.CreateNative (ethernetAddress); | |
+ if (IsDirectBinding) { | |
+ InitializeHandle (global::ObjCRuntime.Messaging.IntPtr_objc_msgSend_IntPtr_IntPtr_IntPtr (this.Handle, selInitWithTunnelRemoteAddress_EthernetAddress_Mtu_Handle, nsaddress, nsethernetAddress, (IntPtr) mtu), "initWithTunnelRemoteAddress:ethernetAddress:mtu:"); | |
+ } else { | |
+ InitializeHandle (global::ObjCRuntime.Messaging.IntPtr_objc_msgSendSuper_IntPtr_IntPtr_IntPtr (this.SuperHandle, selInitWithTunnelRemoteAddress_EthernetAddress_Mtu_Handle, nsaddress, nsethernetAddress, (IntPtr) mtu), "initWithTunnelRemoteAddress:ethernetAddress:mtu:"); | |
+ } | |
+ CFString.ReleaseNative (nsaddress); | |
+ CFString.ReleaseNative (nsethernetAddress); | |
+ } | |
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)] | |
+ public virtual string EthernetAddress { | |
+ [Export ("ethernetAddress")] | |
+ get { | |
+ if (IsDirectBinding) { | |
+ return CFString.FromHandle (global::ObjCRuntime.Messaging.IntPtr_objc_msgSend (this.Handle, selEthernetAddressHandle))!; | |
+ } else { | |
+ return CFString.FromHandle (global::ObjCRuntime.Messaging.IntPtr_objc_msgSendSuper (this.SuperHandle, selEthernetAddressHandle))!; | |
+ } | |
+ } | |
+ } | |
+ } /* class NEEthernetTunnelNetworkSettings */ | |
+} | |
diff --git a/new/mac/mobile/NetworkExtension/NEEthernetTunnelProvider.g.cs b/new/mac/mobile/NetworkExtension/NEEthernetTunnelProvider.g.cs | |
new file mode 100644 | |
index 0000000..21b08f8 | |
--- /dev/null | |
+++ b/new/mac/mobile/NetworkExtension/NEEthernetTunnelProvider.g.cs | |
@@ -0,0 +1,80 @@ | |
+// | |
+// Auto-generated from generator.cs, do not edit | |
+// | |
+// We keep references to objects, so warning 414 is expected | |
+#pragma warning disable 414 | |
+using System; | |
+using System.Diagnostics; | |
+using System.ComponentModel; | |
+using System.Threading.Tasks; | |
+using System.Runtime.InteropServices; | |
+using System.Diagnostics.CodeAnalysis; | |
+using QTKit; | |
+using Metal; | |
+using CoreML; | |
+using OpenGL; | |
+using AppKit; | |
+using Photos; | |
+using ModelIO; | |
+using Network; | |
+using SceneKit; | |
+using Contacts; | |
+using Security; | |
+using CloudKit; | |
+using AudioUnit; | |
+using CoreVideo; | |
+using CoreMedia; | |
+using CoreImage; | |
+using SpriteKit; | |
+using Foundation; | |
+using ObjCRuntime; | |
+using MediaPlayer; | |
+using GameplayKit; | |
+using CoreGraphics; | |
+using CoreLocation; | |
+using AVFoundation; | |
+using FileProvider; | |
+using CoreAnimation; | |
+using CoreFoundation; | |
+using NetworkExtension; | |
+using MetalPerformanceShadersGraph; | |
+#nullable enable | |
+#if !NET | |
+using NativeHandle = System.IntPtr; | |
+#endif | |
+namespace NetworkExtension { | |
+ [Register("NEEthernetTunnelProvider", true)] | |
+ [Unavailable (PlatformName.WatchOS, ObjCRuntime.PlatformArchitecture.All)] | |
+ [Unavailable (PlatformName.TvOS, ObjCRuntime.PlatformArchitecture.All)] | |
+ [Unavailable (PlatformName.iOS, ObjCRuntime.PlatformArchitecture.All)] | |
+ [Introduced (PlatformName.MacOSX, 13,0, ObjCRuntime.PlatformArchitecture.All)] | |
+ public unsafe partial class NEEthernetTunnelProvider : NEPacketTunnelProvider { | |
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)] | |
+ static readonly IntPtr class_ptr = Class.GetHandle ("NEEthernetTunnelProvider"); | |
+ public override IntPtr ClassHandle { get { return class_ptr; } } | |
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)] | |
+ [EditorBrowsable (EditorBrowsableState.Advanced)] | |
+ [Export ("init")] | |
+ public NEEthernetTunnelProvider () : base (NSObjectFlag.Empty) | |
+ { | |
+ if (IsDirectBinding) { | |
+ InitializeHandle (global::ObjCRuntime.Messaging.IntPtr_objc_msgSend (this.Handle, global::ObjCRuntime.Selector.Init), "init"); | |
+ } else { | |
+ InitializeHandle (global::ObjCRuntime.Messaging.IntPtr_objc_msgSendSuper (this.SuperHandle, global::ObjCRuntime.Selector.Init), "init"); | |
+ } | |
+ } | |
+ | |
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)] | |
+ [EditorBrowsable (EditorBrowsableState.Advanced)] | |
+ protected NEEthernetTunnelProvider (NSObjectFlag t) : base (t) | |
+ { | |
+ } | |
+ | |
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)] | |
+ [EditorBrowsable (EditorBrowsableState.Advanced)] | |
+ protected internal NEEthernetTunnelProvider (IntPtr handle) : base (handle) | |
+ { | |
+ } | |
+ | |
+ } /* class NEEthernetTunnelProvider */ | |
+} | |
diff --git a/old/mac/mobile/NetworkExtension/NEIPv4Settings.g.cs b/new/mac/mobile/NetworkExtension/NEIPv4Settings.g.cs | |
index 1ef29f0..d1555cf 100644 | |
--- a/old/mac/mobile/NetworkExtension/NEIPv4Settings.g.cs | |
+++ b/new/mac/mobile/NetworkExtension/NEIPv4Settings.g.cs | |
@@ -69,12 +69,18 @@ namespace NetworkExtension { | |
const string selInitWithCoder_ = "initWithCoder:"; | |
static readonly IntPtr selInitWithCoder_Handle = Selector.GetHandle ("initWithCoder:"); | |
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)] | |
+ const string selRouter = "router"; | |
+ static readonly IntPtr selRouterHandle = Selector.GetHandle ("router"); | |
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)] | |
const string selSetExcludedRoutes_ = "setExcludedRoutes:"; | |
static readonly IntPtr selSetExcludedRoutes_Handle = Selector.GetHandle ("setExcludedRoutes:"); | |
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)] | |
const string selSetIncludedRoutes_ = "setIncludedRoutes:"; | |
static readonly IntPtr selSetIncludedRoutes_Handle = Selector.GetHandle ("setIncludedRoutes:"); | |
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)] | |
+ const string selSetRouter_ = "setRouter:"; | |
+ static readonly IntPtr selSetRouter_Handle = Selector.GetHandle ("setRouter:"); | |
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)] | |
const string selSubnetMasks = "subnetMasks"; | |
static readonly IntPtr selSubnetMasksHandle = Selector.GetHandle ("subnetMasks"); | |
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)] | |
@@ -211,6 +217,39 @@ namespace NetworkExtension { | |
} | |
} | |
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)] | |
+ [Unavailable (PlatformName.WatchOS, ObjCRuntime.PlatformArchitecture.All)] | |
+ [Unavailable (PlatformName.TvOS, ObjCRuntime.PlatformArchitecture.All)] | |
+ [Unavailable (PlatformName.iOS, ObjCRuntime.PlatformArchitecture.All)] | |
+ [Introduced (PlatformName.MacOSX, 13,0, ObjCRuntime.PlatformArchitecture.All)] | |
+ public virtual string? Router { | |
+ [Unavailable (PlatformName.WatchOS, ObjCRuntime.PlatformArchitecture.All)] | |
+ [Unavailable (PlatformName.TvOS, ObjCRuntime.PlatformArchitecture.All)] | |
+ [Unavailable (PlatformName.iOS, ObjCRuntime.PlatformArchitecture.All)] | |
+ [Introduced (PlatformName.MacOSX, 13,0, ObjCRuntime.PlatformArchitecture.All)] | |
+ [Export ("router")] | |
+ get { | |
+ if (IsDirectBinding) { | |
+ return CFString.FromHandle (global::ObjCRuntime.Messaging.IntPtr_objc_msgSend (this.Handle, selRouterHandle))!; | |
+ } else { | |
+ return CFString.FromHandle (global::ObjCRuntime.Messaging.IntPtr_objc_msgSendSuper (this.SuperHandle, selRouterHandle))!; | |
+ } | |
+ } | |
+ [Unavailable (PlatformName.WatchOS, ObjCRuntime.PlatformArchitecture.All)] | |
+ [Unavailable (PlatformName.TvOS, ObjCRuntime.PlatformArchitecture.All)] | |
+ [Unavailable (PlatformName.iOS, ObjCRuntime.PlatformArchitecture.All)] | |
+ [Introduced (PlatformName.MacOSX, 13,0, ObjCRuntime.PlatformArchitecture.All)] | |
+ [Export ("setRouter:")] | |
+ set { | |
+ var nsvalue = CFString.CreateNative (value); | |
+ if (IsDirectBinding) { | |
+ global::ObjCRuntime.Messaging.void_objc_msgSend_IntPtr (this.Handle, selSetRouter_Handle, nsvalue); | |
+ } else { | |
+ global::ObjCRuntime.Messaging.void_objc_msgSendSuper_IntPtr (this.SuperHandle, selSetRouter_Handle, nsvalue); | |
+ } | |
+ CFString.ReleaseNative (nsvalue); | |
+ } | |
+ } | |
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)] | |
public virtual string[] SubnetMasks { | |
[Export ("subnetMasks")] | |
get { | |
diff --git a/old/mac/mobile/NetworkExtension/NEVpnConnection.g.cs b/new/mac/mobile/NetworkExtension/NEVpnConnection.g.cs | |
index c349e26..c39579b 100644 | |
--- a/old/mac/mobile/NetworkExtension/NEVpnConnection.g.cs | |
+++ b/new/mac/mobile/NetworkExtension/NEVpnConnection.g.cs | |
@@ -51,6 +51,9 @@ namespace NetworkExtension { | |
const string selConnectedDate = "connectedDate"; | |
static readonly IntPtr selConnectedDateHandle = Selector.GetHandle ("connectedDate"); | |
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)] | |
+ const string selFetchLastDisconnectErrorWithCompletionHandler_ = "fetchLastDisconnectErrorWithCompletionHandler:"; | |
+ static readonly IntPtr selFetchLastDisconnectErrorWithCompletionHandler_Handle = Selector.GetHandle ("fetchLastDisconnectErrorWithCompletionHandler:"); | |
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)] | |
const string selManager = "manager"; | |
static readonly IntPtr selManagerHandle = Selector.GetHandle ("manager"); | |
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)] | |
@@ -92,6 +95,46 @@ namespace NetworkExtension { | |
{ | |
} | |
+ [Export ("fetchLastDisconnectErrorWithCompletionHandler:")] | |
+ [Unavailable (PlatformName.WatchOS, ObjCRuntime.PlatformArchitecture.All)] | |
+ [Unavailable (PlatformName.TvOS, ObjCRuntime.PlatformArchitecture.All)] | |
+ [Introduced (PlatformName.MacOSX, 13,0, ObjCRuntime.PlatformArchitecture.All)] | |
+ [Introduced (PlatformName.iOS, 16,0, ObjCRuntime.PlatformArchitecture.All)] | |
+ [Introduced (PlatformName.MacCatalyst, 16,0, ObjCRuntime.PlatformArchitecture.All)] | |
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)] | |
+ public unsafe virtual void FetchLastDisconnectError ([BlockProxy (typeof (ObjCRuntime.Trampolines.NIDActionArity1V16))]global::System.Action<NSError> handler) | |
+ { | |
+ if (handler is null) | |
+ ObjCRuntime.ThrowHelper.ThrowArgumentNullException (nameof (handler)); | |
+ BlockLiteral *block_ptr_handler; | |
+ BlockLiteral block_handler; | |
+ block_handler = new BlockLiteral (); | |
+ block_ptr_handler = &block_handler; | |
+ block_handler.SetupBlockUnsafe (Trampolines.SDActionArity1V16.Handler, handler); | |
+ if (IsDirectBinding) { | |
+ global::ObjCRuntime.Messaging.void_objc_msgSend_IntPtr (this.Handle, selFetchLastDisconnectErrorWithCompletionHandler_Handle, (IntPtr) block_ptr_handler); | |
+ } else { | |
+ global::ObjCRuntime.Messaging.void_objc_msgSendSuper_IntPtr (this.SuperHandle, selFetchLastDisconnectErrorWithCompletionHandler_Handle, (IntPtr) block_ptr_handler); | |
+ } | |
+ block_ptr_handler->CleanupBlock (); | |
+ } | |
+ [Unavailable (PlatformName.WatchOS, ObjCRuntime.PlatformArchitecture.All)] | |
+ [Unavailable (PlatformName.TvOS, ObjCRuntime.PlatformArchitecture.All)] | |
+ [Introduced (PlatformName.MacOSX, 13,0, ObjCRuntime.PlatformArchitecture.All)] | |
+ [Introduced (PlatformName.iOS, 16,0, ObjCRuntime.PlatformArchitecture.All)] | |
+ [Introduced (PlatformName.MacCatalyst, 16,0, ObjCRuntime.PlatformArchitecture.All)] | |
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)] | |
+ public unsafe virtual Task FetchLastDisconnectErrorAsync () | |
+ { | |
+ var tcs = new TaskCompletionSource<bool> (); | |
+ FetchLastDisconnectError((obj_) => { | |
+ if (obj_ != null) | |
+ tcs.SetException (new NSErrorException(obj_)); | |
+ else | |
+ tcs.SetResult (true); | |
+ }); | |
+ return tcs.Task; | |
+ } | |
[Export ("startVPNTunnelAndReturnError:")] | |
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)] | |
public virtual bool StartVpnTunnel (out NSError error) | |
diff --git a/new/mac/mobile/NetworkExtension/NEVpnConnectionError.g.cs b/new/mac/mobile/NetworkExtension/NEVpnConnectionError.g.cs | |
new file mode 100644 | |
index 0000000..5d436b9 | |
--- /dev/null | |
+++ b/new/mac/mobile/NetworkExtension/NEVpnConnectionError.g.cs | |
@@ -0,0 +1,89 @@ | |
+// | |
+// Auto-generated from generator.cs, do not edit | |
+// | |
+// We keep references to objects, so warning 414 is expected | |
+#pragma warning disable 414 | |
+using System; | |
+using System.Diagnostics; | |
+using System.ComponentModel; | |
+using System.Threading.Tasks; | |
+using System.Runtime.InteropServices; | |
+using System.Diagnostics.CodeAnalysis; | |
+using QTKit; | |
+using Metal; | |
+using CoreML; | |
+using OpenGL; | |
+using AppKit; | |
+using Photos; | |
+using ModelIO; | |
+using Network; | |
+using SceneKit; | |
+using Contacts; | |
+using Security; | |
+using CloudKit; | |
+using AudioUnit; | |
+using CoreVideo; | |
+using CoreMedia; | |
+using CoreImage; | |
+using SpriteKit; | |
+using Foundation; | |
+using ObjCRuntime; | |
+using MediaPlayer; | |
+using GameplayKit; | |
+using CoreGraphics; | |
+using CoreLocation; | |
+using AVFoundation; | |
+using FileProvider; | |
+using CoreAnimation; | |
+using CoreFoundation; | |
+using NetworkExtension; | |
+using MetalPerformanceShadersGraph; | |
+#nullable enable | |
+#if !NET | |
+using NativeHandle = System.IntPtr; | |
+#endif | |
+namespace NetworkExtension { | |
+ [Unavailable (PlatformName.WatchOS, ObjCRuntime.PlatformArchitecture.All)] | |
+ [Unavailable (PlatformName.TvOS, ObjCRuntime.PlatformArchitecture.All)] | |
+ [Introduced (PlatformName.MacOSX, 13,0, ObjCRuntime.PlatformArchitecture.All)] | |
+ [Introduced (PlatformName.iOS, 16,0, ObjCRuntime.PlatformArchitecture.All)] | |
+ [Introduced (PlatformName.MacCatalyst, 16,0, ObjCRuntime.PlatformArchitecture.All)] | |
+ [Native] | |
+ public enum NEVpnConnectionError : long { | |
+ Overslept = 1, | |
+ NoNetworkAvailable = 2, | |
+ UnrecoverableNetworkChange = 3, | |
+ ConfigurationFailed = 4, | |
+ ServerAddressResolutionFailed = 5, | |
+ ServerNotResponding = 6, | |
+ ServerDead = 7, | |
+ AuthenticationFailed = 8, | |
+ ClientCertificateInvalid = 9, | |
+ ClientCertificateNotYetValid = 10, | |
+ ClientCertificateExpired = 11, | |
+ PluginFailed = 12, | |
+ ConfigurationNotFound = 13, | |
+ PluginDisabled = 14, | |
+ NegotiationFailed = 15, | |
+ ServerDisconnected = 16, | |
+ ServerCertificateInvalid = 17, | |
+ ServerCertificateNotYetValid = 18, | |
+ ServerCertificateExpired = 19, | |
+ } | |
+ [Unavailable (PlatformName.WatchOS, ObjCRuntime.PlatformArchitecture.All)] | |
+ [Unavailable (PlatformName.TvOS, ObjCRuntime.PlatformArchitecture.All)] | |
+ [Introduced (PlatformName.MacOSX, 13,0, ObjCRuntime.PlatformArchitecture.All)] | |
+ [Introduced (PlatformName.iOS, 16,0, ObjCRuntime.PlatformArchitecture.All)] | |
+ [Introduced (PlatformName.MacCatalyst, 16,0, ObjCRuntime.PlatformArchitecture.All)] | |
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)] | |
+ static public partial class NEVpnConnectionErrorExtensions { | |
+ [Field ("NEVPNConnectionErrorDomain", "NetworkExtension")] | |
+ static NSString? _domain; | |
+ public static NSString? GetDomain (this NEVpnConnectionError self) | |
+ { | |
+ if (_domain is null) | |
+ _domain = Dlfcn.GetStringConstant (Libraries.NetworkExtension.Handle, "NEVPNConnectionErrorDomain"); | |
+ return _domain; | |
+ } | |
+ } | |
+} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment