X-Git-Url: http://bilbo.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/5c979a2a19b47295bc467cfda3c6541f60b6fe13..efd5719fdcd06a99d1fd644b81c7e9d578c08fc5:/src/surf/surf_interface.cpp diff --git a/src/surf/surf_interface.cpp b/src/surf/surf_interface.cpp index 39ca1f47a4..6a004ce853 100644 --- a/src/surf/surf_interface.cpp +++ b/src/surf/surf_interface.cpp @@ -38,11 +38,13 @@ xbt_dict_t watched_hosts_lib; namespace simgrid { namespace surf { -simgrid::surf::signal surfExitCallbacks; +simgrid::xbt::signal surfExitCallbacks; } } +#include // FIXME: this plugin should not be linked to the core + s_surf_model_description_t surf_plugin_description[] = { {"Energy", "Cpu energy consumption.", sg_energy_plugin_init}, {NULL, NULL, NULL} /* this array must be NULL terminated */ @@ -316,6 +318,7 @@ void surf_init(int *argc, char **argv) ROUTING_PROP_ASR_LEVEL = xbt_lib_add_level(as_router_lib,routing_asr_prop_free); XBT_DEBUG("Add SURF levels"); + simgrid::surf::Host::classInit(); SURF_STORAGE_LEVEL = xbt_lib_add_level(storage_lib,surf_storage_free); xbt_init(argc, argv);