X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/45c3f1cfee86fb48c96d53f8267f99b6db6e3d7a..f2df13795e01302813a6aef10825ec7e922ce530:/src/simdag/private.h diff --git a/src/simdag/private.h b/src/simdag/private.h index 513dd1e2a6..ada782bbad 100644 --- a/src/simdag/private.h +++ b/src/simdag/private.h @@ -73,8 +73,12 @@ static inline SD_workstation_priv_t SD_workstation_priv(SD_workstation_t host){ typedef s_xbt_dictelm_t s_SD_storage_t; typedef struct SD_storage { void *data; /* user data */ + const char *host; } s_SD_storage_priv_t, *SD_storage_priv_t; +static inline SD_storage_priv_t SD_storage_priv(SD_storage_t storage){ + return xbt_lib_get_level(storage, SD_STORAGE_LEVEL); +} /* Task */ typedef struct SD_task {