Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
integrate properly the router creation in sg_platf module
[simgrid.git] / src / instr / instr_routing.c
index 9d7488c..183ae07 100644 (file)
@@ -266,10 +266,10 @@ static void instr_routing_parse_start_host (surf_parsing_host_arg_t host)
   }
 }
 
-static void instr_routing_parse_start_router ()
+static void instr_routing_parse_start_router (surf_parsing_router_arg_t router)
 {
   container_t father = *(container_t*)xbt_dynar_get_ptr(currentContainer, xbt_dynar_length(currentContainer)-1);
-  newContainer (struct_router->V_router_id, INSTR_ROUTER, father);
+  newContainer (router->V_router_id, INSTR_ROUTER, father);
 }
 
 static void instr_routing_parse_end_platform ()
@@ -293,7 +293,7 @@ void instr_routing_define_callbacks ()
   if (!TRACE_needs_platform()) return;
   surfxml_add_callback(STag_surfxml_link_cb_list, &instr_routing_parse_start_link);
   surf_parse_host_add_cb(instr_routing_parse_start_host);
-  surfxml_add_callback(STag_surfxml_router_cb_list, &instr_routing_parse_start_router);
+  surf_parse_router_add_cb(instr_routing_parse_start_router);
   surfxml_add_callback(ETag_surfxml_platform_cb_list, &instr_routing_parse_end_platform);
 }