git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@8038
48e7efb5-ca39-0410-a469-
dd3cf9ba447f
XBT_PUBLIC(void) MSG_function_register_default(xbt_main_func_t code);
XBT_PUBLIC(xbt_main_func_t) MSG_get_registered_function(const char *name);
XBT_PUBLIC(void) MSG_launch_application(const char *file);
XBT_PUBLIC(void) MSG_function_register_default(xbt_main_func_t code);
XBT_PUBLIC(xbt_main_func_t) MSG_get_registered_function(const char *name);
XBT_PUBLIC(void) MSG_launch_application(const char *file);
+/*Bypass the parser */
+XBT_PUBLIC(void) MSG_set_function(const char* host_id,const char *function_name,xbt_dynar_t arguments);
XBT_PUBLIC(double) MSG_get_clock(void);
XBT_PUBLIC(unsigned long int) MSG_get_sent_msg(void);
XBT_PUBLIC(double) MSG_get_clock(void);
XBT_PUBLIC(unsigned long int) MSG_get_sent_msg(void);
{
return SIMIX_get_registered_function(name);
}
{
return SIMIX_get_registered_function(name);
}
+
+/**
+ * \brief register functions bypassing the parser
+ */
+
+void MSG_set_function(const char* host_id,const char *function_name,xbt_dynar_t arguments)
+{
+ SIMIX_process_set_function(host_id,function_name,arguments,-1,-1);
+}