- xbt_assert(!surf_storage_resource_by_name(id),
- "Storage '%s' declared several times in the platform file",
- id);
- XBT_DEBUG("Storage_create_resource '%s' at level SURF_STORAGE_LEVEL",id);
- surf_storage_t storage = NULL;
- storage = (surf_storage_t) surf_resource_new(sizeof(s_surf_storage_t),
- surf_storage_model, id, storage_properties);
- storage->type = type;
- storage->content = content;
- xbt_lib_set(storage_lib, id, SURF_STORAGE_LEVEL, storage);
-
- return storage;