summaryrefslogtreecommitdiff
path: root/src/jvm
diff options
context:
space:
mode:
authorJari Vetoniemi <mailroxas@gmail.com>2018-05-29 03:55:32 +0300
committerJari Vetoniemi <mailroxas@gmail.com>2018-05-29 03:55:32 +0300
commit570009a8e49a8c999455f4804ce1c48acaf7df8e (patch)
treecc1baaf6a3c5340410482780f1f0729e4fb424a7 /src/jvm
parentdd9ffa55195ee6313bed3b505dc3c6769b92d360 (diff)
jvm/libjvm-*: implement stuff
Wolf simulator (lol) starts working
Diffstat (limited to 'src/jvm')
-rw-r--r--src/jvm/jvm.c2
-rw-r--r--src/jvm/jvm.h3
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);