Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Deprecate host_get_mounted_storage_list
authorFrederic Suter <frederic.suter@cc.in2p3.fr>
Fri, 7 Feb 2020 10:18:42 +0000 (11:18 +0100)
committerFrederic Suter <frederic.suter@cc.in2p3.fr>
Fri, 7 Feb 2020 10:18:42 +0000 (11:18 +0100)
include/simgrid/msg.h
include/simgrid/simdag.h
src/msg/msg_legacy.cpp
src/s4u/s4u_Host.cpp

index a9b2830..e38fd6e 100644 (file)
@@ -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);
index 1f015a8..0ca0928 100644 (file)
@@ -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
index b38a12c..01de8f8 100644 (file)
@@ -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);
 }
index 9ac3894..2e250b9 100644 (file)
@@ -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);