From 38c3cacc59c898c2fc9238fe9cde6abccddef572 Mon Sep 17 00:00:00 2001 From: Marion Guthmuller Date: Thu, 3 May 2012 12:23:33 +0200 Subject: [PATCH] add SIMIX_host_get/set_data declaration in simix.h and include simix.h in msg_host.c (compilation warnings) --- include/simgrid/simix.h | 2 ++ src/msg/msg_host.c | 1 + 2 files changed, 3 insertions(+) diff --git a/include/simgrid/simix.h b/include/simgrid/simix.h index dec17ece07..b99a048420 100644 --- a/include/simgrid/simix.h +++ b/include/simgrid/simix.h @@ -240,6 +240,8 @@ XBT_PUBLIC(const char*) SIMIX_host_self_get_name(void); XBT_PUBLIC(const char*) SIMIX_host_get_name(smx_host_t host); /* FIXME: make private: only the name of SIMIX_host_self() should be public without request */ XBT_PUBLIC(void) SIMIX_host_self_set_data(void *data); XBT_PUBLIC(void*) SIMIX_host_self_get_data(void); +XBT_PUBLIC(void*) SIMIX_host_get_data(smx_host_t host); +XBT_PUBLIC(void) SIMIX_host_set_data(smx_host_t host, void *data); /********************************* Process ************************************/ XBT_PUBLIC(int) SIMIX_process_count(void); diff --git a/src/msg/msg_host.c b/src/msg/msg_host.c index a683d423bb..dfa729e1cf 100644 --- a/src/msg/msg_host.c +++ b/src/msg/msg_host.c @@ -8,6 +8,7 @@ #include "msg/msg_mailbox.h" #include "xbt/sysdep.h" #include "xbt/log.h" +#include "simgrid/simix.h" /** @addtogroup m_host_management * \htmlonly \endhtmlonly -- 2.20.1