1 /* Public interface to the Link datatype */
3 /* Copyright (c) 2015-2018. The SimGrid Team.
4 * All rights reserved. */
6 /* This program is free software; you can redistribute it and/or modify it
7 * under the terms of the license (GNU LGPL) which comes with this package. */
9 #ifndef INCLUDE_SIMGRID_LINK_H_
10 #define INCLUDE_SIMGRID_LINK_H_
12 #include "simgrid/forward.h"
17 XBT_PUBLIC const char* sg_link_name(sg_link_t link);
18 XBT_PUBLIC sg_link_t sg_link_by_name(const char* name);
19 XBT_PUBLIC int sg_link_is_shared(sg_link_t link);
20 XBT_PUBLIC double sg_link_bandwidth(sg_link_t link);
21 XBT_PUBLIC double sg_link_latency(sg_link_t link);
22 XBT_PUBLIC void* sg_link_data(sg_link_t link);
23 XBT_PUBLIC void sg_link_data_set(sg_link_t link, void* data);
24 XBT_PUBLIC int sg_link_count();
25 XBT_PUBLIC sg_link_t* sg_link_list();
26 XBT_PUBLIC void sg_link_exit();
29 #endif /* INCLUDE_SIMGRID_LINK_H_ */