*/
m_host_t MSG_host_self(void)
{
- return MSG_process_get_host(MSG_process_self());
+ return MSG_process_get_host(NULL);
}
/** \ingroup m_host_management
*/
int MSG_get_host_number(void)
{
- return host_lib->count;
+ return xbt_lib_length(host_lib);
}
/** \ingroup m_host_management
char *key;
void **data;
- if (host_lib->count == 0)
+ if (xbt_lib_length(host_lib) == 0)
return NULL;
else
- array = xbt_new0(void *, host_lib->count);
+ array = xbt_new0(void *, xbt_lib_length(host_lib));
xbt_lib_foreach(host_lib, cursor, key, data) {
- if(get_network_element_type(key) == SURF_NETWORK_ELEMENT_HOST)
+ if(routing_get_network_element_type(key) == SURF_NETWORK_ELEMENT_HOST)
array[i++] = data[MSG_HOST_LEVEL];
}