diff options
Diffstat (limited to 'src/jvm')
-rw-r--r-- | src/jvm/jvm.c | 2 | ||||
-rw-r--r-- | src/jvm/jvm.h | 3 |
2 files changed, 4 insertions, 1 deletions
diff --git a/src/jvm/jvm.c b/src/jvm/jvm.c index 914224c..700b084 100644 --- a/src/jvm/jvm.c +++ b/src/jvm/jvm.c @@ -293,7 +293,7 @@ jvm_get_object_of_type(struct jvm *jvm, const jobject o, const enum jvm_object_t return obj; } -static struct jvm* +struct jvm* jnienv_get_jvm(JNIEnv *env) { return container_of(env, struct jvm, env); diff --git a/src/jvm/jvm.h b/src/jvm/jvm.h index cc69cb4..0de88d2 100644 --- a/src/jvm/jvm.h +++ b/src/jvm/jvm.h @@ -80,3 +80,6 @@ jvm_release(struct jvm *jvm); void jvm_init(struct jvm *jvm); + +struct jvm* +jnienv_get_jvm(JNIEnv *env); |