X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/d62761dc9056a949309e78420f0d077aeb79efaa..bd043f62d4d7bf22adb68d5193ec1bb2aaae3c7b:/include/msg/msg.h diff --git a/include/msg/msg.h b/include/msg/msg.h index 18c749fc5f..11faa2bd3f 100644 --- a/include/msg/msg.h +++ b/include/msg/msg.h @@ -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); +/*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); @@ -47,6 +49,7 @@ XBT_PUBLIC(const char *) MSG_host_get_property_value(m_host_t host, const char *name); XBT_PUBLIC(void) MSG_create_environment(const char *file); +XBT_PUBLIC(void) MSG_load_platform_script(const char *script_file); XBT_PUBLIC(m_host_t) MSG_get_host_by_name(const char *name); XBT_PUBLIC(int) MSG_get_host_number(void); @@ -112,6 +115,7 @@ XBT_PUBLIC(m_host_t) MSG_task_get_source(m_task_t task); XBT_PUBLIC(const char *) MSG_task_get_name(m_task_t task); XBT_PUBLIC(MSG_error_t) MSG_task_cancel(m_task_t task); XBT_PUBLIC(MSG_error_t) MSG_task_destroy(m_task_t task); +XBT_PUBLIC(void) MSG_task_refcount_dec(m_task_t task); XBT_PUBLIC(MSG_error_t) MSG_task_get(m_task_t * task, m_channel_t channel); XBT_PUBLIC(MSG_error_t) MSG_task_get_with_timeout(m_task_t * task, @@ -171,7 +175,8 @@ XBT_PUBLIC(int) MSG_comm_test(msg_comm_t comm); XBT_PUBLIC(void) MSG_comm_destroy(msg_comm_t comm); XBT_PUBLIC(MSG_error_t) MSG_comm_wait(msg_comm_t comm,double timeout); XBT_PUBLIC(void) MSG_comm_waitall(msg_comm_t *comm,int nb_elem, double timeout); - +XBT_PUBLIC(int) MSG_comm_waitany(xbt_dynar_t comms); +XBT_PUBLIC(m_task_t) MSG_comm_get_task(msg_comm_t comm); XBT_PUBLIC(int) MSG_task_listen(const char *alias);