X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/fd7325c13c2afc315d1dfa41c643a58197bfe99a..4a69abcc786d029bd2962537f767d12a0f808d11:/src/msg/msg_io.cpp diff --git a/src/msg/msg_io.cpp b/src/msg/msg_io.cpp index cb3b97d284..3341faf194 100644 --- a/src/msg/msg_io.cpp +++ b/src/msg/msg_io.cpp @@ -5,6 +5,7 @@ #include "simgrid/s4u/host.hpp" #include "src/msg/msg_private.h" +#include "src/surf/storage_interface.hpp" #include XBT_LOG_NEW_DEFAULT_SUBCATEGORY(msg_io, msg, "Logging specific to MSG (io)"); @@ -586,7 +587,14 @@ void *MSG_storage_get_data(msg_storage_t storage) */ xbt_dict_t MSG_storage_get_content(msg_storage_t storage) { - return SIMIX_storage_get_content(storage); + std::map* content = + static_cast(surf_storage_resource_priv(storage))->getContent(); + xbt_dict_t content_dict = xbt_dict_new_homogeneous(nullptr); + + for (auto entry : *content) { + xbt_dict_set(content_dict, entry.first.c_str(), entry.second, nullptr); + } + return content_dict; } /** \ingroup msg_storage_management