X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/293f64574aef0e51a16ed3ba8187c650765dfd99..c17728963bd9e2b81e4764aa1d1b90a19e5de741:/src/surf/surf_routing_private.h diff --git a/src/surf/surf_routing_private.h b/src/surf/surf_routing_private.h index 6f2fd75cba..5b357c82c1 100644 --- a/src/surf/surf_routing_private.h +++ b/src/surf/surf_routing_private.h @@ -29,8 +29,8 @@ void model_none_finalize(AS_t as); AS_t model_generic_create_sized(size_t childsize); void model_generic_finalize(AS_t as); -void generic_parse_PU(AS_t rc, const char *name); -void generic_parse_AS(AS_t rc, const char *name); +int generic_parse_PU(AS_t rc, network_element_t elm); +int generic_parse_AS(AS_t rc, network_element_t elm); void generic_parse_bypassroute(AS_t rc, const char *src, const char *dst, route_t e_route); @@ -39,24 +39,24 @@ 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, - const char *src, - const char *dst); + network_element_t src, + 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 generic_processing_units_exist(AS_t rc, char *element); -void generic_src_dst_check(AS_t rc, const char *src, - const char *dst); +void generic_src_dst_check(AS_t rc, network_element_t src, + network_element_t dst); /* ************************************************************************** */ @@ -75,7 +75,6 @@ AS_t model_rulebased_create(void); /* create structures for rulebased routi AS_t model_cluster_create(void); /* create structures for cluster routing model */ /* Pass info from the cluster parser to the cluster routing */ -void surf_routing_cluster_add_link(const char* host_id,surf_parsing_link_up_down_t info); void surf_routing_cluster_add_backbone(AS_t as, void* bb); /* ************************************************** */