X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/b75251bb3af3988bf96c86c3392c790ec081c353..02a13cd46eff988e8fad0711433787059f72b319:/src/surf/storage_private.h diff --git a/src/surf/storage_private.h b/src/surf/storage_private.h index 656957331d..30792454a0 100644 --- a/src/surf/storage_private.h +++ b/src/surf/storage_private.h @@ -1,9 +1,8 @@ -/* - * storage_private.h - * - * Created on: 2 mars 2012 - * Author: navarro - */ +/* Copyright (c) 2009, 2013. The SimGrid Team. + * All rights reserved. */ + +/* This program is free software; you can redistribute it and/or modify it + * under the terms of the license (GNU LGPL) which comes with this package. */ #ifndef STORAGE_PRIVATE_H_ #define STORAGE_PRIVATE_H_ @@ -41,15 +40,17 @@ typedef struct storage { xbt_dict_t content; /* char * -> s_surf_stat_t */ unsigned long size; unsigned long used_size; + xbt_dynar_t write_actions; } s_storage_t, *storage_t; typedef enum { - READ, WRITE, STAT, OPEN, CLOSE + READ=0, WRITE, STAT, OPEN, CLOSE, UNLINK, LS } e_surf_action_storage_type_t; typedef struct surf_action_storage { s_surf_action_lmm_t generic_lmm_action; e_surf_action_storage_type_t type; + void *storage; } s_surf_action_storage_t, *surf_action_storage_t; #endif /* STORAGE_PRIVATE_H_ */