Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
first draft of the action runner
[simgrid.git] / include / msg / msg.h
index 28bbc28..36a2336 100644 (file)
@@ -23,6 +23,7 @@ XBT_PUBLIC(int) MSG_get_channel_number(void);
 XBT_PUBLIC(MSG_error_t) MSG_main(void);
 XBT_PUBLIC(MSG_error_t) MSG_clean(void);
 XBT_PUBLIC(void) MSG_function_register(const char *name, xbt_main_func_t code);
+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_paje_output(const char *filename);
@@ -175,5 +176,12 @@ MSG_mailbox_get_task_ext(msg_mailbox_t mailbox, m_task_t* task, m_host_t host, d
 XBT_PUBLIC(MSG_error_t)
 MSG_mailbox_put_with_timeout(msg_mailbox_t mailbox, m_task_t task, double timeout);
 
+/************************** Action handling **********************************/
+typedef void (*msg_action_fun)(xbt_dynar_t args);
+XBT_PUBLIC(void) MSG_action_register(const char*action_name, msg_action_fun function);
+XBT_PUBLIC(void) MSG_action_unregister(const char*action_name);
+MSG_error_t MSG_action_trace_run(char*path);
+
+
 SG_END_DECL()
 #endif