- StoragePtr storage = new StorageN11(this, id, properties, p_maxminSystem,
- Bread, Bwrite, Bconnection,
- type_id, (char *)content_name, xbt_strdup(content_type), storage_type->size, (char *) attach);
-
- xbt_lib_set(storage_lib, id, SURF_STORAGE_LEVEL, static_cast<ResourcePtr>(storage));
+ Storage *storage = new StorageN11(this, id, properties, p_maxminSystem,
+ Bread, Bwrite, Bconnection, type_id, (char *)content_name,
+ xbt_strdup(content_type), storage_type->size, (char *) attach);
+ surf_callback_emit(storageCreatedCallbacks, storage);
+ xbt_lib_set(storage_lib, id, SURF_STORAGE_LEVEL, storage);