aboutsummaryrefslogtreecommitdiffstats
path: root/java/jni/JNIMem.cxx
diff options
context:
space:
mode:
authorPetre Eftime <[email protected]>2016-06-24 17:01:33 +0300
committerPetre Eftime <[email protected]>2016-07-01 15:11:25 +0300
commit52ff32b31b53e11a75ab651e720837c3736ef2e6 (patch)
treef755dc0810afb30d8db0684e06eaff28d60c792a /java/jni/JNIMem.cxx
parent0459435831dd7d4331fd9f0e86a645c35e2940ce (diff)
java: Add initial support for Java notifications
Signed-off-by: Petre Eftime <[email protected]>
Diffstat (limited to 'java/jni/JNIMem.cxx')
-rw-r--r--java/jni/JNIMem.cxx10
1 files changed, 10 insertions, 0 deletions
diff --git a/java/jni/JNIMem.cxx b/java/jni/JNIMem.cxx
new file mode 100644
index 00000000..7c34a98e
--- /dev/null
+++ b/java/jni/JNIMem.cxx
@@ -0,0 +1,10 @@
+#include "JNIMem.hpp"
+
+
+JavaVM* vm;
+thread_local JNIEnvContainer jni_env;
+
+jint JNI_OnLoad(JavaVM *initVM, void *reserved) {
+ vm = initVM;
+ return JNI_VERSION_1_8;
+}