Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
there is no need for a SimDag's link type
[simgrid.git] / include / simgrid / link.h
1 /* Public interface to the Link datatype                                    */
2
3 /* Copyright (c) 2015. 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 #ifdef __cplusplus
12 class Link;
13 #else
14 typedef struct Link Link;
15 #endif
16
17 /* C interface */
18 SG_BEGIN_DECL()
19 XBT_PUBLIC(int) surf_network_link_is_shared(Link *link);
20 XBT_PUBLIC(double) surf_network_link_get_bandwidth(Link *link);
21 XBT_PUBLIC(double) surf_network_link_get_latency(Link *link);
22 XBT_PUBLIC(const char*) surf_network_link_get_name(Link *link);
23 XBT_PUBLIC(void*) surf_network_link_data(Link *link);
24 XBT_PUBLIC(void) surf_network_link_data_set(Link *link,void *data);
25 SG_END_DECL()
26
27 #endif /* INCLUDE_SIMGRID_LINK_H_ */