-/*
- * $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
*
* @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.
* @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.
* 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.
* 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.
* @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 */