Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Ansi C declaration of the variables (at the beginning of the blocks)
[simgrid.git] / src / simdag / sd_workstation.c
index b7e97e8..814c091 100644 (file)
@@ -130,20 +130,20 @@ const char* SD_workstation_get_name(SD_workstation_t workstation) {
 }
 
 /**
- * \brief Returns the value of a certain workstation property
+ * \brief Returns the value of a given workstation property
  *
  * \param workstation a workstation
  * \param name a property name
- * \return value of a property
+ * \return value of a property (or NULL if property not set)
  */
-const char* SD_workstation_get_property_value(SD_workstation_t ws, char* name)
+const char* SD_workstation_get_property_value(SD_workstation_t ws, const char* name)
 {
   return xbt_dict_get_or_null(SD_workstation_get_properties(ws), name);
 }
 
 
 /**
- * \brief Returns a xbt_dynar_t consisting of the list of properties assigned to this workstation
+ * \brief Returns a #xbt_dict_t consisting of the list of properties assigned to this workstation
  *
  * \param workstation a workstation
  * \return the dictionary containing the properties associated with the workstation
@@ -153,7 +153,7 @@ xbt_dict_t SD_workstation_get_properties(SD_workstation_t workstation)
   SD_CHECK_INIT_DONE();
   xbt_assert0((workstation != NULL), "Invalid parameters");
 
-  return (surf_workstation_model->common_public->get_cpu_properties(workstation->surf_workstation));
+  return (surf_workstation_model->common_public->get_properties(workstation->surf_workstation));
 
 }