1 #include "deployment.h"
6 #include <xbt/sysdep.h>
10 void MY_launch_application()
12 xbt_assert(hostdata::size() >= 2);
14 const char* func = "simulation_main";
15 xbt_dynar_t p0_args = xbt_dynar_new(sizeof(const char*), NULL);
16 xbt_dynar_t p1_args = xbt_dynar_new(sizeof(const char*), NULL);
18 xbt_dynar_push_as(p0_args, const char*, "33");
19 xbt_dynar_push_as(p0_args, const char*, hostdata::at(1).get_name());
21 xbt_dynar_push_as(p1_args, const char*, "42");
22 xbt_dynar_push_as(p1_args, const char*, hostdata::at(0).get_name());
24 MSG_set_function(hostdata::at(0).get_name(), func, p0_args);
25 MSG_set_function(hostdata::at(1).get_name(), func, p1_args);
27 xbt_dynar_free(&p0_args);
28 xbt_dynar_free(&p1_args);