- return get_casted_host(host)->fileMove(fd, fullpath);
-}
-
-xbt_dynar_t surf_host_get_vms(sg_host_t host){
- xbt_dynar_t vms = get_casted_host(host)->getVms();
- xbt_dynar_t vms_ = xbt_dynar_new(sizeof(sg_host_t), NULL);
- unsigned int cpt;
- simgrid::surf::VirtualMachine *vm;
- xbt_dynar_foreach(vms, cpt, vm) {
- // TODO, use a backlink from simgrid::surf::Host to simgrid::s4u::Host
- sg_host_t vm_ = (sg_host_t) xbt_dict_get_elm_or_null(host_list, vm->getName());
- xbt_dynar_push(vms_, &vm_);
- }
- xbt_dynar_free(&vms);
- return vms_;
-}
-
-void surf_host_get_params(sg_host_t host, vm_params_t params){
- get_casted_host(host)->getParams(params);
-}
-
-void surf_host_set_params(sg_host_t host, vm_params_t params){
- get_casted_host(host)->setParams(params);
-}
-
-void surf_vm_destroy(sg_host_t vm){ // FIXME:DEADCODE
- vm->pimpl_cpu = nullptr;
- vm->pimpl_netcard = nullptr;
-}
-
-void surf_vm_suspend(sg_host_t vm){
- get_casted_vm(vm)->suspend();
-}
-
-void surf_vm_resume(sg_host_t vm){
- get_casted_vm(vm)->resume();
-}
-
-void surf_vm_save(sg_host_t vm){
- get_casted_vm(vm)->save();
-}
-
-void surf_vm_restore(sg_host_t vm){
- get_casted_vm(vm)->restore();
-}
-
-void surf_vm_migrate(sg_host_t vm, sg_host_t ind_vm_ws_dest){
- get_casted_vm(vm)->migrate(ind_vm_ws_dest);
-}
-
-sg_host_t surf_vm_get_pm(sg_host_t vm){
- return get_casted_vm(vm)->getPm();
-}
-
-void surf_vm_set_bound(sg_host_t vm, double bound){
- return get_casted_vm(vm)->setBound(bound);
-}
-
-void surf_vm_set_affinity(sg_host_t vm, sg_host_t host, unsigned long mask){
- return get_casted_vm(vm)->setAffinity(host->pimpl_cpu, mask);
-}
-
-xbt_dict_t surf_storage_get_content(surf_resource_t resource){
- return static_cast<simgrid::surf::Storage*>(surf_storage_resource_priv(resource))->getContent();