Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Changed the way current_context is handled in smx_context_java
[simgrid.git] / src / jmsg_comm.h
1 /* Functions related to the java comm instances                                                                                                                                 */
2
3 /* Copyright (c) 2012. The SimGrid Team. All rights reserved.                   */
4
5 #ifndef MSG_JCOMM_H
6 #define MSG_JCOMM_H
7 #include <jni.h>
8 #include <msg/msg.h>
9 /**
10  * This function binds the task associated with the communication to
11  * the java communication object.
12  */
13 void jcomm_bind_task(JNIEnv *env, jobject jcomm);
14 /**
15  * This function throws the correct exception according to the status
16  * returned.
17  */
18 void jcomm_throw(JNIEnv *env, MSG_error_t status);
19
20 JNIEXPORT void JNICALL
21 Java_org_simgrid_msg_Comm_nativeInit(JNIEnv *env, jclass cls);
22
23 JNIEXPORT void JNICALL
24 Java_org_simgrid_msg_Comm_unbind(JNIEnv *env, jobject jcomm);
25
26 JNIEXPORT jboolean JNICALL
27 Java_org_simgrid_msg_Comm_test(JNIEnv *env, jobject jcomm);
28
29 JNIEXPORT void JNICALL
30 Java_org_simgrid_msg_Comm_waitCompletion(JNIEnv *env, jobject jcomm, jdouble timeout);
31 #endif /* MSG_JCOMM_H */