X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/153259d001d7e03ebc06ea7dc27803788a9cdb9d..d68f666f1af96f557cd6fe7503703358439ca188:/src/surf/callbacks.cpp diff --git a/src/surf/callbacks.cpp b/src/surf/callbacks.cpp index 22b2bc4144..78705cbfad 100644 --- a/src/surf/callbacks.cpp +++ b/src/surf/callbacks.cpp @@ -12,7 +12,7 @@ void surf_on_host_created(void (*callback)(sg_host_t)) { - simgrid::surf::hostCreatedCallbacks.connect([callback](simgrid::surf::Host* host) { + simgrid::surf::Host::creationCallbacks.connect([callback](simgrid::surf::Host* host) { const char* id = host->getName(); sg_host_t h = sg_host_by_name(id); xbt_assert(h != NULL, "Host not found for name %s", id);