* under the terms of the license (GNU LGPL) which comes with this package. */
#include "xbt/str.h"
-#include "msg/msg.h"
+#include "simgrid/msg.h"
#include "jmsg.h"
#include "jmsg_host.h"
#include "jxbt_utilities.h"
}
JNIEXPORT jboolean JNICALL
-Java_org_simgrid_msg_Host_isAvail(JNIEnv * env, jobject jhost) {
+Java_org_simgrid_msg_Host_isOn(JNIEnv * env, jobject jhost) {
msg_host_t host = jhost_get_native(env, jhost);
if (!host) {
return 0;
}
- return (jboolean) MSG_host_is_avail(host);
+ return (jboolean) MSG_host_is_on(host);
}
JNIEXPORT jobjectArray JNICALL