diff options
author | Tom Tromey <tromey@cygnus.com> | 2000-02-18 21:22:06 +0000 |
---|---|---|
committer | Tom Tromey <tromey@gcc.gnu.org> | 2000-02-18 21:22:06 +0000 |
commit | 8ade47715eddea64a001e982da714b791e5e6e44 (patch) | |
tree | 6637b7627b283f1bc28869d88ab6c8eecc6e22fc /libjava/include/jvm.h | |
parent | 31e890f0f32d3132d0519f640203060a9fc0f0a6 (diff) | |
download | gcc-8ade47715eddea64a001e982da714b791e5e6e44.zip gcc-8ade47715eddea64a001e982da714b791e5e6e44.tar.gz gcc-8ade47715eddea64a001e982da714b791e5e6e44.tar.bz2 |
jvm.h (_Jv_GetJavaVM): Declare.
* include/jvm.h (_Jv_GetJavaVM): Declare.
* include/java-interp.h (_Jv_GetFirstMethod): New function.
(_Jv_MethodBase::get_method): New method.
(_Jv_JNIMethod::set_function): New method.
* jni.cc (_Jv_JNI_UnregisterNatives): New function.
(_Jv_JNI_RegisterNatives): New function.
(_Jv_JNIFunctions): Updated for new functions.
(_Jv_GetJavaVM): New function.
(_Jv_JNI_GetJavaVM): Use it. Now static.
(_Jv_JNI_AttachCurrentThread): Create a new JNIEnv if this thread
is already a Java thread but does not have a JNIEnv yet.
* java/lang/natRuntime.cc (_load): Pass the JavaVM to the onload
function.
From-SVN: r32056
Diffstat (limited to 'libjava/include/jvm.h')
-rw-r--r-- | libjava/include/jvm.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libjava/include/jvm.h b/libjava/include/jvm.h index d21da78..40a0c2a 100644 --- a/libjava/include/jvm.h +++ b/libjava/include/jvm.h @@ -211,4 +211,7 @@ extern void _Jv_JNI_Init (void); _Jv_JNIEnv *_Jv_GetCurrentJNIEnv (); void _Jv_SetCurrentJNIEnv (_Jv_JNIEnv *); +struct _Jv_JavaVM; +_Jv_JavaVM *_Jv_GetJavaVM (); + #endif /* __JAVA_JVM_H__ */ |