From 14b60cad3005c71ebc2d752dbdff94da9b64dde0 Mon Sep 17 00:00:00 2001 From: Lionel Date: Thu, 6 Jun 2013 23:44:14 +0200 Subject: [PATCH] Add correct headers for Java exports --- src/bindings/java/jmsg_host.h | 6 ++++++ src/bindings/java/jmsg_synchro.c | 1 + src/bindings/java/jmsg_synchro.h | 12 ++++++++++++ 3 files changed, 19 insertions(+) diff --git a/src/bindings/java/jmsg_host.h b/src/bindings/java/jmsg_host.h index 0dc01c25da..a689fda735 100644 --- a/src/bindings/java/jmsg_host.h +++ b/src/bindings/java/jmsg_host.h @@ -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 */ + diff --git a/src/bindings/java/jmsg_synchro.c b/src/bindings/java/jmsg_synchro.c index 21c04d7a6d..3bc4fcce1f 100644 --- a/src/bindings/java/jmsg_synchro.c +++ b/src/bindings/java/jmsg_synchro.c @@ -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" diff --git a/src/bindings/java/jmsg_synchro.h b/src/bindings/java/jmsg_synchro.h index 5c3e41f239..1eb5a1d91b 100644 --- a/src/bindings/java/jmsg_synchro.h +++ b/src/bindings/java/jmsg_synchro.h @@ -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 */ -- 2.20.1