#include "jmsg_host.h"
#include "jmsg_task.h"
+#include "jmsg_process.h"
#include "jxbt_utilities.h"
XBT_LOG_EXTERNAL_DEFAULT_CATEGORY(jmsg);
-jobject native_to_java_process(msg_process_t process);
-
static jmethodID jtask_method_Comm_constructor;
static jfieldID jtask_field_Task_bind;
if (host == NULL) {
return NULL;
}
- if (!xbt_lib_get_level(host, JAVA_HOST_LEVEL)) {
+ if (!host->extension(JAVA_HOST_LEVEL)) {
jxbt_throw_jni(env, "MSG_task_get_source() failed");
return NULL;
}
- return (jobject) xbt_lib_get_level(host, JAVA_HOST_LEVEL);
+ return (jobject) host->extension(JAVA_HOST_LEVEL);
}
JNIEXPORT jdouble JNICALL