Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Indent include and src using this command:
[simgrid.git] / src / java / jmsg_task.h
index 64aa3c9..7b07a55 100644 (file)
@@ -1,14 +1,10 @@
-/*
- * $Id$
- *
- * Copyright 2006,2007 Martin Quinson, Malek Cherier All right 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.
- *
- * This contains the declarations of the functions in relation with the java
- * task instance.
- */
+/* Functions related to the java task instances.                            */
+
+/* Copyright (c) 2007, 2009, 2010. 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. */
 
 #ifndef MSG_JTASK_H
 #define MSG_JTASK_H
@@ -25,9 +21,8 @@
  *
  * @return                             The global reference to the original java task 
  *                                             instance.
- */                    
-jobject
-jtask_new_global_ref(jobject jtask,JNIEnv* env);
+ */
+jobject jtask_new_global_ref(jobject jtask, JNIEnv * env);
 
 /**
  * This function delete a global reference to a java task instance.
@@ -35,8 +30,7 @@ jtask_new_global_ref(jobject jtask,JNIEnv* env);
  * @param                              The global refernce to delete.
  * @param env                  The environment of the current thread.
  */
-void
-jtask_delete_global_ref(jobject jtask,JNIEnv* env);
+void jtask_delete_global_ref(jobject jtask, JNIEnv * env);
 
 /**
  * This function associated a native task to a java task instance.
@@ -49,9 +43,8 @@ jtask_delete_global_ref(jobject jtask,JNIEnv* env);
  *                                             the ClassNotFoundException. If the field bind of 
  *                                             this class is not found the function throws the exception 
  *                                             NotSuchFieldException.  
- */            
-void
-jtask_bind(jobject jtask,m_task_t task,JNIEnv* env);
+ */
+void jtask_bind(jobject jtask, m_task_t task, JNIEnv * env);
 
 /**
  * This function returns a native task from a java task instance.
@@ -67,8 +60,7 @@ jtask_bind(jobject jtask,m_task_t task,JNIEnv* env);
  *                                             this class is not found the function throws the exception 
  *                                             NotSuchFieldException.  
  */
-m_task_t
-jtask_to_native_task(jobject jtask,JNIEnv* env);
+m_task_t jtask_to_native_task(jobject jtask, JNIEnv * env);
 
 /**
  * This function tests if a java task instance is valid.
@@ -81,7 +73,6 @@ jtask_to_native_task(jobject jtask,JNIEnv* env);
  * @return                             If the java task is valid the function returns true.
  *                                             Otherwise the function returns false.
  */
-jboolean
-jtask_is_valid(jobject jtask,JNIEnv* env);
+jboolean jtask_is_valid(jobject jtask, JNIEnv * env);
 
-#endif /* !MSG_JTASK_H */
+#endif                          /* !MSG_JTASK_H */