xbt_lib_foreach(host_lib, cursor, name, data) {
if(data[SURF_HOST_LEVEL]){
XBT_DEBUG("\tSee surf host %s",name);
- SIMIX_host_create(name, NULL);
- __MSG_host_create((sg_host_t)data[SIMIX_HOST_LEVEL]);
+ SIMIX_host_create(name);
+ // THIS IS BRAINDEAD. There is no sg_host_t in that level, but a smx_host_priv. So commenting out for now.
+ // Lua is broken anyway. Christian will fix it
+ // __MSG_host_create((sg_host_t)data[SIMIX_HOST_LEVEL]);
}
}
args = xbt_str_split_str( lua_tostring(L,-1) , ",");
lua_pop(L, 1);
- // FIXME: hackish to go under MSG that way
- msg_host_t host = xbt_lib_get_or_null(host_lib,host_id,MSG_HOST_LEVEL);
+ msg_host_t host = MSG_host_by_name(host_id);
if (!host) {
XBT_ERROR("no host '%s' found",host_id);
return -1;
prop_value = lua_tostring(L,-1);
lua_pop(L, 1);
- // FIXME: hackish to go under MSG that way
- msg_host_t host = xbt_lib_get_or_null(host_lib,name,MSG_HOST_LEVEL);
+ msg_host_t host = MSG_host_by_name(name);
if (!host) {
XBT_ERROR("no host '%s' found",name);
return -1;