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
[mc] Fix compilation error on clang (and group all the region creation functions...
[simgrid.git]
/
src
/
bindings
/
java
/
jmsg_as.c
diff --git
a/src/bindings/java/jmsg_as.c
b/src/bindings/java/jmsg_as.c
index
30f8b0e
..
f3ed319
100644
(file)
--- a/
src/bindings/java/jmsg_as.c
+++ b/
src/bindings/java/jmsg_as.c
@@
-1,16
+1,19
@@
/* Functions related to the java host instances. */
/* Functions related to the java host instances. */
-/* Copyright (c) 2007-201
2
. The SimGrid Team.
+/* Copyright (c) 2007-201
4
. The SimGrid Team.
* All rights reserved. */
/* This program is free software; you can redistribute it and/or modify it
* 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. */
#include "xbt/str.h"
#include "xbt/dict.h"
#include "xbt/str.h"
#include "xbt/dict.h"
-#include "
msg
/msg.h"
+#include "
simgrid
/msg.h"
#include "jmsg_as.h"
#include "jmsg_as.h"
+#include "jmsg_host.h"
#include "jxbt_utilities.h"
#include "jxbt_utilities.h"
+#include "jmsg.h"
+
XBT_LOG_EXTERNAL_DEFAULT_CATEGORY(jmsg);
XBT_LOG_EXTERNAL_DEFAULT_CATEGORY(jmsg);
@@
-158,7
+161,7
@@
Java_org_simgrid_msg_As_getHosts(JNIEnv * env, jobject jas)
host = xbt_dynar_get_as(table,index,msg_host_t);
host = xbt_dynar_get_as(table,index,msg_host_t);
- jhost = (jobject)
(MSG_host_get_data(host)
);
+ jhost = (jobject)
xbt_lib_get_level(host, JAVA_HOST_LEVEL
);
if (!jhost) {
jname = (*env)->NewStringUTF(env, MSG_host_get_name(host));
if (!jhost) {
jname = (*env)->NewStringUTF(env, MSG_host_get_name(host));