Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Fix broken link to releases
[simgrid.git] / include / simgrid / link.h
1 /* Public interface to the Link datatype                                    */
2
3 /* Copyright (c) 2015-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_LINK_H_
9 #define INCLUDE_SIMGRID_LINK_H_
10
11 #include <simgrid/forward.h>
12
13 /* C interface */
14 SG_BEGIN_DECL
15 XBT_PUBLIC const char* sg_link_get_name(const_sg_link_t link);
16 XBT_ATTRIB_DEPRECATED_v330("Please use sg_link_get_name()") XBT_PUBLIC const char* sg_link_name(const_sg_link_t link);
17 XBT_PUBLIC sg_link_t sg_link_by_name(const char* name);
18 XBT_PUBLIC int sg_link_is_shared(const_sg_link_t link);
19 XBT_PUBLIC double sg_link_get_bandwidth(const_sg_link_t link);
20 XBT_PUBLIC void sg_link_set_bandwidth(sg_link_t link, double value);
21 XBT_ATTRIB_DEPRECATED_v330("Please use sg_link_get_bandwidth()") XBT_PUBLIC
22     double sg_link_bandwidth(const_sg_link_t link);
23 XBT_ATTRIB_DEPRECATED_v330("Please use sg_link_set_bandwidth()") XBT_PUBLIC
24     void sg_link_bandwidth_set(sg_link_t link, double value);
25 XBT_PUBLIC double sg_link_get_latency(const_sg_link_t link);
26 XBT_PUBLIC void sg_link_set_latency(sg_link_t link, double value);
27 XBT_ATTRIB_DEPRECATED_v330("Please use sg_link_get_latency()") XBT_PUBLIC double sg_link_latency(const_sg_link_t link);
28 XBT_ATTRIB_DEPRECATED_v330("Please use sg_link_set_latency()") XBT_PUBLIC
29     void sg_link_latency_set(sg_link_t link, double value);
30 XBT_PUBLIC void* sg_link_get_data(const_sg_link_t link);
31 XBT_PUBLIC void sg_link_set_data(sg_link_t link, void* data);
32 XBT_ATTRIB_DEPRECATED_v330("Please use sg_link_get_data()") XBT_PUBLIC void* sg_link_data(const_sg_link_t link);
33 XBT_ATTRIB_DEPRECATED_v330("Please use sg_link_set_data()") XBT_PUBLIC
34     void sg_link_data_set(sg_link_t link, void* data);
35 XBT_PUBLIC size_t sg_link_count();
36 XBT_PUBLIC sg_link_t* sg_link_list();
37 SG_END_DECL
38
39 #endif /* INCLUDE_SIMGRID_LINK_H_ */