diff options
author | Shashank | 2017-05-29 12:40:26 +0530 |
---|---|---|
committer | Shashank | 2017-05-29 12:40:26 +0530 |
commit | 0345245e860375a32c9a437c4a9d9cae807134e9 (patch) | |
tree | ad51ecbfa7bcd3cc5f09834f1bb8c08feaa526a4 /modules/jvm/includes | |
download | scilab_for_xcos_on_cloud-0345245e860375a32c9a437c4a9d9cae807134e9.tar.gz scilab_for_xcos_on_cloud-0345245e860375a32c9a437c4a9d9cae807134e9.tar.bz2 scilab_for_xcos_on_cloud-0345245e860375a32c9a437c4a9d9cae807134e9.zip |
CMSCOPE changed
Diffstat (limited to 'modules/jvm/includes')
-rwxr-xr-x | modules/jvm/includes/InitializeJVM.h | 34 | ||||
-rwxr-xr-x | modules/jvm/includes/TerminateJVM.h | 29 | ||||
-rwxr-xr-x | modules/jvm/includes/addToClasspath.h | 35 | ||||
-rwxr-xr-x | modules/jvm/includes/addToLibrarypath.h | 28 | ||||
-rwxr-xr-x | modules/jvm/includes/catchIfJavaException.h | 29 | ||||
-rwxr-xr-x | modules/jvm/includes/dynlib_jvm.h | 28 | ||||
-rwxr-xr-x | modules/jvm/includes/getScilabJNIEnv.h | 27 | ||||
-rwxr-xr-x | modules/jvm/includes/getScilabJavaVM.h | 27 | ||||
-rwxr-xr-x | modules/jvm/includes/getScilabObject.h | 27 | ||||
-rwxr-xr-x | modules/jvm/includes/gw_jvm.h | 31 | ||||
-rwxr-xr-x | modules/jvm/includes/loadBackGroundClassPath.h | 28 | ||||
-rwxr-xr-x | modules/jvm/includes/loadOnUseClassPath.h | 28 |
12 files changed, 351 insertions, 0 deletions
diff --git a/modules/jvm/includes/InitializeJVM.h b/modules/jvm/includes/InitializeJVM.h new file mode 100755 index 000000000..0e3696c25 --- /dev/null +++ b/modules/jvm/includes/InitializeJVM.h @@ -0,0 +1,34 @@ + +/* + * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab + * Copyright (C) INRIA - Allan CORNET + * + * This file must be used under the terms of the CeCILL. + * This source file is licensed as described in the file COPYING, which + * you should have received as part of this distribution. The terms + * are also available at + * http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt + * + */ + +/*--------------------------------------------------------------------------*/ +#ifndef __INITIALIZEJVM_H__ +#define __INITIALIZEJVM_H__ + +#include "dynlib_jvm.h" +#include "BOOL.h" + +/** +* Initialize JVM +* @return TRUE or FALSE +*/ +JVM_IMPEXP BOOL InitializeJVM(void); + +/** +* Execute initial hooks register in the class Scilab.java +* @return TRUE or FALSE +*/ +JVM_IMPEXP BOOL ExecuteInitialHooks(void); + +#endif /* __INITIALIZEJVM_H__ */ +/*--------------------------------------------------------------------------*/ diff --git a/modules/jvm/includes/TerminateJVM.h b/modules/jvm/includes/TerminateJVM.h new file mode 100755 index 000000000..e750d6d71 --- /dev/null +++ b/modules/jvm/includes/TerminateJVM.h @@ -0,0 +1,29 @@ + +/* + * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab + * Copyright (C) INRIA - Allan CORNET + * + * This file must be used under the terms of the CeCILL. + * This source file is licensed as described in the file COPYING, which + * you should have received as part of this distribution. The terms + * are also available at + * http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt + * + */ + +/*--------------------------------------------------------------------------*/ +#ifndef __TERMINATEJVM_H__ +#define __TERMINATEJVM_H__ + +#include "dynlib_jvm.h" +#include "BOOL.h" + +/** +* Terminate JVM +* @return TRUE or FALSE +*/ + +JVM_IMPEXP BOOL TerminateJVM(void); + +#endif /* __TERMINATEJVM_H__ */ +/*--------------------------------------------------------------------------*/ diff --git a/modules/jvm/includes/addToClasspath.h b/modules/jvm/includes/addToClasspath.h new file mode 100755 index 000000000..28a7a7116 --- /dev/null +++ b/modules/jvm/includes/addToClasspath.h @@ -0,0 +1,35 @@ + +/* + * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab + * Copyright (C) INRIA - Allan CORNET + * + * This file must be used under the terms of the CeCILL. + * This source file is licensed as described in the file COPYING, which + * you should have received as part of this distribution. The terms + * are also available at + * http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt + * + */ + +/*--------------------------------------------------------------------------*/ +#ifndef __ADDTOCLASSPATH_H__ +#define __ADDTOCLASSPATH_H__ + +#include "BOOL.h" /* BOOL */ + +typedef enum { STARTUP = 0, + BACKGROUND = 1, + ONUSE = 2 + + } typeOfLoad; + + +/** +* add a path to CLASSPATH +* @param a new path to add +* @return TRUE or FALSE +*/ +BOOL addToClasspath(char *classpathstring, typeOfLoad load); + +#endif /* __ADDTOCLASSPATH_H__ */ +/*--------------------------------------------------------------------------*/ diff --git a/modules/jvm/includes/addToLibrarypath.h b/modules/jvm/includes/addToLibrarypath.h new file mode 100755 index 000000000..4e3a98b0a --- /dev/null +++ b/modules/jvm/includes/addToLibrarypath.h @@ -0,0 +1,28 @@ + +/* + * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab + * Copyright (C) INRIA - Allan CORNET + * + * This file must be used under the terms of the CeCILL. + * This source file is licensed as described in the file COPYING, which + * you should have received as part of this distribution. The terms + * are also available at + * http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt + * + */ + +/*--------------------------------------------------------------------------*/ +#ifndef __ADDTOLIBRARYPATH_H__ +#define __ADDTOLIBRARYPATH_H__ + +#include "BOOL.h" /* BOOL */ + +/** +* add a path to java.library.path +* @param a new path to add +* @return TRUE or FALSE +*/ +BOOL addToLibrarypath(char *librarypathstring); + +#endif /* __ADDTOLIBRARYPATH_H__ */ +/*--------------------------------------------------------------------------*/ diff --git a/modules/jvm/includes/catchIfJavaException.h b/modules/jvm/includes/catchIfJavaException.h new file mode 100755 index 000000000..c60278704 --- /dev/null +++ b/modules/jvm/includes/catchIfJavaException.h @@ -0,0 +1,29 @@ + +/* + * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab + * Copyright (C) INRIA - Sylvestre LEDRU + * + * This file must be used under the terms of the CeCILL. + * This source file is licensed as described in the file COPYING, which + * you should have received as part of this distribution. The terms + * are also available at + * http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt + * + */ + +/*--------------------------------------------------------------------------*/ +#ifndef __CATCHIFJAVAEXCEPTION_H__ +#define __CATCHIFJAVAEXCEPTION_H__ + +#include "BOOL.h" /* BOOL */ +#include "dynlib_jvm.h" + +/** + * Check if there is an exception and print if it is the case + * @param errorMsg the error message which will be displayed if an exception is catched + * @return + */ +JVM_IMPEXP BOOL catchIfJavaException(char *errorMsg); + +#endif /* __CATCHIFJAVAEXCEPTION_H__*/ +/*--------------------------------------------------------------------------*/ diff --git a/modules/jvm/includes/dynlib_jvm.h b/modules/jvm/includes/dynlib_jvm.h new file mode 100755 index 000000000..527d05494 --- /dev/null +++ b/modules/jvm/includes/dynlib_jvm.h @@ -0,0 +1,28 @@ +/* +* Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +* Copyright (C) DIGITEO - 2009 - Allan CORNET +* +* This file must be used under the terms of the CeCILL. +* This source file is licensed as described in the file COPYING, which +* you should have received as part of this distribution. The terms +* are also available at +* http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt +* +*/ + +/*--------------------------------------------------------------------------*/ +#ifndef __DYNLIB_JVM_H__ +#define __DYNLIB_JVM_H__ + +#ifdef _MSC_VER +#ifdef LIBJVM_EXPORTS +#define JVM_IMPEXP __declspec(dllexport) +#else +#define JVM_IMPEXP __declspec(dllimport) +#endif +#else +#define JVM_IMPEXP +#endif + +#endif /* __DYNLIB_JVM_H__ */ +/*--------------------------------------------------------------------------*/ diff --git a/modules/jvm/includes/getScilabJNIEnv.h b/modules/jvm/includes/getScilabJNIEnv.h new file mode 100755 index 000000000..fc7c5e080 --- /dev/null +++ b/modules/jvm/includes/getScilabJNIEnv.h @@ -0,0 +1,27 @@ + +/* + * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab + * Copyright (C) INRIA - Allan CORNET + * + * This file must be used under the terms of the CeCILL. + * This source file is licensed as described in the file COPYING, which + * you should have received as part of this distribution. The terms + * are also available at + * http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt + * + */ + +/*--------------------------------------------------------------------------*/ +#ifndef __GETSCILABJNIENV_H__ +#define __GETSCILABJNIENV_H__ + +#include <jni.h> /* JNIEnv */ + +/** +* returns Scilab JNIEnv +* @return JNIEnv +*/ +JNIEnv *getScilabJNIEnv(void); + +#endif /* __GETSCILABJAVAVM_H__ */ +/*--------------------------------------------------------------------------*/ diff --git a/modules/jvm/includes/getScilabJavaVM.h b/modules/jvm/includes/getScilabJavaVM.h new file mode 100755 index 000000000..3be1ab61d --- /dev/null +++ b/modules/jvm/includes/getScilabJavaVM.h @@ -0,0 +1,27 @@ + +/* + * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab + * Copyright (C) INRIA - Allan CORNET + * + * This file must be used under the terms of the CeCILL. + * This source file is licensed as described in the file COPYING, which + * you should have received as part of this distribution. The terms + * are also available at + * http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt + * + */ + +/*--------------------------------------------------------------------------*/ +#ifndef __GETSCILABJAVAVM_H__ +#define __GETSCILABJAVAVM_H__ + +#include <jni.h> /* JavaVM */ + +/** +* returns Scilab JavaVM +* @return JavaVM +*/ +JavaVM *getScilabJavaVM(void); + +#endif /* __GETSCILABJAVAVM_H__ */ +/*--------------------------------------------------------------------------*/ diff --git a/modules/jvm/includes/getScilabObject.h b/modules/jvm/includes/getScilabObject.h new file mode 100755 index 000000000..4ab913208 --- /dev/null +++ b/modules/jvm/includes/getScilabObject.h @@ -0,0 +1,27 @@ + +/* + * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab + * Copyright (C) INRIA - Allan CORNET + * + * This file must be used under the terms of the CeCILL. + * This source file is licensed as described in the file COPYING, which + * you should have received as part of this distribution. The terms + * are also available at + * http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt + * + */ + +/*--------------------------------------------------------------------------*/ +#ifndef __GETSCILABOJECT_H__ +#define __GETSCILABOJECT_H__ + +#include <jni.h> /* jobject */ + +/** +* returns jobject on Scilab main +* @return jobject +*/ +jobject getScilabObject(void); + +#endif /* __GETSCILABOJECT_H__ */ +/*--------------------------------------------------------------------------*/ diff --git a/modules/jvm/includes/gw_jvm.h b/modules/jvm/includes/gw_jvm.h new file mode 100755 index 000000000..f1a17d864 --- /dev/null +++ b/modules/jvm/includes/gw_jvm.h @@ -0,0 +1,31 @@ + +/* + * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab + * Copyright (C) INRIA - Allan CORNET + * + * This file must be used under the terms of the CeCILL. + * This source file is licensed as described in the file COPYING, which + * you should have received as part of this distribution. The terms + * are also available at + * http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt + * + */ + +/*--------------------------------------------------------------------------*/ +#ifndef __GW_JVM_H__ +#define __GW_JVM_H__ +/*--------------------------------------------------------------------------*/ +#include "dynlib_jvm.h" +/*--------------------------------------------------------------------------*/ +JVM_IMPEXP int gw_jvm(void); +/*--------------------------------------------------------------------------*/ +/* Declaration of all the profile function declared and */ +/* used in sci_gateway */ +JVM_IMPEXP int sci_system_setproperty(char *fname, unsigned long fname_len); +JVM_IMPEXP int sci_system_getproperty(char *fname, unsigned long fname_len); +JVM_IMPEXP int sci_javaclasspath(char *fname, unsigned long fname_len); +JVM_IMPEXP int sci_javalibrarypath(char *fname, unsigned long fname_len); +/*--------------------------------------------------------------------------*/ +#endif /* __GW_JVM_H__ */ + + diff --git a/modules/jvm/includes/loadBackGroundClassPath.h b/modules/jvm/includes/loadBackGroundClassPath.h new file mode 100755 index 000000000..4365816a2 --- /dev/null +++ b/modules/jvm/includes/loadBackGroundClassPath.h @@ -0,0 +1,28 @@ + +/* + * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab + * Copyright (C) INRIA - Allan CORNET + * + * This file must be used under the terms of the CeCILL. + * This source file is licensed as described in the file COPYING, which + * you should have received as part of this distribution. The terms + * are also available at + * http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt + * + */ + +/*--------------------------------------------------------------------------*/ +#ifndef __LOADBACKGROUNDCLASSPATH_H__ +#define __LOADBACKGROUNDCLASSPATH_H__ + +#include "dynlib_jvm.h" +#include "BOOL.h" + +/** +* load classpath in background +* @return TRUE or FALSE +*/ +JVM_IMPEXP BOOL loadBackGroundClassPath(void); + +#endif /* __LOADBACKGROUNDCLASSPATH_H__ */ +/*--------------------------------------------------------------------------*/ diff --git a/modules/jvm/includes/loadOnUseClassPath.h b/modules/jvm/includes/loadOnUseClassPath.h new file mode 100755 index 000000000..d2c54c521 --- /dev/null +++ b/modules/jvm/includes/loadOnUseClassPath.h @@ -0,0 +1,28 @@ +/* + * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab + * Copyright (C) 2008 - INRIA - Sylvestre LEDRU + * + * This file must be used under the terms of the CeCILL. + * This source file is licensed as described in the file COPYING, which + * you should have received as part of this distribution. The terms + * are also available at + * http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt + * + */ + +/*--------------------------------------------------------------------------*/ +#ifndef __LOADONUSECLASSPATH_H__ +#define __LOADONUSECLASSPATH_H__ + +#include "dynlib_jvm.h" +#include "BOOL.h" /* BOOL */ + +/** +* Load a serie of jar(s) matching to the tag declared in etc/classpath.xml +* @param a new path to add +* @return TRUE or FALSE +*/ +JVM_IMPEXP BOOL loadOnUseClassPath(char const* tag); + +#endif /* __LOADONUSECLASSPATH_H__ */ +/*--------------------------------------------------------------------------*/ |