Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
[route parsing] greatly streamline the generic_new_extended_route function
[simgrid.git] / src / surf / surf_routing_private.h
index 7a1e3dc..5b357c8 100644 (file)
@@ -40,17 +40,17 @@ void generic_parse_bypassroute(AS_t rc, const char *src, const char *dst,
 xbt_dynar_t generic_get_onelink_routes(AS_t rc);
 route_t generic_get_bypassroute(AS_t rc,
     network_element_t src,
-    network_element_t dst);
+    network_element_t dst,
+    double *lat);
 
 /* ************************************************************************** */
 /* ****************** GENERIC AUX FUNCTIONS (declarations) ****************** */
 
-route_t
-generic_new_extended_route(e_surf_routing_hierarchy_t hierarchy,
-                           void *data, int order);
-route_t
-generic_new_route(e_surf_routing_hierarchy_t hierarchy,
-                           void *data, int order);
+/* change a route containing link names into a route containing link entities.
+ * If change_order is true, the links are put in reverse order in the
+ * produced route */
+route_t generic_new_extended_route(e_surf_routing_hierarchy_t hierarchy,
+                                   route_t data, int preserve_order);
 AS_t
 generic_autonomous_system_exist(AS_t rc, char *element);
 AS_t