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);