/* Functions related to the java host instances. */
-/* Copyright (c) 2007-2014. The SimGrid Team.
+/* Copyright (c) 2007-2015. The SimGrid Team.
* All rights reserved. */
/* This program is free software; you can redistribute it and/or modify it
#include "xbt/str.h"
#include "xbt/dict.h"
-#include "msg/msg.h"
+#include "simgrid/msg.h"
#include "jmsg_as.h"
+#include "jmsg_host.h"
#include "jxbt_utilities.h"
+#include "jmsg.h"
+
XBT_LOG_EXTERNAL_DEFAULT_CATEGORY(jmsg);
}
void jas_bind(jobject jas, msg_as_t as, JNIEnv * env) {
- (*env)->SetLongField(env, jas, jas_field_As_bind, (jlong) (long) (as));
+ (*env)->SetLongField(env, jas, jas_field_As_bind, (jlong) (uintptr_t) (as));
}
msg_as_t jas_get_native(JNIEnv * env, jobject jas) {
- return (msg_as_t) (long) (*env)->GetLongField(env, jas, jas_field_As_bind);
+ return (msg_as_t) (uintptr_t) (*env)->GetLongField(env, jas, jas_field_As_bind);
}
JNIEXPORT void JNICALL