Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Add correct headers for Java exports
authorLionel <eyraud@etincel.(none)>
Thu, 6 Jun 2013 21:44:14 +0000 (23:44 +0200)
committerLionel <eyraud@etincel.(none)>
Thu, 6 Jun 2013 21:44:14 +0000 (23:44 +0200)
src/bindings/java/jmsg_host.h
src/bindings/java/jmsg_synchro.c
src/bindings/java/jmsg_synchro.h

index 0dc01c2..a689fda 100644 (file)
@@ -171,4 +171,10 @@ JNIEXPORT jboolean JNICALL Java_org_simgrid_msg_Host_isAvail
 JNIEXPORT jobjectArray JNICALL
 Java_org_simgrid_msg_Host_all(JNIEnv *, jclass);
 
+JNIEXPORT void JNICALL 
+Java_org_simgrid_msg_Host_setAsyncMailbox(JNIEnv * env, jclass cls_arg, jobject jname);
+
+
+
 #endif                          /*!MSG_JHOST_H */
+
index 21c04d7..3bc4fcc 100644 (file)
@@ -5,6 +5,7 @@
 /* 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.    */
 
+#include "jmsg.h"
 #include "xbt/synchro_core.h"
 #include "jmsg_synchro.h"
 #include "jxbt_utilities.h"
index 5c3e41f..1eb5a1d 100644 (file)
@@ -28,4 +28,16 @@ Java_org_simgrid_msg_Mutex_release(JNIEnv * env, jobject obj);
 JNIEXPORT void JNICALL
 Java_org_simgrid_msg_Mutex_exit(JNIEnv * env, jobject obj);
 
+JNIEXPORT void JNICALL
+Java_org_simgrid_msg_Semaphore_nativeInit(JNIEnv *env, jclass cls);
+JNIEXPORT void JNICALL
+Java_org_simgrid_msg_Semaphore_init(JNIEnv * env, jobject obj, jint capacity);
+JNIEXPORT void JNICALL
+Java_org_simgrid_msg_Semaphore_acquire(JNIEnv * env, jobject obj, jdouble timeout);
+JNIEXPORT void JNICALL
+Java_org_simgrid_msg_Semaphore_release(JNIEnv * env, jobject obj);
+JNIEXPORT jboolean JNICALL
+Java_org_simgrid_msg_Semaphore_wouldBlock(JNIEnv * env, jobject obj);
+JNIEXPORT void JNICALL
+Java_org_simgrid_msg_Mutex_destroy(JNIEnv * env, jobject obj);
 #endif                          /* !MSG_JPROCESS_H */