#include "msg/msg.h"
XBT_LOG_EXTERNAL_DEFAULT_CATEGORY(jmsg);
+static jfieldID jvm_field_bind;
+
void jvm_bind(JNIEnv *env, jobject jvm, msg_vm_t vm) {
(*env)->SetLongField(env, jvm, jvm_field_bind, (intptr_t)vm);
}
#include <jni.h>
#include "msg/msg.h"
-jfieldID jvm_field_bind;
-
void jvm_bind(JNIEnv *env, jobject jvm, msg_vm_t vm);
msg_vm_t jvm_get_native(JNIEnv *env, jobject jvm);
public String getName() {
return name;
}
+
+ /**
+ * Class initializer, to initialize various JNI stuff
+ */
+ public static native void nativeInit();
+ static {
+ nativeInit();
+ }
}