Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
add sg_disk_get_host()
[simgrid.git] / include / simgrid / disk.h
1 /* Copyright (c) 2020. 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 #include <xbt/base.h>
11
12 /* C interface */
13 SG_BEGIN_DECL
14 XBT_PUBLIC const char* sg_disk_name(const_sg_disk_t disk);
15 XBT_PUBLIC sg_host_t sg_disk_get_host(const_sg_disk_t disk);
16 XBT_PUBLIC double sg_disk_read_bandwidth(const_sg_disk_t disk);
17 XBT_PUBLIC double sg_disk_write_bandwidth(const_sg_disk_t disk);
18 XBT_PUBLIC sg_size_t sg_disk_write(sg_disk_t disk, sg_size_t size);
19 XBT_PUBLIC sg_size_t sg_disk_read(sg_disk_t disk, sg_size_t size);
20 XBT_PUBLIC void* sg_disk_data(const_sg_disk_t disk);
21 XBT_PUBLIC void sg_disk_data_set(sg_disk_t disk, void* data);
22 SG_END_DECL
23
24 #endif /* INCLUDE_SIMGRID_DISK_H_ */