1 /* Public interface to the Link datatype */
3 /* Copyright (c) 2015. The SimGrid Team. All rights reserved. */
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. */
8 #ifndef INCLUDE_SIMGRID_LINK_H_
9 #define INCLUDE_SIMGRID_LINK_H_
14 typedef struct Link Link;
19 XBT_PUBLIC(int) sg_link_is_shared(Link *link);
20 XBT_PUBLIC(double) sg_link_bandwidth(Link *link);
21 XBT_PUBLIC(double) sg_link_latency(Link *link);
22 XBT_PUBLIC(const char*) sg_link_name(Link *link);
23 XBT_PUBLIC(void*) sg_link_data(Link *link);
24 XBT_PUBLIC(void) sg_link_data_set(Link *link,void *data);
27 #endif /* INCLUDE_SIMGRID_LINK_H_ */