X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/85b2df79ec3ac492583a49e94770808002cda86c..dcf36c9ca442878baebacb73b35d370ec10eaa84:/teshsuite/simdag/platforms/is_router_test.c diff --git a/teshsuite/simdag/platforms/is_router_test.c b/teshsuite/simdag/platforms/is_router_test.c index 8a7a50857d..d9dcd421ae 100644 --- a/teshsuite/simdag/platforms/is_router_test.c +++ b/teshsuite/simdag/platforms/is_router_test.c @@ -16,21 +16,27 @@ int main(int argc, char **argv) /* initialisation of SD */ int size; SD_init(&argc, argv); - xbt_dict_cursor_t cursor = NULL; + xbt_lib_cursor_t cursor = NULL; char *key, *data; /* creation of the environment */ SD_create_environment(argv[1]); - size = xbt_dict_size(global_routing->where_network_elements); + size = xbt_lib_length(host_lib) + xbt_lib_length(as_router_lib); printf("Workstation number: %d, link number: %d, elmts number: %d\n", SD_workstation_get_number(), SD_link_get_number(), size); - xbt_dict_foreach(global_routing->where_network_elements, cursor, key, data) { + xbt_lib_foreach(host_lib, cursor, key, data) { printf(" - Seen: \"%s\" is type : %d\n", key, - (int) global_routing->get_network_element_type(key)); + (int) routing_get_network_element_type(key)); } + + xbt_lib_foreach(as_router_lib, cursor, key, data) { + printf(" - Seen: \"%s\" is type : %d\n", key, + (int) routing_get_network_element_type(key)); + } + SD_exit(); return 0; }