Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
add MSG_set_function function, used to bypass the deployment file
authorcoldpeace <coldpeace@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Wed, 21 Jul 2010 09:27:33 +0000 (09:27 +0000)
committercoldpeace <coldpeace@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Wed, 21 Jul 2010 09:27:33 +0000 (09:27 +0000)
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@8038 48e7efb5-ca39-0410-a469-dd3cf9ba447f

include/msg/msg.h
src/msg/deployment.c

index 18c749f..47272b3 100644 (file)
@@ -26,6 +26,8 @@ XBT_PUBLIC(void) MSG_function_register(const char *name,
 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);
index 9d662f2..01b9c9e 100644 (file)
@@ -71,3 +71,12 @@ xbt_main_func_t MSG_get_registered_function(const char *name)
 {
   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);
+}