Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Update copyright lines.
[simgrid.git] / include / simgrid / storage.h
1 /* Public interface to the Link datatype                                    */
2
3 /* Copyright (c) 2018-2021. The SimGrid Team. All rights reserved.          */
4
5 /* This program is free software; you can redistribute it and/or modify it
6  * under the terms of the license (GNU LGPL) which comes with this package. */
7
8 #ifndef INCLUDE_SIMGRID_STORAGE_H_
9 #define INCLUDE_SIMGRID_STORAGE_H_
10
11 #include <simgrid/forward.h>
12 #include <xbt/base.h>
13 #include <xbt/dict.h>
14 #include <xbt/dynar.h>
15
16 /* C interface */
17 SG_BEGIN_DECL
18
19 XBT_PUBLIC const char* sg_storage_get_name(const_sg_storage_t storage);
20 XBT_PUBLIC sg_storage_t sg_storage_get_by_name(const char* name);
21 XBT_PUBLIC xbt_dict_t sg_storage_get_properties(const_sg_storage_t storage);
22 XBT_PUBLIC void sg_storage_set_property_value(sg_storage_t storage, const char* name, const char* value);
23 XBT_PUBLIC const char* sg_storage_get_property_value(const_sg_storage_t storage, const char* name);
24 XBT_PUBLIC xbt_dynar_t sg_storages_as_dynar();
25 XBT_PUBLIC void sg_storage_set_data(sg_storage_t host, void* data);
26 XBT_PUBLIC void* sg_storage_get_data(const_sg_storage_t storage);
27 XBT_PUBLIC const char* sg_storage_get_host(const_sg_storage_t storage);
28 XBT_PUBLIC sg_size_t sg_storage_read(sg_storage_t storage, sg_size_t size);
29 XBT_PUBLIC sg_size_t sg_storage_write(sg_storage_t storage, sg_size_t size);
30
31 SG_END_DECL
32
33 #endif /* INCLUDE_SIMGRID_STORAGE_H_ */