Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Merge branch 'wifi_rate_zero' into 'master'
[simgrid.git] / include / simgrid / disk.h
1 /* Copyright (c) 2020-2022. The SimGrid Team. All rights reserved.          */
2
3 /* This program is free software; you can redistribute it and/or modify it
4  * under the terms of the license (GNU LGPL) which comes with this package. */
5
6 #ifndef INCLUDE_SIMGRID_DISK_H_
7 #define INCLUDE_SIMGRID_DISK_H_
8
9 #include <simgrid/forward.h>
10
11 /* C interface */
12 SG_BEGIN_DECL
13 XBT_PUBLIC const char* sg_disk_get_name(const_sg_disk_t disk);
14 XBT_PUBLIC sg_host_t sg_disk_get_host(const_sg_disk_t disk);
15 XBT_PUBLIC double sg_disk_read_bandwidth(const_sg_disk_t disk);
16 XBT_PUBLIC double sg_disk_write_bandwidth(const_sg_disk_t disk);
17 XBT_PUBLIC sg_size_t sg_disk_write(const_sg_disk_t disk, sg_size_t size);
18 XBT_PUBLIC sg_size_t sg_disk_read(const_sg_disk_t disk, sg_size_t size);
19 XBT_PUBLIC void* sg_disk_get_data(const_sg_disk_t disk);
20 XBT_PUBLIC void sg_disk_set_data(sg_disk_t disk, void* data);
21 SG_END_DECL
22
23 #endif /* INCLUDE_SIMGRID_DISK_H_ */