static long int PID = 1;
-void gras_agent_spawn(const char *name, void *data,
+void gras_agent_spawn(const char *name,
xbt_main_func_t code, int argc, char *argv[],
xbt_dict_t properties)
{
- SIMIX_process_create(name, code,
- data, gras_os_myname(), argc, argv, properties);
+ SIMIX_process_create(name, code, NULL,
+ gras_os_myname(), argc, argv, properties);
}
/* **************************************************************************
/** @brief retrieve the value of a given process property (or NULL if not defined) */
const char *gras_process_property_value(const char *name)
{
- return
- xbt_dict_get_or_null(SIMIX_process_get_properties
- (SIMIX_process_self()), name);
+ return xbt_dict_get_or_null(
+ SIMIX_process_get_properties(SIMIX_process_self()),
+ name);
}
/** @brief retrieve the process properties dictionnary