X-Git-Url: http://bilbo.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/6af809fdd97845671db6136b3903e0d543ab7217..7a1cda7748ca356a3608f8d4eba73a3c1d9c79de:/src/include/surf/surf.h diff --git a/src/include/surf/surf.h b/src/include/surf/surf.h index 07bda08049..c9b5fd6980 100644 --- a/src/include/surf/surf.h +++ b/src/include/surf/surf.h @@ -18,6 +18,7 @@ #include "xbt/lib.h" #include "surf/surf_routing.h" #include "simgrid/platf_interface.h" +#include "simgrid/datatypes.h" SG_BEGIN_DECL() /* Actions and models are highly connected structures... */ @@ -183,28 +184,6 @@ typedef enum { } e_surf_vm_state_t; -typedef struct ws_params { - int ncpus; - sg_size_t ramsize; - int overcommit; - - /* The size of other states than memory pages, which is out-of-scope of dirty - * page tracking. */ - long devsize; - int skip_stage1; - int skip_stage2; - double max_downtime; - - double dp_rate; - double dp_cap; /* bytes per 1 flop execution */ - - double xfer_cpu_overhead; - double dpt_cpu_overhead; - - /* set migration speed */ - double mig_speed; -} s_ws_params_t, *ws_params_t; - /***************************/ /* Generic model object */ /***************************/ @@ -291,6 +270,8 @@ xbt_dict_t surf_workstation_get_storage_list(surf_resource_t workstation); int surf_workstation_unlink(surf_resource_t workstation, surf_file_t fd); surf_action_t surf_workstation_ls(surf_resource_t workstation, const char* mount, const char *path); size_t surf_workstation_get_size(surf_resource_t workstation, surf_file_t fd); +size_t surf_workstation_file_tell(surf_resource_t workstation, surf_file_t fd); +int surf_workstation_file_seek(surf_resource_t workstation, surf_file_t fd, sg_size_t offset, int origin); int surf_network_link_is_shared(surf_cpp_resource_t link); double surf_network_link_get_bandwidth(surf_cpp_resource_t link); double surf_network_link_get_latency(surf_cpp_resource_t link);