#include <simgrid/s4u/host.hpp>
#include "src/kernel/routing/NetPoint.hpp"
+#include "src/simix/smx_host_private.h"
#include "src/surf/HostImpl.hpp"
XBT_LOG_NEW_DEFAULT_SUBCATEGORY(sg_host, sd, "Logging specific to sg_hosts");
-extern std::unordered_map<std::string, simgrid::s4u::Host*>
- host_list; // FIXME: don't duplicate the content of s4u::Host this way
+// FIXME: The following duplicates the content of s4u::Host
+extern std::unordered_map<std::string, simgrid::s4u::Host*> host_list;
+
+extern "C" {
void sg_host_exit()
{
}
// ========== Simix layer =============
-#include "src/simix/smx_host_private.h"
smx_host_priv_t sg_host_simix(sg_host_t host){
return host->extension<simgrid::simix::Host>();
}
}
}
}
+
+} // extern "C"