36 #ifndef _JAVASOFT_JNI_H_
37 #define _JAVASOFT_JNI_H_
55 #ifndef JNI_TYPES_ALREADY_DEFINED_IN_JNI_MD_H
68 class _jclass :
public _jobject {};
69 class _jthrowable :
public _jobject {};
70 class _jstring :
public _jobject {};
71 class _jarray :
public _jobject {};
72 class _jbooleanArray :
public _jarray {};
73 class _jbyteArray :
public _jarray {};
74 class _jcharArray :
public _jarray {};
75 class _jshortArray :
public _jarray {};
76 class _jintArray :
public _jarray {};
77 class _jlongArray :
public _jarray {};
78 class _jfloatArray :
public _jarray {};
79 class _jdoubleArray :
public _jarray {};
80 class _jobjectArray :
public _jarray {};
162 #define JNI_EDETACHED (-2)
163 #define JNI_EVERSION (-3)
164 #define JNI_ENOMEM (-4)
165 #define JNI_EEXIST (-5)
166 #define JNI_EINVAL (-6)
825 return functions->ExceptionOccurred(
this);
827 void ExceptionDescribe() {
830 void ExceptionClear() {
833 void FatalError(
const char *
msg) {
1839 void DeleteWeakGlobalRef(
jweak ref) {
1910 jint DestroyJavaVM() {
1916 jint DetachCurrentThread() {
1917 return functions->DetachCurrentThread(
this);
1923 jint AttachCurrentThreadAsDaemon(
void **
penv,
void *
args) {
1929 #ifdef _JNI_IMPLEMENTATION_
1930 #define _JNI_IMPORT_OR_EXPORT_ JNIEXPORT
1932 #define _JNI_IMPORT_OR_EXPORT_ JNIIMPORT
1950 #define JNI_VERSION_1_1 0x00010001
1951 #define JNI_VERSION_1_2 0x00010002
1952 #define JNI_VERSION_1_4 0x00010004
1953 #define JNI_VERSION_1_6 0x00010006
1954 #define JNI_VERSION_1_8 0x00010008