X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/514236282cc9b3e2eb76a2f41fdbbd6103b4c862..0bac7d0f735ac8ba47a46e1db4f6d7a7164fe0f2:/src/surf/callbacks.cpp diff --git a/src/surf/callbacks.cpp b/src/surf/callbacks.cpp index 4d1d04148e..22b2bc4144 100644 --- a/src/surf/callbacks.cpp +++ b/src/surf/callbacks.cpp @@ -10,9 +10,9 @@ #include "src/surf/surf_interface.hpp" #include "src/surf/host_interface.hpp" -void surf_host_created_callback(void (*callback)(sg_host_t)) +void surf_on_host_created(void (*callback)(sg_host_t)) { - hostCreatedCallbacks.connect([callback](Host* host) { + simgrid::surf::hostCreatedCallbacks.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); @@ -20,9 +20,9 @@ void surf_host_created_callback(void (*callback)(sg_host_t)) }); } -void surf_storage_created_callback(void (*callback)(sg_storage_t)) +void surf_on_storage_created(void (*callback)(sg_storage_t)) { - storageCreatedCallbacks.connect([callback](Storage* storage) { + simgrid::surf::storageCreatedCallbacks.connect([callback](simgrid::surf::Storage* storage) { const char* id = storage->getName(); // TODO, create sg_storage_by_name sg_storage_t s = xbt_lib_get_elm_or_null(storage_lib, id);