Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
add a SD_workstation_storage_get_list as a first try to add storage
authorsuter <frederic.suter@cc.in2p3.fr>
Fri, 9 Aug 2013 14:48:45 +0000 (16:48 +0200)
committersuter <frederic.suter@cc.in2p3.fr>
Fri, 9 Aug 2013 14:48:45 +0000 (16:48 +0200)
management to SimDag.

include/simdag/simdag.h
src/simdag/sd_workstation.c

index bd9ee4e..fe7e32c 100644 (file)
@@ -105,6 +105,8 @@ XBT_PUBLIC(double) SD_route_get_communication_time(SD_workstation_t src,
 
 XBT_PUBLIC(SD_task_t) SD_workstation_get_current_task(SD_workstation_t
                                                       workstation);
+XBT_PUBLIC(xbt_dynar_t)
+    SD_workstation_get_storage_list(SD_workstation_t workstation);
 /** @} */
 
 /************************** Task handling ************************************/
index f961c7f..3dbc6c0 100644 (file)
@@ -450,6 +450,16 @@ void SD_workstation_set_access_mode(SD_workstation_t workstation,
   }
 }
 
+/**
+ * \brief Return the list of mounted storages on a workstation.
+ *
+ * \param workstation a workstation
+ * \return a dynar containing all mounted storages on the workstation
+ */
+xbt_dynar_t SD_workstation_get_storage_list(SD_workstation_t workstation){
+  return surf_workstation_model->extension.workstation.get_storage_list(workstation);
+}
+
 /* Returns whether a task can start now on a workstation*/
 /*
   int __SD_workstation_can_start(SD_workstation_t workstation, SD_task_t task) {