A
lgorithmique
N
umérique
D
istribuée
Public GIT Repository
projects
/
simgrid.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Simplify the API between Engine and EngineImpl when registering functions
[simgrid.git]
/
src
/
bindings
/
java
/
jmsg_storage.cpp
diff --git
a/src/bindings/java/jmsg_storage.cpp
b/src/bindings/java/jmsg_storage.cpp
index
1ade9fc
..
4132d49
100644
(file)
--- a/
src/bindings/java/jmsg_storage.cpp
+++ b/
src/bindings/java/jmsg_storage.cpp
@@
-1,6
+1,6
@@
/* Java bindings of the Storage API. */
/* Java bindings of the Storage API. */
-/* Copyright (c) 2012-20
18
. The SimGrid Team. All rights reserved. */
+/* Copyright (c) 2012-20
20
. 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. */
/* 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. */
@@
-103,7
+103,7
@@
JNIEXPORT jobject JNICALL Java_org_simgrid_msg_Storage_getByName(JNIEnv * env, j
}
JNIEXPORT jlong JNICALL Java_org_simgrid_msg_Storage_getSize(JNIEnv * env,jobject jstorage) {
}
JNIEXPORT jlong JNICALL Java_org_simgrid_msg_Storage_getSize(JNIEnv * env,jobject jstorage) {
-
m
sg_storage_t storage = jstorage_get_native(env, jstorage);
+
const_
sg_storage_t storage = jstorage_get_native(env, jstorage);
if (not storage) {
jxbt_throw_notbound(env, "storage", jstorage);
if (not storage) {
jxbt_throw_notbound(env, "storage", jstorage);
@@
-114,7
+114,7
@@
JNIEXPORT jlong JNICALL Java_org_simgrid_msg_Storage_getSize(JNIEnv * env,jobjec
}
JNIEXPORT jlong JNICALL Java_org_simgrid_msg_Storage_getFreeSize(JNIEnv * env,jobject jstorage) {
}
JNIEXPORT jlong JNICALL Java_org_simgrid_msg_Storage_getFreeSize(JNIEnv * env,jobject jstorage) {
-
m
sg_storage_t storage = jstorage_get_native(env, jstorage);
+
const_
sg_storage_t storage = jstorage_get_native(env, jstorage);
if (not storage) {
jxbt_throw_notbound(env, "storage", jstorage);
if (not storage) {
jxbt_throw_notbound(env, "storage", jstorage);
@@
-125,7
+125,7
@@
JNIEXPORT jlong JNICALL Java_org_simgrid_msg_Storage_getFreeSize(JNIEnv * env,jo
}
JNIEXPORT jlong JNICALL Java_org_simgrid_msg_Storage_getUsedSize(JNIEnv * env,jobject jstorage) {
}
JNIEXPORT jlong JNICALL Java_org_simgrid_msg_Storage_getUsedSize(JNIEnv * env,jobject jstorage) {
-
m
sg_storage_t storage = jstorage_get_native(env, jstorage);
+
const_
sg_storage_t storage = jstorage_get_native(env, jstorage);
if (not storage) {
jxbt_throw_notbound(env, "storage", jstorage);
if (not storage) {
jxbt_throw_notbound(env, "storage", jstorage);
@@
-136,7
+136,7
@@
JNIEXPORT jlong JNICALL Java_org_simgrid_msg_Storage_getUsedSize(JNIEnv * env,jo
}
JNIEXPORT jobject JNICALL Java_org_simgrid_msg_Storage_getProperty(JNIEnv *env, jobject jstorage, jobject jname) {
}
JNIEXPORT jobject JNICALL Java_org_simgrid_msg_Storage_getProperty(JNIEnv *env, jobject jstorage, jobject jname) {
-
m
sg_storage_t storage = jstorage_get_native(env, jstorage);
+
const_
sg_storage_t storage = jstorage_get_native(env, jstorage);
if (not storage) {
jxbt_throw_notbound(env, "storage", jstorage);
if (not storage) {
jxbt_throw_notbound(env, "storage", jstorage);
@@
-170,11
+170,10
@@
Java_org_simgrid_msg_Storage_setProperty(JNIEnv *env, jobject jstorage, jobject
env->ReleaseStringUTFChars((jstring) jvalue, value_java);
env->ReleaseStringUTFChars((jstring) jname, name);
env->ReleaseStringUTFChars((jstring) jvalue, value_java);
env->ReleaseStringUTFChars((jstring) jname, name);
-
}
JNIEXPORT jobject JNICALL Java_org_simgrid_msg_Storage_getHost(JNIEnv * env,jobject jstorage) {
}
JNIEXPORT jobject JNICALL Java_org_simgrid_msg_Storage_getHost(JNIEnv * env,jobject jstorage) {
-
m
sg_storage_t storage = jstorage_get_native(env, jstorage);
+
const_
sg_storage_t storage = jstorage_get_native(env, jstorage);
if (not storage) {
jxbt_throw_notbound(env, "storage", jstorage);
if (not storage) {
jxbt_throw_notbound(env, "storage", jstorage);