X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/d0ffc37686edcc803601f76ab51fdfed5fc2f241..f690616d2664e4eca273b47be00c23258a33d813:/src/bindings/java/jmsg_synchro.h diff --git a/src/bindings/java/jmsg_synchro.h b/src/bindings/java/jmsg_synchro.h index e5e1c42400..2e698cb8c5 100644 --- a/src/bindings/java/jmsg_synchro.h +++ b/src/bindings/java/jmsg_synchro.h @@ -1,43 +1,28 @@ -/* Functions related to the java process instances. */ +/* Java bindings of the Synchronization API. */ -/* Copyright (c) 2012-2013. The SimGrid Team. - * All rights reserved. */ +/* Copyright (c) 2012-2017. The SimGrid Team. All rights reserved. */ /* 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. */ + * under the terms of the license (GNU LGPL) which comes with this package. */ #ifndef MSG_JSYNCHRO_H #define MSG_JSYNCHRO_H #include -#include -#include -JNIEXPORT void JNICALL -Java_org_simgrid_msg_Mutex_nativeInit(JNIEnv *env, jclass cls); - -JNIEXPORT void JNICALL -Java_org_simgrid_msg_Mutex_init(JNIEnv * env, jobject obj); - -JNIEXPORT void JNICALL -Java_org_simgrid_msg_Mutex_acquire(JNIEnv * env, jobject obj); - -JNIEXPORT void JNICALL -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); +SG_BEGIN_DECL() + +JNIEXPORT void JNICALL Java_org_simgrid_msg_Mutex_nativeInit(JNIEnv *env, jclass cls); +JNIEXPORT void JNICALL Java_org_simgrid_msg_Mutex_init(JNIEnv * env, jobject obj); +JNIEXPORT void JNICALL Java_org_simgrid_msg_Mutex_acquire(JNIEnv * env, jobject obj); +JNIEXPORT void JNICALL Java_org_simgrid_msg_Mutex_release(JNIEnv * env, jobject obj); +JNIEXPORT void JNICALL Java_org_simgrid_msg_Mutex_nativeFinalize(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_Semaphore_nativeFinalize(JNIEnv * env, jobject obj); + +SG_END_DECL() #endif /* !MSG_JPROCESS_H */