X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/bdfe4f8674f98efbf2d67ad854ef83a1d5f855ed..20236570d4e582e47cb60882e9bae358dd430ee0:/src/simdag/private.h diff --git a/src/simdag/private.h b/src/simdag/private.h index 20cc654dd1..ada782bbad 100644 --- a/src/simdag/private.h +++ b/src/simdag/private.h @@ -1,4 +1,4 @@ -/* Copyright (c) 2006-2013. The SimGrid Team. +/* Copyright (c) 2006-2014. The SimGrid Team. * All rights reserved. */ /* This program is free software; you can redistribute it and/or modify it @@ -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 {