- e_surf_cpu_state_t cpustate;
- xbt_assert0((h!= NULL), "Invalid parameters");
+ xbt_fifo_item_t i = NULL;
+ smx_host_t host = NULL;
+
+ xbt_assert0(((simix_global != NULL)
+ && (simix_global->host != NULL)),
+ "Environment not set yet");
+
+ xbt_fifo_foreach(simix_global->host, i, host, smx_host_t) {
+ if (strcmp(host->name, name) == 0)
+ return host;
+ }
+ return NULL;
+}
+
+/**
+ * \brief Returns a xbt_dynar_t consisting of the list of properties assigned to this host
+ *
+ * \param host a host
+ * \return the dynamic array consisting of property names
+ */
+xbt_dict_t SIMIX_host_get_properties(smx_host_t host)
+{
+ xbt_assert0((host != NULL), "Invalid parameters");