Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
rework the smpirun manpage
[simgrid.git] / include / simgrid / link.h
index 3d9854d..4865236 100644 (file)
@@ -1,6 +1,7 @@
 /* Public interface to the Link datatype                                    */
 
-/* Copyright (c) 2015. The SimGrid Team. All rights reserved.               */
+/* Copyright (c) 2015. The SimGrid Team.
+ * All rights reserved.                                                     */
 
 /* This program is free software; you can redistribute it and/or modify it
  * under the terms of the license (GNU LGPL) which comes with this package. */
@@ -8,20 +9,20 @@
 #ifndef INCLUDE_SIMGRID_LINK_H_
 #define INCLUDE_SIMGRID_LINK_H_
 
-#ifdef __cplusplus
-class Link;
-#else
-typedef struct Link Link;
-#endif
+#include <simgrid/forward.h>
 
 /* C interface */
 SG_BEGIN_DECL()
-XBT_PUBLIC(int) surf_network_link_is_shared(Link *link);
-XBT_PUBLIC(double) surf_network_link_get_bandwidth(Link *link);
-XBT_PUBLIC(double) surf_network_link_get_latency(Link *link);
-XBT_PUBLIC(const char*) surf_network_link_get_name(Link *link);
-XBT_PUBLIC(void*) surf_network_link_data(Link *link);
-XBT_PUBLIC(void) surf_network_link_data_set(Link *link,void *data);
+XBT_PUBLIC(const char*) sg_link_name(Link *link);
+XBT_PUBLIC(Link *) sg_link_by_name(const char *name);
+XBT_PUBLIC(int) sg_link_is_shared(Link *link);
+XBT_PUBLIC(double) sg_link_bandwidth(Link *link);
+XBT_PUBLIC(double) sg_link_latency(Link *link);
+XBT_PUBLIC(void*) sg_link_data(Link *link);
+XBT_PUBLIC(void) sg_link_data_set(Link *link,void *data);
+XBT_PUBLIC(int) sg_link_count();
+XBT_PUBLIC(Link**) sg_link_list();
+XBT_PUBLIC(void) sg_link_exit();
 SG_END_DECL()
 
 #endif /* INCLUDE_SIMGRID_LINK_H_ */