X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/47d230829f5847d1aed4f7aeb70ecee7a38e590d..a2d16cd78c8d1a779948aa69d6e396028c788a5e:/teshsuite/simdag/basic-parsing-test/basic-parsing-test.c diff --git a/teshsuite/simdag/basic-parsing-test/basic-parsing-test.c b/teshsuite/simdag/basic-parsing-test/basic-parsing-test.c index b1088ef97b..2cde1fcddf 100644 --- a/teshsuite/simdag/basic-parsing-test/basic-parsing-test.c +++ b/teshsuite/simdag/basic-parsing-test/basic-parsing-test.c @@ -25,15 +25,15 @@ int main(int argc, char **argv) fprintf(stderr, "Route between %s and %s\n", name1, name2); xbt_dynar_t route = xbt_dynar_new(sizeof(SD_link_t), NULL); - sg_host_route(h1, h2, route); + sg_host_get_route(h1, h2, route); fprintf(stderr, "Route size %lu\n", xbt_dynar_length(route)); unsigned int i; SD_link_t link; xbt_dynar_foreach(route, i, link) fprintf(stderr, " Link %s: latency = %f, bandwidth = %f\n", sg_link_get_name(link), sg_link_get_latency(link), sg_link_get_bandwidth(link)); - fprintf(stderr, "Route latency = %f, route bandwidth = %f\n", - sg_host_route_latency(h1, h2), sg_host_route_bandwidth(h1, h2)); + fprintf(stderr, "Route latency = %f, route bandwidth = %f\n", sg_host_get_route_latency(h1, h2), + sg_host_get_route_bandwidth(h1, h2)); xbt_dynar_free_container(&route); } if (!strcmp(argv[2], "FULL_LINK")) { @@ -46,15 +46,15 @@ int main(int argc, char **argv) const char *name2 = sg_host_get_name(h2); fprintf(stderr, "Route between %s and %s\n", name1, name2); xbt_dynar_t route = xbt_dynar_new(sizeof(SD_link_t), NULL); - sg_host_route(h1, h2, route); + sg_host_get_route(h1, h2, route); fprintf(stderr, " Route size %lu\n", xbt_dynar_length(route)); unsigned int k; SD_link_t link; xbt_dynar_foreach(route, k, link) fprintf(stderr, " Link %s: latency = %f, bandwidth = %f\n", sg_link_get_name(link), sg_link_get_latency(link), sg_link_get_bandwidth(link)); - fprintf(stderr, " Route latency = %f, route bandwidth = %f\n", - sg_host_route_latency(h1, h2), sg_host_route_bandwidth(h1, h2)); + fprintf(stderr, " Route latency = %f, route bandwidth = %f\n", sg_host_get_route_latency(h1, h2), + sg_host_get_route_bandwidth(h1, h2)); xbt_dynar_free_container(&route); } }