From 570009a8e49a8c999455f4804ce1c48acaf7df8e Mon Sep 17 00:00:00 2001 From: Jari Vetoniemi Date: Tue, 29 May 2018 03:55:32 +0300 Subject: jvm/libjvm-*: implement stuff Wolf simulator (lol) starts working --- src/jvm/jvm.c | 2 +- src/jvm/jvm.h | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) (limited to 'src/jvm') 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); -- cgit v1.2.3-70-g09d2