X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/902f44b9e3ebc4440e3dd623c2683a65cf418b75..aceb880ccaea97ba93e72cc862ba5954c85f321b:/src/surf/surf_c_bindings.cpp diff --git a/src/surf/surf_c_bindings.cpp b/src/surf/surf_c_bindings.cpp index 1b00946611..7840806932 100644 --- a/src/surf/surf_c_bindings.cpp +++ b/src/surf/surf_c_bindings.cpp @@ -1,10 +1,9 @@ -/* Copyright (c) 2013-2015. The SimGrid Team. - * All rights reserved. */ +/* Copyright (c) 2013-2017. The SimGrid Team. All rights reserved. */ /* This program is free software; you can redistribute it and/or modify it * under the terms of the license (GNU LGPL) which comes with this package. */ -#include "simgrid/s4u/engine.hpp" +#include "simgrid/s4u/Engine.hpp" #include "src/instr/instr_private.h" #include "src/plugins/vm/VirtualMachineImpl.hpp" @@ -208,12 +207,8 @@ int surf_host_file_move(sg_host_t host, surf_file_t fd, const char* fullpath){ return host->pimpl_->fileMove(fd, fullpath); } -xbt_dict_t surf_storage_get_content(surf_resource_t resource){ - return static_cast(surf_storage_resource_priv(resource))->getContent(); -} - sg_size_t surf_storage_get_size(surf_resource_t resource){ - return static_cast(surf_storage_resource_priv(resource))->getSize(); + return static_cast(surf_storage_resource_priv(resource))->size_; } sg_size_t surf_storage_get_free_size(surf_resource_t resource){ @@ -232,6 +227,10 @@ const char* surf_storage_get_host(surf_resource_t resource){ return static_cast(surf_storage_resource_priv(resource))->attach_; } +const char* surf_storage_get_name(surf_resource_t resource){ + return static_cast(surf_storage_resource_priv(resource))->cname(); +} + void surf_cpu_action_set_bound(surf_action_t action, double bound) { static_cast(action)->setBound(bound); }