Esempio n. 1
0
 internal static int JNI_OnLoad(JavaVM_ *javaVM)
 {
     if (OS.IsWindows)
     {
         return(JNINativeImports_Windows.JNI_OnLoad(javaVM));
     }
     if (OS.IsLinux)
     {
         return(JNINativeImports_Linux.JNI_OnLoad(javaVM));
     }
     throw new ArgumentException("Unknown OS. Please check if there is an implementation of KD.Dova for your operating system.");
 }
Esempio n. 2
0
 internal static int JNI_CreateJavaVM(out IntPtr pVM, out IntPtr pEnv, JavaVMInitArgs *args)
 {
     if (OS.IsWindows)
     {
         return(JNINativeImports_Windows.JNI_CreateJavaVM(out pVM, out pEnv, args));
     }
     if (OS.IsLinux)
     {
         return(JNINativeImports_Linux.JNI_CreateJavaVM(out pVM, out pEnv, args));
     }
     throw new ArgumentException("Unknown OS. Please check if there is an implementation of KD.Dova for your operating system.");
 }
Esempio n. 3
0
 internal static int JNI_GetCreatedJavaVMs(out IntPtr pVM, int jSize1, [Out] out int jSize2)
 {
     if (OS.IsWindows)
     {
         return(JNINativeImports_Windows.JNI_GetCreatedJavaVMs(out pVM, jSize1, out jSize2));
     }
     if (OS.IsLinux)
     {
         return(JNINativeImports_Linux.JNI_GetCreatedJavaVMs(out pVM, jSize1, out jSize2));
     }
     throw new ArgumentException("Unknown OS. Please check if there is an implementation of KD.Dova for your operating system.");
 }
Esempio n. 4
0
 internal static int JNI_GetDefaultJavaVMInitArgs(JavaVMInitArgs *args)
 {
     if (OS.IsWindows)
     {
         return(JNINativeImports_Windows.JNI_GetDefaultJavaVMInitArgs(args));
     }
     if (OS.IsLinux)
     {
         return(JNINativeImports_Linux.JNI_GetDefaultJavaVMInitArgs(args));
     }
     throw new ArgumentException("Unknown OS. Please check if there is an implementation of KD.Dova for your operating system.");
 }