X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/d3154c75960afc4f3fe7e53c835e35f2584ed97a..deac2c062ec8d469f153bc84e6e6f705bf20f3aa:/src/surf/surf_c_bindings.cpp diff --git a/src/surf/surf_c_bindings.cpp b/src/surf/surf_c_bindings.cpp index fb652db524..e536732d2d 100644 --- a/src/surf/surf_c_bindings.cpp +++ b/src/surf/surf_c_bindings.cpp @@ -7,7 +7,6 @@ #include "src/surf/HostImpl.hpp" #include "surf_interface.hpp" #include "network_interface.hpp" -#include "surf_routing_cluster.hpp" #include "src/instr/instr_private.h" #include "plugins/energy.hpp" #include "virtual_machine.hpp" @@ -163,7 +162,7 @@ double surf_solve(double max_date) surf_action_t surf_model_extract_done_action_set(surf_model_t model){ if (model->getDoneActionSet()->empty()) - return NULL; + return NULL; surf_action_t res = &model->getDoneActionSet()->front(); model->getDoneActionSet()->pop_front(); return res; @@ -171,7 +170,7 @@ surf_action_t surf_model_extract_done_action_set(surf_model_t model){ surf_action_t surf_model_extract_failed_action_set(surf_model_t model){ if (model->getFailedActionSet()->empty()) - return NULL; + return NULL; surf_action_t res = &model->getFailedActionSet()->front(); model->getFailedActionSet()->pop_front(); return res; @@ -189,19 +188,10 @@ surf_action_t surf_network_model_communicate(surf_network_model_t model, sg_host return model->communicate(src->pimpl_netcard, dst->pimpl_netcard, size, rate); } -const char *surf_resource_name(surf_cpp_resource_t resource){ - return resource->getName(); -} - surf_action_t surf_host_sleep(sg_host_t host, double duration){ return host->pimpl_cpu->sleep(duration); } - -double surf_host_get_available_speed(sg_host_t host){ - return host->pimpl_cpu->getAvailableSpeed(); -} - surf_action_t surf_host_open(sg_host_t host, const char* fullpath){ return get_casted_host(host)->open(fullpath); }