54 |
#ifdef __cplusplus |
#ifdef __cplusplus |
55 |
} |
} |
56 |
#endif |
#endif |
57 |
|
|
58 |
|
/* |
59 |
|
* Before jni.h is #included within a typical JVM, the source code should |
60 |
|
* #define _JNI_VM_INTERNAL_TYPES_DEFINED and provide the real declarations |
61 |
|
* for 'jobject', 'jfieldID', 'jMethodID' and other implementation types. |
62 |
|
* If _JNI_VM_INTERNAL_TYPES_DEFINED is not defined, the following |
63 |
|
* declares the old versions of the types. |
64 |
|
*/ |
65 |
|
#ifndef _JNI_VM_INTERNAL_TYPES_DEFINED |
66 |
|
/* |
67 |
|
typedef void *jobject; |
68 |
|
typedef void *jfieldID; |
69 |
|
typedef void *jmethodID; |
70 |
|
*/ |
71 |
|
struct _jfieldID; |
72 |
|
struct _jmethodID; |
73 |
|
typedef struct _jfieldID *jfieldID; |
74 |
|
typedef struct _jmethodID *jmethodID; |
75 |
|
#endif |
76 |
|
|
77 |
#ifdef __cplusplus |
#ifdef __cplusplus |
78 |
|
|
79 |
class _jobject {}; |
class _jobject {}; |
111 |
|
|
112 |
#else /* __cplusplus */ |
#else /* __cplusplus */ |
113 |
|
|
114 |
/* |
|
|
* Before jni.h is #included within a typical JVM, the source code should |
|
|
* #define _JNI_VM_INTERNAL_TYPES_DEFINED and provide the real declarations |
|
|
* for 'jobject', 'jfieldID', 'jMethodID' and other implementation types. |
|
|
* If _JNI_VM_INTERNAL_TYPES_DEFINED is not defined, the following |
|
|
* declares the old versions of the types. |
|
|
*/ |
|
|
#ifndef _JNI_VM_INTERNAL_TYPES_DEFINED |
|
|
/* |
|
|
typedef void *jobject; |
|
|
typedef void *jfieldID; |
|
|
typedef void *jmethodID; |
|
|
*/ |
|
|
struct _jfieldID; |
|
|
struct _jmethodID; |
|
|
typedef struct _jfieldID *jfieldID; |
|
|
typedef struct _jmethodID *jmethodID; |
|
|
#endif |
|
|
|
|
115 |
typedef void *jobject; |
typedef void *jobject; |
116 |
typedef jobject jclass; |
typedef jobject jclass; |
117 |
typedef jobject jstring; |
typedef jobject jstring; |
468 |
}; |
}; |
469 |
|
|
470 |
#ifdef __cplusplus |
#ifdef __cplusplus |
471 |
|
} /* Extern "C" */ |
472 |
|
|
473 |
struct _Jv_JNIEnv |
struct _Jv_JNIEnv |
474 |
{ |
{ |