X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/baa3208e5611ff2efbb717e02edc4259e00f9830..ce41a4a77b69238e56f8acb971f74c587a0d87d4:/include/simgrid/msg.h
diff --git a/include/simgrid/msg.h b/include/simgrid/msg.h
index 3a42609eca..2cfefb73dd 100644
--- a/include/simgrid/msg.h
+++ b/include/simgrid/msg.h
@@ -36,18 +36,35 @@ typedef sg_netzone_t msg_netzone_t;
/* ******************************** Host ************************************ */
-/** @brief Host datatype.
- @ingroup m_host_management
-
- A location (or host) is any possible place where
- a process may run. Thus it is represented as a physical
- resource with computing capabilities, some mailboxes
- to enable running process to communicate with remote ones, and
- some private data that can be only accessed by local
- process.
- */
typedef sg_host_t msg_host_t;
+#define MSG_get_host_number() sg_host_count()
+#define MSG_get_host_by_name(n) sg_host_by_name(n) /* Rewrite the old name into the new one transparently */
+
+#define MSG_hosts_as_dynar() sg_hosts_as_dynar()
+
+#define MSG_host_by_name(name) sg_host_by_name(name)
+#define MSG_host_get_name(host) sg_host_get_name(host)
+#define MSG_host_get_data(host) sg_host_user(host)
+#define MSG_host_set_data(host, data) sg_host_user_set(host, data)
+#define MSG_host_get_mounted_storage_list(host) sg_host_get_mounted_storage_list(host)
+#define MSG_host_get_attached_storage_list(host) host_get_attached_storage_list(host)
+#define MSG_host_get_speed(host) sg_host_speed(host)
+#define MSG_host_get_power_peak_at(host, pstate_index) sg_host_get_pstate_speed(host, pstate_index)
+#define MSG_host_get_core_number(host) sg_host_core_count(host)
+#define MSG_host_self() sg_host_self()
+#define MSG_host_get_nb_pstates(host) sg_host_get_nb_pstates(host)
+#define MSG_host_get_pstate(h) sg_host_get_pstate(h)
+#define MSG_host_set_pstate(h, pstate) sg_host_set_pstate(h, pstate)
+#define MSG_host_on(h) sg_host_turn_on(h)
+#define MSG_host_off(h) sg_host_turn_off(h)
+#define MSG_host_is_on(h) sg_host_is_on(h)
+#define MSG_host_is_off(h) sg_host_is_off(h)
+#define MSG_host_get_properties(host) sg_host_get_properties(host)
+#define MSG_host_get_property_value(host, name) sg_host_get_property_value(host, name)
+#define MSG_host_set_property_value(host, name, value) sg_host_set_property_value(host, name, value)
+#define MSG_host_get_process_list(host, whereto) sg_host_get_actor_list(host, whereto)
+
XBT_PUBLIC_DATA int sg_storage_max_file_descriptors;
/* ******************************** Task ************************************ */