+static void* storage_create_resource(const char* id, const char* type,
+ const char* content, xbt_dict_t storage_properties)
+{
+ 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;
+}
+
+static void storage_finalize(void)
+{
+ surf_model_exit(surf_storage_model);
+ surf_storage_model = NULL;
+}
+
+static void storage_update_actions_state(double now, double delta)
+{
+
+}
+
+static double storage_share_resources(double NOW)
+{
+ double min_action_duration = -1;
+ return min_action_duration;
+}
+
+static int storage_resource_used(void *resource_id)
+{
+ THROW_UNIMPLEMENTED;
+ return 0;
+}
+
+static void storage_resources_state(void *id, tmgr_trace_event_t event_type,
+ double value, double time)
+{
+ THROW_UNIMPLEMENTED;
+}
+
+static int storage_action_unref(surf_action_t action)
+{
+ THROW_UNIMPLEMENTED;
+ return 0;
+}
+
+static void storage_action_cancel(surf_action_t action)
+{
+ THROW_UNIMPLEMENTED;
+}
+
+static void storage_action_state_set(surf_action_t action, e_surf_action_state_t state)
+{
+ THROW_UNIMPLEMENTED;
+}
+
+static void storage_action_suspend(surf_action_t action)
+{
+ THROW_UNIMPLEMENTED;
+}
+
+static void storage_action_resume(surf_action_t action)
+{
+ THROW_UNIMPLEMENTED;
+}
+
+static int storage_action_is_suspended(surf_action_t action)
+{
+ THROW_UNIMPLEMENTED;
+ return 0;
+}
+
+static void storage_action_set_max_duration(surf_action_t action, double duration)
+{
+ THROW_UNIMPLEMENTED;
+}
+
+static void storage_action_set_priority(surf_action_t action, double priority)
+{
+ THROW_UNIMPLEMENTED;
+}
+
+static void parse_storage_init(sg_platf_storage_cbarg_t storage)
+{
+ XBT_INFO("parse_storage_init");
+}
+
+static void parse_mstorage_init(sg_platf_mstorage_cbarg_t mstorage)
+{
+ XBT_INFO("parse_mstorage_init");
+}
+
+static void parse_storage_type_init(sg_platf_storage_type_cbarg_t storagetype_)
+{
+ XBT_INFO("parse_storage_type_init");
+}
+
+static void parse_mount_init(sg_platf_mount_cbarg_t mount)
+{
+ XBT_INFO("parse_mount_init");
+}
+
+static void storage_define_callbacks()
+{
+ sg_platf_storage_add_cb(parse_storage_init);
+ sg_platf_mstorage_add_cb(parse_mstorage_init);
+ sg_platf_storage_type_add_cb(parse_storage_type_init);
+ sg_platf_mount_add_cb(parse_mount_init);
+}
+