* under the terms of the license (GNU LGPL) which comes with this package. */
#include <msg/msg.h>
-#include <simix/context.h>
+#include <simgrid/simix.h>
#include <surf/surfxml_parse.h>
#include "smx_context_java.h"
(xbt_main_func_t) jprocess,
/*data*/ NULL,
host,
+ /*kill_time*/0.,
/*argc, argv, properties*/
0,NULL,NULL);
XBT_DEBUG("Looking for host '%s'",name);
/* get the host by name (the hosts are created during the grid resolution) */
host = MSG_get_host_by_name(name);
- XBT_DEBUG("MSG gave %p as native host (simdata=%p)", host,host? host->simdata:NULL);
+ XBT_DEBUG("MSG gave %p as native host (smx_host=%p)", host,host? host->smx_host:NULL);
if (!host) { /* invalid name */
jxbt_throw_host_not_found(env, name);
/* Cleanup java hosts */
hosts = MSG_hosts_as_dynar();
for (index = 0; index < xbt_dynar_length(hosts) - 1; index++) {
- jhost = (jobject) xbt_dynar_get_as(hosts,index,m_host_t)->data;
+ jhost = (jobject) MSG_host_get_data(xbt_dynar_get_as(hosts,index,m_host_t));
if (jhost)
jhost_unref(env, jhost);