#include <lualib.h>
#endif
+SG_BEGIN_DECL()
+
/********************************* MSG **************************************/
/** \ingroup msg_simulation
xbt_dynar_t MSG_environment_as_get_hosts(msg_netzone_t netzone)
{
- return netzone->hosts();
+ xbt_dynar_t res = xbt_dynar_new(sizeof(sg_host_t), nullptr);
+
+ for (auto host : *netzone->hosts()) {
+ xbt_dynar_push(res, &host);
+ }
+
+ return res;
}
+
+SG_END_DECL()