Skip to content

Commit 5a28379

Browse files
committed
[unitytls] Renamed mono_unity_unitytls_interface to unitytls_interface_struct
Change due the fact that the interface is soon to be used in other places.
1 parent 65af3e7 commit 5a28379

File tree

3 files changed

+11
-11
lines changed

3 files changed

+11
-11
lines changed

mcs/class/System/Mono.UnityTls/UnityTls.cs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -163,9 +163,9 @@ public struct unitytls_tlsctx_callbacks
163163
// ------------------------------------------------------------------------
164164

165165
// This native struct is used to provide all necessary fields and function calls from unitytls to the mono-unitytls-binding.
166-
// Native implementation lives in unity:Modules/TLS/TLSMonoIntegration.cpp and needs to be adapted to every change.
166+
// Native implementation lives in unity:Modules/TLS/InterfaceStruct.cpp and needs to be adapted to every change.
167167
[StructLayout (LayoutKind.Sequential)]
168-
public class mono_unity_unitytls_interface
168+
public class unitytls_interface_struct
169169
{
170170
public readonly UInt64 UNITYTLS_INVALID_HANDLE;
171171

@@ -233,19 +233,19 @@ public class mono_unity_unitytls_interface
233233
[MethodImplAttribute (MethodImplOptions.InternalCall)]
234234
private static extern IntPtr GetUnityTlsInterface ();
235235

236-
private static mono_unity_unitytls_interface marshalledInterface = null;
236+
private static unitytls_interface_struct marshalledInterface = null;
237237

238238
public static bool IsSupported => NativeInterface != null;
239239

240-
public static mono_unity_unitytls_interface NativeInterface
240+
public static unitytls_interface_struct NativeInterface
241241
{
242242
get
243243
{
244244
if (marshalledInterface == null) {
245245
IntPtr rawInterface = GetUnityTlsInterface ();
246246
if (rawInterface == IntPtr.Zero)
247247
return null;
248-
marshalledInterface = Marshal.PtrToStructure<mono_unity_unitytls_interface> (rawInterface);
248+
marshalledInterface = Marshal.PtrToStructure<unitytls_interface_struct> (rawInterface);
249249
}
250250
return marshalledInterface;
251251
}

mono/metadata/unity-utils.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -887,16 +887,16 @@ MonoClass* mono_unity_defaults_get_byte_class()
887887

888888
//unitytls
889889

890-
static mono_unity_unitytls_interface* gUnitytlsInterface = NULL;
890+
static unitytls_interface_struct* gUnitytlsInterface = NULL;
891891

892-
MONO_API mono_unity_unitytls_interface*
892+
MONO_API unitytls_interface_struct*
893893
mono_unity_get_unitytls_interface()
894894
{
895895
return gUnitytlsInterface;
896896
}
897897

898898
MONO_API void
899-
mono_unity_install_unitytls_interface(mono_unity_unitytls_interface* callbacks)
899+
mono_unity_install_unitytls_interface(unitytls_interface_struct* callbacks)
900900
{
901901
gUnitytlsInterface = callbacks;
902902
}

mono/metadata/unity-utils.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -145,9 +145,9 @@ MonoClass* mono_unity_defaults_get_delegate_class();
145145
MonoClass* mono_unity_defaults_get_byte_class();
146146

147147
//unitytls
148-
typedef struct mono_unity_unitytls_interface mono_unity_unitytls_interface;
149-
MONO_API mono_unity_unitytls_interface* mono_unity_get_unitytls_interface();
150-
MONO_API void mono_unity_install_unitytls_interface(mono_unity_unitytls_interface* callbacks);
148+
typedef struct unitytls_interface_struct unitytls_interface_struct;
149+
MONO_API unitytls_interface_struct* mono_unity_get_unitytls_interface();
150+
MONO_API void mono_unity_install_unitytls_interface(unitytls_interface_struct* callbacks);
151151

152152
//misc
153153
MonoAssembly* mono_unity_assembly_get_mscorlib();

0 commit comments

Comments
 (0)