TapCommon-Unity/Runtime/Internal/Duration/Wrapper/PlatformPINVOKE.cs

260 lines
14 KiB
C#

//------------------------------------------------------------------------------
// <auto-generated />
//
// This file was automatically generated by SWIG (http://www.swig.org).
// Version 4.0.2
//
// Do not make changes to this file unless you know what you are doing--modify
// the SWIG interface file instead.
//------------------------------------------------------------------------------
using System.Runtime.InteropServices;
namespace com.taptap.tapsdk.bindings.csharp {
class PlatformPINVOKE {
protected class SWIGExceptionHelper {
[UnmanagedFunctionPointer(CallingConvention.Cdecl)]
public delegate void ExceptionDelegate(string message);
[UnmanagedFunctionPointer(CallingConvention.Cdecl)]
public delegate void ExceptionArgumentDelegate(string message, string paramName);
static ExceptionDelegate applicationDelegate = new ExceptionDelegate(SetPendingApplicationException);
static ExceptionDelegate arithmeticDelegate = new ExceptionDelegate(SetPendingArithmeticException);
static ExceptionDelegate divideByZeroDelegate = new ExceptionDelegate(SetPendingDivideByZeroException);
static ExceptionDelegate indexOutOfRangeDelegate = new ExceptionDelegate(SetPendingIndexOutOfRangeException);
static ExceptionDelegate invalidCastDelegate = new ExceptionDelegate(SetPendingInvalidCastException);
static ExceptionDelegate invalidOperationDelegate = new ExceptionDelegate(SetPendingInvalidOperationException);
static ExceptionDelegate ioDelegate = new ExceptionDelegate(SetPendingIOException);
static ExceptionDelegate nullReferenceDelegate = new ExceptionDelegate(SetPendingNullReferenceException);
static ExceptionDelegate outOfMemoryDelegate = new ExceptionDelegate(SetPendingOutOfMemoryException);
static ExceptionDelegate overflowDelegate = new ExceptionDelegate(SetPendingOverflowException);
static ExceptionDelegate systemDelegate = new ExceptionDelegate(SetPendingSystemException);
static ExceptionArgumentDelegate argumentDelegate = new ExceptionArgumentDelegate(SetPendingArgumentException);
static ExceptionArgumentDelegate argumentNullDelegate = new ExceptionArgumentDelegate(SetPendingArgumentNullException);
static ExceptionArgumentDelegate argumentOutOfRangeDelegate = new ExceptionArgumentDelegate(SetPendingArgumentOutOfRangeException);
[global::System.Runtime.InteropServices.DllImport(Bindings.DLL_NAME, EntryPoint="SWIGRegisterExceptionCallbacks_Platform")]
public static extern void SWIGRegisterExceptionCallbacks_Platform(
ExceptionDelegate applicationDelegate,
ExceptionDelegate arithmeticDelegate,
ExceptionDelegate divideByZeroDelegate,
ExceptionDelegate indexOutOfRangeDelegate,
ExceptionDelegate invalidCastDelegate,
ExceptionDelegate invalidOperationDelegate,
ExceptionDelegate ioDelegate,
ExceptionDelegate nullReferenceDelegate,
ExceptionDelegate outOfMemoryDelegate,
ExceptionDelegate overflowDelegate,
ExceptionDelegate systemExceptionDelegate);
[global::System.Runtime.InteropServices.DllImport(Bindings.DLL_NAME, EntryPoint="SWIGRegisterExceptionArgumentCallbacks_Platform")]
public static extern void SWIGRegisterExceptionCallbacksArgument_Platform(
ExceptionArgumentDelegate argumentDelegate,
ExceptionArgumentDelegate argumentNullDelegate,
ExceptionArgumentDelegate argumentOutOfRangeDelegate);
[AOT.MonoPInvokeCallback(typeof(ExceptionDelegate))]
static void SetPendingApplicationException(string message) {
SWIGPendingException.Set(new global::System.ApplicationException(message, SWIGPendingException.Retrieve()));
}
[AOT.MonoPInvokeCallback(typeof(ExceptionDelegate))]
static void SetPendingArithmeticException(string message) {
SWIGPendingException.Set(new global::System.ArithmeticException(message, SWIGPendingException.Retrieve()));
}
[AOT.MonoPInvokeCallback(typeof(ExceptionDelegate))]
static void SetPendingDivideByZeroException(string message) {
SWIGPendingException.Set(new global::System.DivideByZeroException(message, SWIGPendingException.Retrieve()));
}
[AOT.MonoPInvokeCallback(typeof(ExceptionDelegate))]
static void SetPendingIndexOutOfRangeException(string message) {
SWIGPendingException.Set(new global::System.IndexOutOfRangeException(message, SWIGPendingException.Retrieve()));
}
[AOT.MonoPInvokeCallback(typeof(ExceptionDelegate))]
static void SetPendingInvalidCastException(string message) {
SWIGPendingException.Set(new global::System.InvalidCastException(message, SWIGPendingException.Retrieve()));
}
[AOT.MonoPInvokeCallback(typeof(ExceptionDelegate))]
static void SetPendingInvalidOperationException(string message) {
SWIGPendingException.Set(new global::System.InvalidOperationException(message, SWIGPendingException.Retrieve()));
}
[AOT.MonoPInvokeCallback(typeof(ExceptionDelegate))]
static void SetPendingIOException(string message) {
SWIGPendingException.Set(new global::System.IO.IOException(message, SWIGPendingException.Retrieve()));
}
[AOT.MonoPInvokeCallback(typeof(ExceptionDelegate))]
static void SetPendingNullReferenceException(string message) {
SWIGPendingException.Set(new global::System.NullReferenceException(message, SWIGPendingException.Retrieve()));
}
[AOT.MonoPInvokeCallback(typeof(ExceptionDelegate))]
static void SetPendingOutOfMemoryException(string message) {
SWIGPendingException.Set(new global::System.OutOfMemoryException(message, SWIGPendingException.Retrieve()));
}
[AOT.MonoPInvokeCallback(typeof(ExceptionDelegate))]
static void SetPendingOverflowException(string message) {
SWIGPendingException.Set(new global::System.OverflowException(message, SWIGPendingException.Retrieve()));
}
[AOT.MonoPInvokeCallback(typeof(ExceptionDelegate))]
static void SetPendingSystemException(string message) {
SWIGPendingException.Set(new global::System.SystemException(message, SWIGPendingException.Retrieve()));
}
[AOT.MonoPInvokeCallback(typeof(ExceptionArgumentDelegate))]
static void SetPendingArgumentException(string message, string paramName) {
SWIGPendingException.Set(new global::System.ArgumentException(message, paramName, SWIGPendingException.Retrieve()));
}
[AOT.MonoPInvokeCallback(typeof(ExceptionArgumentDelegate))]
static void SetPendingArgumentNullException(string message, string paramName) {
global::System.Exception e = SWIGPendingException.Retrieve();
if (e != null) message = message + " Inner Exception: " + e.Message;
SWIGPendingException.Set(new global::System.ArgumentNullException(paramName, message));
}
[AOT.MonoPInvokeCallback(typeof(ExceptionArgumentDelegate))]
static void SetPendingArgumentOutOfRangeException(string message, string paramName) {
global::System.Exception e = SWIGPendingException.Retrieve();
if (e != null) message = message + " Inner Exception: " + e.Message;
SWIGPendingException.Set(new global::System.ArgumentOutOfRangeException(paramName, message));
}
static SWIGExceptionHelper() {
SWIGRegisterExceptionCallbacks_Platform(
applicationDelegate,
arithmeticDelegate,
divideByZeroDelegate,
indexOutOfRangeDelegate,
invalidCastDelegate,
invalidOperationDelegate,
ioDelegate,
nullReferenceDelegate,
outOfMemoryDelegate,
overflowDelegate,
systemDelegate);
SWIGRegisterExceptionCallbacksArgument_Platform(
argumentDelegate,
argumentNullDelegate,
argumentOutOfRangeDelegate);
}
}
protected static SWIGExceptionHelper swigExceptionHelper = new SWIGExceptionHelper();
public class SWIGPendingException {
[global::System.ThreadStatic]
private static global::System.Exception pendingException = null;
private static int numExceptionsPending = 0;
private static global::System.Object exceptionsLock = null;
public static bool Pending {
get {
bool pending = false;
if (numExceptionsPending > 0)
if (pendingException != null)
pending = true;
return pending;
}
}
public static void Set(global::System.Exception e) {
if (pendingException != null)
throw new global::System.ApplicationException("FATAL: An earlier pending exception from unmanaged code was missed and thus not thrown (" + pendingException.ToString() + ")", e);
pendingException = e;
lock(exceptionsLock) {
numExceptionsPending++;
}
}
public static global::System.Exception Retrieve() {
global::System.Exception e = null;
if (numExceptionsPending > 0) {
if (pendingException != null) {
e = pendingException;
pendingException = null;
lock(exceptionsLock) {
numExceptionsPending--;
}
}
}
return e;
}
static SWIGPendingException() {
exceptionsLock = new global::System.Object();
}
}
protected class SWIGStringHelper {
[UnmanagedFunctionPointer(CallingConvention.Cdecl)]
public delegate string SWIGStringDelegate(string message);
static SWIGStringDelegate stringDelegate = new SWIGStringDelegate(CreateString);
[global::System.Runtime.InteropServices.DllImport(Bindings.DLL_NAME, EntryPoint="SWIGRegisterStringCallback_Platform")]
public static extern void SWIGRegisterStringCallback_Platform(SWIGStringDelegate stringDelegate);
[AOT.MonoPInvokeCallback(typeof(SWIGStringDelegate))]
static string CreateString(string cString) {
return cString;
}
static SWIGStringHelper() {
SWIGRegisterStringCallback_Platform(stringDelegate);
}
}
static protected SWIGStringHelper swigStringHelper = new SWIGStringHelper();
static PlatformPINVOKE() {
}
[global::System.Runtime.InteropServices.DllImport(Bindings.DLL_NAME, EntryPoint="CSharp_comftaptapftapsdkfbindingsfcsharp_Window_OnForeground___")]
public static extern void Window_OnForeground();
[global::System.Runtime.InteropServices.DllImport(Bindings.DLL_NAME, EntryPoint="CSharp_comftaptapftapsdkfbindingsfcsharp_Window_OnBackground___")]
public static extern void Window_OnBackground();
[global::System.Runtime.InteropServices.DllImport(Bindings.DLL_NAME, EntryPoint="CSharp_comftaptapftapsdkfbindingsfcsharp_new_Window___")]
public static extern global::System.IntPtr new_Window();
[global::System.Runtime.InteropServices.DllImport(Bindings.DLL_NAME, EntryPoint="CSharp_comftaptapftapsdkfbindingsfcsharp_delete_Window___")]
public static extern void delete_Window(global::System.Runtime.InteropServices.HandleRef jarg1);
[global::System.Runtime.InteropServices.DllImport(Bindings.DLL_NAME, EntryPoint="CSharp_comftaptapftapsdkfbindingsfcsharp_Device_SetCurrent___")]
public static extern void Device_SetCurrent(global::System.Runtime.InteropServices.HandleRef jarg1);
[global::System.Runtime.InteropServices.DllImport(Bindings.DLL_NAME, EntryPoint="CSharp_comftaptapftapsdkfbindingsfcsharp_Device_GetCurrent___")]
public static extern global::System.IntPtr Device_GetCurrent();
[global::System.Runtime.InteropServices.DllImport(Bindings.DLL_NAME, EntryPoint="CSharp_comftaptapftapsdkfbindingsfcsharp_delete_Device___")]
public static extern void delete_Device(global::System.Runtime.InteropServices.HandleRef jarg1);
[global::System.Runtime.InteropServices.DllImport(Bindings.DLL_NAME, EntryPoint="CSharp_comftaptapftapsdkfbindingsfcsharp_Device_GetDeviceID___")]
public static extern string Device_GetDeviceID(global::System.Runtime.InteropServices.HandleRef jarg1);
[global::System.Runtime.InteropServices.DllImport(Bindings.DLL_NAME, EntryPoint="CSharp_comftaptapftapsdkfbindingsfcsharp_Device_GetCacheDir___")]
public static extern string Device_GetCacheDir(global::System.Runtime.InteropServices.HandleRef jarg1);
[global::System.Runtime.InteropServices.DllImport(Bindings.DLL_NAME, EntryPoint="CSharp_comftaptapftapsdkfbindingsfcsharp_Device_GetCaCertDir___")]
public static extern string Device_GetCaCertDir(global::System.Runtime.InteropServices.HandleRef jarg1);
[global::System.Runtime.InteropServices.DllImport(Bindings.DLL_NAME, EntryPoint="CSharp_comftaptapftapsdkfbindingsfcsharp_Device_GetDeviceType___")]
public static extern int Device_GetDeviceType(global::System.Runtime.InteropServices.HandleRef jarg1);
[global::System.Runtime.InteropServices.DllImport(Bindings.DLL_NAME, EntryPoint="CSharp_comftaptapftapsdkfbindingsfcsharp_Device_GetDeviceTypeSwigExplicitDevice___")]
public static extern int Device_GetDeviceTypeSwigExplicitDevice(global::System.Runtime.InteropServices.HandleRef jarg1);
[global::System.Runtime.InteropServices.DllImport(Bindings.DLL_NAME, EntryPoint="CSharp_comftaptapftapsdkfbindingsfcsharp_new_Device___")]
public static extern global::System.IntPtr new_Device();
[global::System.Runtime.InteropServices.DllImport(Bindings.DLL_NAME, EntryPoint="CSharp_comftaptapftapsdkfbindingsfcsharp_Device_director_connect___")]
public static extern void Device_director_connect(global::System.Runtime.InteropServices.HandleRef jarg1, Device.SwigDelegateDevice_0 delegate0, Device.SwigDelegateDevice_1 delegate1, Device.SwigDelegateDevice_2 delegate2, Device.SwigDelegateDevice_3 delegate3);
}
}