From: Frederic Suter Date: Fri, 7 Feb 2020 10:18:42 +0000 (+0100) Subject: Deprecate host_get_mounted_storage_list X-Git-Tag: v3.26~1000 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/beab0c35a476db131ba31536ffd5ea9720fe7bae Deprecate host_get_mounted_storage_list --- diff --git a/include/simgrid/msg.h b/include/simgrid/msg.h index a9b2830b20..e38fd6e1ff 100644 --- a/include/simgrid/msg.h +++ b/include/simgrid/msg.h @@ -103,7 +103,10 @@ XBT_PUBLIC const char* MSG_host_get_name(const_sg_host_t host); XBT_PUBLIC void* MSG_host_get_data(const_sg_host_t host); /** @brief Sets the user data of this host */ XBT_PUBLIC void MSG_host_set_data(sg_host_t host, void* data); -XBT_PUBLIC xbt_dict_t MSG_host_get_mounted_storage_list(sg_host_t host); + +XBT_ATTRIB_DEPRECATED_v330("This function will be removed. Speak up if you need it.") XBT_PUBLIC xbt_dict_t + MSG_host_get_mounted_storage_list(sg_host_t host); + XBT_PUBLIC xbt_dynar_t MSG_host_get_attached_storage_lists(const_sg_host_t host); XBT_PUBLIC double MSG_host_get_speed(const_sg_host_t host); XBT_PUBLIC double MSG_host_get_power_peak_at(const_sg_host_t host, int pstate_index); diff --git a/include/simgrid/simdag.h b/include/simgrid/simdag.h index 1f015a857b..0ca092806a 100644 --- a/include/simgrid/simdag.h +++ b/include/simgrid/simdag.h @@ -187,7 +187,7 @@ XBT_PUBLIC xbt_dynar_t SD_PTG_dotload(const char* filename); #define SD_route_get_latency sg_host_route_latency #define SD_route_get_bandwidth sg_host_route_bandwidth -#define SD_workstation_get_mounted_storage_list sg_host_get_mounted_storage_list +#define SD_workstation_get_mounted_storage_list sg_host_get_mounted_storage_list // XBT_ATTRIB_DEPRECATED_v330 // Lost functions //SD_workstation_get_access_mode //SD_workstation_set_access_mode diff --git a/src/msg/msg_legacy.cpp b/src/msg/msg_legacy.cpp index b38a12c23b..01de8f8065 100644 --- a/src/msg/msg_legacy.cpp +++ b/src/msg/msg_legacy.cpp @@ -320,7 +320,7 @@ void MSG_host_set_data(sg_host_t host, void* data) { return sg_host_data_set(host, data); } -xbt_dict_t MSG_host_get_mounted_storage_list(sg_host_t host) +xbt_dict_t MSG_host_get_mounted_storage_list(sg_host_t host) // XBT_ATTRIB_DEPRECATED_v330 { return sg_host_get_mounted_storage_list(host); } diff --git a/src/s4u/s4u_Host.cpp b/src/s4u/s4u_Host.cpp index 9ac3894aec..2e250b9786 100644 --- a/src/s4u/s4u_Host.cpp +++ b/src/s4u/s4u_Host.cpp @@ -391,7 +391,7 @@ void sg_host_disks(sg_host_t host, unsigned int* disk_count, sg_disk_t** disks) (*disks)[i] = list[i]; } -xbt_dict_t sg_host_get_mounted_storage_list(sg_host_t host) +xbt_dict_t sg_host_get_mounted_storage_list(sg_host_t host) // XBT_ATTRIB_DEPRECATED_v330 { xbt_assert((host != nullptr), "Invalid parameters"); xbt_dict_t res = xbt_dict_new_homogeneous(nullptr);