- xbt_assert0((h!= NULL), "Invalid parameters");
- xbt_assert0(0, "Not implemented yet");
+ xbt_assert((h != NULL), "Invalid parameters");
+ xbt_die( "Not implemented yet");
+
+ return (0);
+}
+
+/** \ingroup m_host_management
+ * \brief Return the speed of the processor (in flop/s), regardless of
+ the current load on the machine.
+ */
+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));
+}
+
+/** \ingroup m_host_management
+ * \brief Returns the value of a given host property
+ *
+ * \param host a host
+ * \param name a property name
+ * \return value of a property (or NULL if property not set)
+ */
+const char *MSG_host_get_property_value(m_host_t host, const char *name)
+{
+ return xbt_dict_get_or_null(MSG_host_get_properties(host), name);
+}