X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/b3b356352e87ae00a20f737c48e19b0c8413455a..0d7a222297c1d39c43cdb2f09ea1d5ddd03c7aa0:/src/surf/surf_routing_dijkstra.cpp diff --git a/src/surf/surf_routing_dijkstra.cpp b/src/surf/surf_routing_dijkstra.cpp index c21eb369a3..28ed73238b 100644 --- a/src/surf/surf_routing_dijkstra.cpp +++ b/src/surf/surf_routing_dijkstra.cpp @@ -7,9 +7,6 @@ #include "surf_routing_dijkstra.hpp" #include "network_interface.hpp" -/* Global vars */ -extern routing_platf_t routing_platf; - XBT_LOG_NEW_DEFAULT_SUBCATEGORY(surf_route_dijkstra, surf, "Routing part of surf -- dijkstra routing logic"); /* Free functions */ @@ -39,16 +36,17 @@ static void graph_edge_data_free(void *e) // FIXME: useless code duplication } AS_t model_dijkstra_create(void){ - return new AsDijkstra(0); + return new simgrid::surf::AsDijkstra(0); } AS_t model_dijkstracache_create(void){ - return new AsDijkstra(1); + return new simgrid::surf::AsDijkstra(1); } void model_dijkstra_both_end(AS_t as) { - AsDijkstra *THIS_AS = static_cast(as); + simgrid::surf::AsDijkstra *THIS_AS + = static_cast(as); xbt_node_t node = NULL; unsigned int cursor2; xbt_dynar_t nodes = NULL; @@ -77,6 +75,9 @@ void model_dijkstra_both_end(AS_t as) /* Utility functions */ +namespace simgrid { +namespace surf { + xbt_node_t AsDijkstra::routeGraphNewNode(int id, int graph_id) { xbt_node_t node = NULL; @@ -531,3 +532,6 @@ void AsDijkstra::parseRoute(sg_platf_route_cbarg_t route) } xbt_dynar_free(&route->link_list); } + +} +}