*/
XBT_PUBLIC(double) surf_network_action_get_latency_limited(surf_action_t action);
-/**
- * @brief Get the file associated to a storage action
- *
- * @param action The surf storage action
- * @return The file associated to a storage action
- */
-XBT_PUBLIC(surf_file_t) surf_storage_action_get_file(surf_action_t action);
-
/** @} */
/**************************************/
#include "src/kernel/activity/SynchroIo.hpp"
#include "src/simix/smx_private.h"
#include "src/surf/FileImpl.hpp"
+#include "src/surf/StorageImpl.hpp"
#include "src/surf/surf_interface.hpp"
void simgrid::kernel::activity::IoImpl::suspend()
for (smx_simcall_t simcall : simcalls) {
switch (simcall->call) {
case SIMCALL_FILE_OPEN: {
- surf_file_t tmp = surf_storage_action_get_file(surf_io);
+ surf_file_t tmp = static_cast<simgrid::surf::StorageAction*>(surf_io)->file_;
simcall_file_open__set__result(simcall, tmp);
break;
}
void surf_cpu_action_set_bound(surf_action_t action, double bound) {
static_cast<simgrid::surf::CpuAction*>(action)->setBound(bound);
}
-
-surf_file_t surf_storage_action_get_file(surf_action_t action){
- return static_cast<simgrid::surf::StorageAction*>(action)->file_;
-}