* Note that a router is created, easing the interconnexion with the rest of the world.
*/
-typedef struct {
- s_as_t generic_routing;
- void *backbone;
-} s_as_cluster_t, *as_cluster_t;
-
/* Business methods */
static void cluster_get_route_and_latency(AS_t as,
sg_routing_edge_t src, sg_routing_edge_t dst,
- route_t route, double *lat) {
+ sg_platf_route_cbarg_t route, double *lat) {
s_surf_parsing_link_up_down_t info;
XBT_DEBUG("cluster_get_route_and_latency from '%s'[%d] to '%s'[%d]",
}
static void model_cluster_finalize(AS_t as) {
- xbt_dynar_free(&(as->link_up_down_list));
model_none_finalize(as);
}
return (AS_t) result;
}
-
-void surf_routing_cluster_add_backbone(AS_t as, void* bb) {
- ((as_cluster_t)as)->backbone = bb;
-}