Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
8b16f8b3970ffce757c148f467b0fb51175f9a98
[simgrid.git] / src / bindings / java / jmsg_comm.h
1 /* Functions related to the java comm instances                             */
2
3 /* Copyright (c) 2012-2015. The SimGrid Team.
4  * All rights reserved.                                                     */
5
6 /* This program is free software; you can redistribute it and/or modify it
7  * under the terms of the license (GNU LGPL) which comes with this package. */
8
9 #ifndef MSG_JCOMM_H
10 #define MSG_JCOMM_H
11 #include <jni.h>
12 #include <simgrid/msg.h>
13 /**
14  * This function binds the task associated with the communication to
15  * the java communication object.
16  */
17 void jcomm_bind_task(JNIEnv *env, jobject jcomm);
18
19 JNIEXPORT void JNICALL
20 Java_org_simgrid_msg_Comm_nativeInit(JNIEnv *env, jclass cls);
21
22 JNIEXPORT void JNICALL
23 Java_org_simgrid_msg_Comm_nativeFinalize(JNIEnv *env, jobject jcomm);
24
25 JNIEXPORT jboolean JNICALL
26 Java_org_simgrid_msg_Comm_test(JNIEnv *env, jobject jcomm);
27
28 JNIEXPORT void JNICALL
29 Java_org_simgrid_msg_Comm_waitCompletion(JNIEnv *env, jobject jcomm, jdouble timeout);
30 #endif /* MSG_JCOMM_H */