00001 /*-----------------------------------------------------------------------------------*/ 00002 /* INRIA 2006 */ 00003 /* Allan CORNET */ 00004 /*-----------------------------------------------------------------------------------*/ 00005 #ifndef __SCIGUICONSOLE__ 00006 #define __SCIGUICONSOLE__ 00007 00008 #ifdef _MSC_VER 00009 #include <windows.h> 00010 #endif 00011 00012 #include "jni.h" 00013 00014 #include <stdio.h> 00015 #include "machine.h" 00016 #include "stack-c.h" 00017 #include "version.h" 00018 00019 #ifdef _MSC_VER 00020 #ifdef EXPORT_SCIGUICONSOLE_DLL 00021 #define IMPORT_EXPORT_SCIGUICONSOLE_DLL __declspec(dllexport) 00022 #else 00023 #define IMPORT_EXPORT_SCIGUICONSOLE_DLL __declspec(dllimport) 00024 #endif 00025 #else 00026 #define IMPORT_EXPORT_SCIGUICONSOLE_DLL extern 00027 #endif 00028 00029 #ifdef _MSC_VER 00030 #define IMPORT_DLL __declspec(dllimport) 00031 #else 00032 #define IMPORT_DLL extern 00033 #endif 00034 00035 IMPORT_EXPORT_SCIGUICONSOLE_DLL int JVM_Create_SciGUIConsole_Object(JNIEnv *env); 00036 IMPORT_EXPORT_SCIGUICONSOLE_DLL int Initialize_SciGUIConsole_Object(JNIEnv *env); 00037 IMPORT_EXPORT_SCIGUICONSOLE_DLL int Events_Loop_SciGUIConsole(JNIEnv *env); 00038 IMPORT_EXPORT_SCIGUICONSOLE_DLL int IsEnabled_SciGUIConsole(JNIEnv *env); 00039 IMPORT_EXPORT_SCIGUICONSOLE_DLL int Dispose_SciGUIConsole(JNIEnv *env); 00040 IMPORT_EXPORT_SCIGUICONSOLE_DLL jobject Get_SciGUIConsole_Object(void); 00041 IMPORT_EXPORT_SCIGUICONSOLE_DLL int PutString(char *Str); 00042 00043 00044 #endif /* __SCIGUICONSOLE__ */ 00045 /*-----------------------------------------------------------------------------------*/
1.5.1