X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/8d45d82d6394d07db6cdd4462c7172a53dc8185f..5b4107ca0e88a868548c268405b315e6a0037564:/src/surf/sg_platf.cpp diff --git a/src/surf/sg_platf.cpp b/src/surf/sg_platf.cpp index 5425bc1366..54229a8967 100644 --- a/src/surf/sg_platf.cpp +++ b/src/surf/sg_platf.cpp @@ -10,11 +10,12 @@ #include "xbt/dict.h" #include "xbt/RngStream.h" #include "simgrid/platf_interface.h" +#include "surf/surf_routing.h" -extern "C" { -XBT_LOG_EXTERNAL_DEFAULT_CATEGORY(surf_parse); -} +#include "cpu_interface.hpp" +#include "host_interface.hpp" +XBT_LOG_EXTERNAL_DEFAULT_CATEGORY(surf_parse); xbt_dynar_t sg_platf_host_cb_list = NULL; // of sg_platf_host_cb_t xbt_dynar_t sg_platf_host_link_cb_list = NULL; // of sg_platf_host_link_cb_t xbt_dynar_t sg_platf_link_cb_list = NULL; // of sg_platf_link_cb_t @@ -135,6 +136,10 @@ void sg_platf_exit(void) { } void sg_platf_new_host(sg_platf_host_cbarg_t h){ + routing_parse_init(h); + cpu_parse_init(h); + host_parse_init(h); + unsigned int iterator; sg_platf_host_cb_t fun; xbt_dynar_foreach(sg_platf_host_cb_list, iterator, fun) {