Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
310c5bfa18bf579c6fedb02952efdb43cd74ac5a
[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 SG_BEGIN_DECL()
15
16 /**
17  * This function binds the task associated with the communication to
18  * the java communication object.
19  */
20 void jcomm_bind_task(JNIEnv *env, jobject jcomm);
21
22 JNIEXPORT void JNICALL
23 Java_org_simgrid_msg_Comm_nativeInit(JNIEnv *env, jclass cls);
24
25 JNIEXPORT void JNICALL
26 Java_org_simgrid_msg_Comm_nativeFinalize(JNIEnv *env, jobject jcomm);
27
28 JNIEXPORT jboolean JNICALL
29 Java_org_simgrid_msg_Comm_test(JNIEnv *env, jobject jcomm);
30
31 JNIEXPORT void JNICALL
32 Java_org_simgrid_msg_Comm_waitCompletion(JNIEnv *env, jobject jcomm, jdouble timeout);
33
34 SG_END_DECL()
35
36 #endif /* MSG_JCOMM_H */