-void SIMIX_pre_file_read(smx_simcall_t simcall, size_t size, smx_file_t fd);
-void SIMIX_pre_file_write(smx_simcall_t simcall, size_t size, smx_file_t fd);
-void SIMIX_pre_file_open(smx_simcall_t simcall, const char* mount,
- const char* path);
-void SIMIX_pre_file_close(smx_simcall_t simcall, smx_file_t fd);
+/** @brief Storage datatype */
+typedef struct s_smx_storage_priv {
+ void *data; /**< @brief user data */
+} s_smx_storage_priv_t;
+
+
+static inline smx_storage_priv_t SIMIX_storage_priv(smx_storage_t storage){
+ return (smx_storage_priv_t) xbt_lib_get_level(storage, SIMIX_STORAGE_LEVEL);
+}
+
+smx_storage_t SIMIX_storage_create(const char *name, void *storage, void *data);
+void SIMIX_storage_destroy(void *s);
+void SIMIX_pre_file_read(smx_simcall_t simcall, smx_file_t fd, sg_size_t size, smx_host_t host);
+void SIMIX_pre_file_write(smx_simcall_t simcall,smx_file_t fd, sg_size_t size, smx_host_t host);
+void SIMIX_pre_file_open(smx_simcall_t simcall, const char* fullpath, smx_host_t host);
+void SIMIX_pre_file_close(smx_simcall_t simcall, smx_file_t fd, smx_host_t host);