]> AND Public Git Repository - simgrid.git/blobdiff - src/msg/msg_host.c
Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Use m_file_t instead of m_file_t*
[simgrid.git] / src / msg / msg_host.c
index bcd8b8f79ebcfd25424804212d5c1b5668daa98d..1723408379b1c884496b138465c61f746f61a70e 100644 (file)
@@ -54,7 +54,7 @@ m_host_t __MSG_host_create(smx_host_t workstation, void *data)
     memset(alias, 0, MAX_ALIAS_NAME + 1);
   }
 
-  SIMIX_req_host_set_data(workstation, host);
+  simcall_host_set_data(workstation, host);
   xbt_lib_set(host_lib,name,MSG_HOST_LEVEL,host);
 
   return host;
@@ -117,7 +117,7 @@ const char *MSG_host_get_name(m_host_t host)
  */
 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
@@ -195,7 +195,7 @@ double MSG_get_host_speed(m_host_t h)
 {
   xbt_assert((h != NULL), "Invalid parameters");
 
-  return (SIMIX_req_host_get_speed(h->simdata->smx_host));
+  return (simcall_host_get_speed(h->simdata->smx_host));
 }
 
 /** \ingroup m_host_management
@@ -220,7 +220,7 @@ xbt_dict_t MSG_host_get_properties(m_host_t host)
 {
   xbt_assert((host != NULL), "Invalid parameters (host is NULL)");
 
-  return (SIMIX_req_host_get_properties(host->simdata->smx_host));
+  return (simcall_host_get_properties(host->simdata->smx_host));
 }
 
 
@@ -232,5 +232,5 @@ xbt_dict_t MSG_host_get_properties(m_host_t host)
 int MSG_host_is_avail(m_host_t h)
 {
   xbt_assert((h != NULL), "Invalid parameters (host is NULL)");
-  return (SIMIX_req_host_get_state(h->simdata->smx_host));
+  return (simcall_host_get_state(h->simdata->smx_host));
 }