/*\r
* Initialization of the mailbox module.\r
*/\r
-void\r
+XBT_PUBLIC(void\r
MSG_mailbox_mod_init(void);\r
\r
/*\r
* Terminaison of the mailbox module.\r
*/\r
-void\r
+XBT_PUBLIC(void\r
MSG_mailbox_mod_exit(void);\r
\r
/*! \brief MSG_get_mailboxes - get the dictionary containing all the mailboxes.\r
* \r
* \return The dictionary containing all the mailboxes of the simulation.\r
*/\r
-xbt_dict_t\r
+XBT_PUBLIC(xbt_dict_t\r
MSG_get_mailboxes(void);\r
\r
/*! \brief MSG_mailbox_new - create a new mailbox.\r
* \r
* \return The newly created mailbox.\r
*/\r
-msg_mailbox_t\r
+XBT_PUBLIC(msg_mailbox_t\r
MSG_mailbox_new(const char *alias);\r
\r
/* \brief MSG_mailbox_destroy - destroy a mailbox.\r
*\r
* \see MSG_mailbox_free.\r
*/\r
-void\r
+XBT_PUBLIC(void)\r
MSG_mailbox_destroy(msg_mailbox_t* mailbox);\r
\r
/* \brief MSG_mailbox_free - release a mailbox from the memory.\r
*\r
* \see MSG_mailbox_destroy.\r
*/\r
-void\r
+XBT_PUBLIC(void)\r
MSG_mailbox_free(void* mailbox);\r
\r
/* \brief MSG_mailbox_get_by_alias - get a mailbox from its alias.\r
* \return The mailbox associated with the alias specified as parameter\r
* or a new mailbox if the key does not match.\r
*/\r
-msg_mailbox_t\r
+XBT_PUBLIC(msg_mailbox_t)\r
MSG_mailbox_get_by_alias(const char* alias);\r
\r
/*! \brief MSG_mailbox_get_alias - get the alias associated with the mailbox.\r
*\r
* \return The alias of the mailbox specified by the parameter mailbox.\r
*/\r
-const char*\r
+XBT_PUBLIC(const char*)\r
MSG_mailbox_get_alias(msg_mailbox_t mailbox);\r
\r
/*! \brief MSG_mailbox_get_cond - get the simix condition of a mailbox.\r
*\r
* \return The simix condition of the mailbox specified by the parameter mailbox.\r
*/\r
-smx_cond_t\r
+XBT_PUBLIC(smx_cond_t)\r
MSG_mailbox_get_cond(msg_mailbox_t mailbox);\r
\r
/*! \brief MSG_mailbox_set_cond - set the simix condition of a mailbox.\r
* \param cond The new simix condition of the mailbox.\r
*\r
*/\r
-void\r
+XBT_PUBLIC(void)\r
MSG_mailbox_set_cond(msg_mailbox_t mailbox, smx_cond_t cond);\r
\r
/*! \brief MSG_mailbox_get_hostname - get the name of the host owned a mailbox.\r
*\r
* \return The name of the host owned the mailbox specified by the parameter mailbox.\r
*/\r
-const char*\r
+XBT_PUBLIC(const char*)\r
MSG_mailbox_get_hostname(msg_mailbox_t mailbox);\r
\r
/*! \brief MSG_mailbox_set_hostname - set the name of the host owned a mailbox.\r
* \param hostname The name of the owner of the mailbox.\r
*\r
*/\r
-void\r
+XBT_PUBLIC(void)\r
MSG_mailbox_set_hostname(msg_mailbox_t mailbox, const char* hostname);\r
\r
\r
* \return The function returns 1 if the mailbox is empty. Otherwise the function\r
* returns 0.\r
*/\r
-int\r
+XBT_PUBLIC(int)\r
MSG_mailbox_is_empty(msg_mailbox_t mailbox);\r
\r
/*! \brief MSG_mailbox_put - put a task in a mailbox.\r
* \param mailbox The mailbox where put the task.\r
* \param task The task to put in the mailbox.\r
*/\r
-void\r
+XBT_PUBLIC(void)\r
MSG_mailbox_put(msg_mailbox_t mailbox, m_task_t task);\r
\r
/*! \brief MSG_mailbox_remove - remove a task from a mailbox.\r
* \param mailbox The mailbox concerned by this operation.\r
* \param task The task to remove from the mailbox.\r
*/\r
-void\r
+XBT_PUBLIC(void)\r
MSG_mailbox_remove(msg_mailbox_t mailbox, m_task_t task);\r
\r
/*! \brief MSG_mailbox_get_head - get the task at the head of a mailbox.\r
*\r
* \return The task at the head of the mailbox.\r
*/\r
-m_task_t\r
+XBT_PUBLIC(m_task_t)\r
MSG_mailbox_get_head(msg_mailbox_t mailbox);\r
\r
/*! \brief MSG_mailbox_pop_head - get the task at the head of a mailbox\r
*\r
* \return The task at the head of the mailbox.\r
*/\r
-m_task_t\r
+XBT_PUBLIC(m_task_t)\r
MSG_mailbox_pop_head(msg_mailbox_t mailbox);\r
\r
/*! \brief MSG_mailbox_get_first_host_task - get the first msg task\r
* parameter mailbox and sended by a process located\r
* on the host specified by the parameter host.\r
*/\r
-m_task_t\r
+XBT_PUBLIC(m_task_t)\r
MSG_mailbox_get_first_host_task(msg_mailbox_t mailbox, m_host_t host);\r
\r
/*! \brief MSG_mailbox_get_count_host_tasks - get the number of msg tasks\r
* parameter mailbox and sended by all the processes located\r
* on the host specified by the parameter host.\r
*/\r
-int\r
+XBT_PUBLIC(int)\r
MSG_mailbox_get_count_host_tasks(msg_mailbox_t mailbox, m_host_t host);\r
\r
\r