Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Fix compilation problem with tracing
[simgrid.git] / src / jmsg.h
index c943fe6..16c10fb 100644 (file)
@@ -8,12 +8,16 @@
 
 #ifndef MSG4JAVA_H
 #define MSG4JAVA_H
-
+#include <msg/msg.h>
 #include <jni.h>
 
 JavaVM *get_java_VM(void);
-
 JNIEnv *get_current_thread_env(void);
+/**
+ * This function throws the correct exception according to the status
+ * provided.
+ */
+void jmsg_throw_status(JNIEnv *env, MSG_error_t status);
 
 /*
  * Class               org_simgrid_msg_Msg
@@ -37,6 +41,10 @@ JNIEXPORT void JNICALL
 JNIEXPORT void JNICALL
 Java_org_simgrid_msg_Msg_init(JNIEnv * env, jclass cls, jobjectArray jargs);
 
+JNIEXPORT void JNICALL Java_org_simgrid_msg_Msg_debug(JNIEnv *, jclass,
+                                                 jstring);
+
+
 JNIEXPORT void JNICALL Java_org_simgrid_msg_Msg_info(JNIEnv *, jclass,
                                                  jstring);