-/**
- * \brief Sets the user data of a link
- *
- * The new data can be \c NULL. The old data should have been freed first
- * if it was not \c NULL.
- *
- * \param link a link
- * \param data the new data you want to associate with this link
- * \see SD_link_get_data()
- */
-void SD_link_set_data(SD_link_t link, void *data) {
- SD_CHECK_INIT_DONE();
- xbt_assert0(link != NULL, "Invalid parameter");
- link->data = data;
-}
-
-/**
- * \brief Returns the name of a link
- *
- * \param link a link
- * \return the name of this link (cannot be \c NULL)
- */
-const char* SD_link_get_name(SD_link_t link) {
- SD_CHECK_INIT_DONE();
- xbt_assert0(link != NULL, "Invalid parameter");
- return surf_workstation_resource->extension_public->get_link_name(link->surf_link);
-}
-
-/**
- * \brief Returns the current bandwidth of a link
- *
- * \param link a link
- * \return the current bandwidth of this link, in Flops
- */
-double SD_link_get_current_bandwidth(SD_link_t link) {
- SD_CHECK_INIT_DONE();
- xbt_assert0(link != NULL, "Invalid parameter");
- return surf_workstation_resource->extension_public->get_link_bandwidth(link->surf_link);
-}
-
-/**
- * \brief Returns the current latency of a link
- *
- * \param link a link
- * \return the current latency of this link, in seconds
- */
-double SD_link_get_current_latency(SD_link_t link) {
- SD_CHECK_INIT_DONE();
- xbt_assert0(link != NULL, "Invalid parameter");
- return surf_workstation_resource->extension_public->get_link_latency(link->surf_link);
-}
-
-/* Destroys a link.
- */
-void __SD_link_destroy(void *link) {
- SD_CHECK_INIT_DONE();
- xbt_assert0(link != NULL, "Invalid parameter");
- /* link->surf_link is freed by surf_exit and link->data is freed by the user */
- xbt_free(link);
-}