X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/7feae70bb1a3019393031dcf0bb64daeaa19f4ef..c638214a29abfed2c93678be136ad7d2dcd1940e:/src/simdag/private.h diff --git a/src/simdag/private.h b/src/simdag/private.h index 67e9e7beab..0f1575d92d 100644 --- a/src/simdag/private.h +++ b/src/simdag/private.h @@ -16,6 +16,8 @@ #include "xbt/mallocator.h" #include +SG_BEGIN_DECL() + /* Global variables */ typedef struct SD_global { @@ -64,10 +66,6 @@ typedef struct SD_workstation { SD_task_t current_task; /* only used in sequential mode */ } s_SD_workstation_priv_t, *SD_workstation_priv_t; -static inline SD_workstation_priv_t SD_workstation_priv(SD_workstation_t host){ - return xbt_lib_get_level(host, SD_HOST_LEVEL); -} - /* Storage */ typedef s_xbt_dictelm_t s_SD_storage_t; typedef struct SD_storage { @@ -76,7 +74,7 @@ typedef struct SD_storage { } 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); + return (SD_storage_priv_t)xbt_lib_get_level(storage, SD_STORAGE_LEVEL); } /* Task */ @@ -219,5 +217,6 @@ void TRACE_sd_task_execute_start(SD_task_t task); void TRACE_sd_task_execute_end(SD_task_t task); void TRACE_sd_task_destroy(SD_task_t task); +SG_END_DECL() #endif