Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
actually kill models' names
[simgrid.git] / src / bindings / java / jmsg_process.h
index 566a877..129fba2 100644 (file)
@@ -1,26 +1,26 @@
 /* Functions related to the java process instances.                         */
 
-/* Copyright (c) 2007-2012. The SimGrid Team.
+/* Copyright (c) 2007-2014. The SimGrid Team.
  * All rights reserved.                                                     */
 
 /* This program is free software; you can redistribute it and/or modify it
 * under the terms of the license (GNU LGPL) which comes with this package. */
+ * under the terms of the license (GNU LGPL) which comes with this package. */
 
 #ifndef MSG_JPROCESS_H
 #define MSG_JPROCESS_H
 
 #include <jni.h>
-#include <msg/msg.h>
+#include <simgrid/msg.h>
 #include <simgrid/simix.h>
 
 //Cached java fields
-jfieldID jprocess_field_Process_bind;
-jfieldID jprocess_field_Process_host;
-jfieldID jprocess_field_Process_killTime;
-jfieldID jprocess_field_Process_id;
-jfieldID jprocess_field_Process_name;
-jfieldID jprocess_field_Process_pid;
-jfieldID jprocess_field_Process_ppid;
+extern jfieldID jprocess_field_Process_bind;
+extern jfieldID jprocess_field_Process_host;
+extern jfieldID jprocess_field_Process_killTime;
+extern jfieldID jprocess_field_Process_id;
+extern jfieldID jprocess_field_Process_name;
+extern jfieldID jprocess_field_Process_pid;
+extern jfieldID jprocess_field_Process_ppid;
 
 JNIEXPORT void JNICALL
 Java_org_simgrid_msg_Process_exit(JNIEnv *env, jobject);
@@ -174,7 +174,7 @@ JNIEXPORT jobject JNICALL Java_org_simgrid_msg_Process_fromPID
     (JNIEnv *, jclass, jint);
 /*
  * Class        org_simgrid_msg_Process
- * Method       waitFor
+ * Method       getProperty
  * Signature    (D)V
  */
 JNIEXPORT jobject JNICALL
@@ -184,7 +184,7 @@ Java_org_simgrid_msg_Process_getProperty(JNIEnv *env, jobject jprocess, jobject
  * Method              currentProcess
  * Signature   ()Lorg/simgrid/msg/Process;
  */
-JNIEXPORT jobject JNICALL Java_org_simgrid_msg_Process_currentProcess
+JNIEXPORT jobject JNICALL Java_org_simgrid_msg_Process_getCurrentProcess
     (JNIEnv *, jclass);
 /*
  * Class               org_simgrid_msg_Process