Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
rename facets to extensions for clarity sake
[simgrid.git] / src / bindings / java / jmsg_task.cpp
index 7940f7a..fb1a948 100644 (file)
@@ -10,6 +10,7 @@
 
 #include "jmsg_host.h"
 #include "jmsg_task.h"
+#include "jmsg_process.h"
 
 #include "jxbt_utilities.h"
 
@@ -17,8 +18,6 @@
 
 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;
@@ -283,12 +282,12 @@ Java_org_simgrid_msg_Task_getSource(JNIEnv * env,
   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