#define MSG_H
#include "xbt/misc.h"
-#include "xbt/sysdep.h"
-BEGIN_DECL()
#include "msg/datatypes.h"
+SG_BEGIN_DECL()
+
/************************** Global ******************************************/
void MSG_config(const char *name, ...);
int MSG_get_host_msgload(m_host_t host);
/* int MSG_get_msgload(void); This function lacks specification; discard it */
double MSG_get_host_speed(m_host_t h);
+int MSG_host_is_avail (m_host_t h);
void MSG_create_environment(const char *file);
MSG_error_t MSG_task_get(m_task_t * task, m_channel_t channel);
MSG_error_t MSG_task_get_with_time_out(m_task_t * task, m_channel_t channel,
double max_duration);
+MSG_error_t MSG_task_get_from_host(m_task_t * task, int channel,
+ m_host_t host);
MSG_error_t MSG_task_put(m_task_t task, m_host_t dest,
m_channel_t channel);
MSG_error_t MSG_task_put_bounded(m_task_t task,
m_host_t dest, m_channel_t channel,
double max_rate);
+MSG_error_t MSG_task_put_with_timeout(m_task_t task, m_host_t dest,
+ m_channel_t channel, double max_duration);
MSG_error_t MSG_task_execute(m_task_t task);
MSG_error_t MSG_parallel_task_execute(m_task_t task);
void MSG_task_set_priority(m_task_t task, double priority);
int MSG_task_Iprobe(m_channel_t channel);
int MSG_task_probe_from(m_channel_t channel);
+int MSG_task_probe_from_host(int channel, m_host_t host);
MSG_error_t MSG_channel_select_from(m_channel_t channel, double max_duration,
int *PID);
MSG_error_t MSG_process_sleep(double nb_sec);
double MSG_task_get_remaining_computation(m_task_t task);
double MSG_task_get_data_size(m_task_t task);
-END_DECL()
+SG_END_DECL()
#endif