Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
code is now splint'able; add a MSG_task_get_name
authormquinson <mquinson@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Sun, 27 Feb 2005 22:50:42 +0000 (22:50 +0000)
committermquinson <mquinson@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Sun, 27 Feb 2005 22:50:42 +0000 (22:50 +0000)
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@1080 48e7efb5-ca39-0410-a469-dd3cf9ba447f

include/msg/datatypes.h
include/msg/msg.h

index b0c13e5..08bd974 100644 (file)
@@ -29,14 +29,14 @@ BEGIN_DECL()
 
     \see m_host_management
 */
 
     \see m_host_management
 */
-/*@{*/
+/* @{ */
 typedef struct simdata_host *simdata_host_t;
 typedef struct m_host {
   char *name;                  /**< host name if any */
   simdata_host_t simdata;      /**< simulator data */
   void *data;                  /**< user data */
 } s_m_host_t, *m_host_t;
 typedef struct simdata_host *simdata_host_t;
 typedef struct m_host {
   char *name;                  /**< host name if any */
   simdata_host_t simdata;      /**< simulator data */
   void *data;                  /**< user data */
 } s_m_host_t, *m_host_t;
-/*@}*/
+/* @} */
 /********************************* Task **************************************/
 
 /** @name Task datatype  
 /********************************* Task **************************************/
 
 /** @name Task datatype  
@@ -47,7 +47,7 @@ typedef struct m_host {
     data</em>.
     \see m_task_management
 */
     data</em>.
     \see m_task_management
 */
-/*@{*/
+/* @{ */
 typedef struct simdata_task *simdata_task_t;
 typedef struct m_task {
   char *name;                  /* host name if any */
 typedef struct simdata_task *simdata_task_t;
 typedef struct m_task {
   char *name;                  /* host name if any */
@@ -60,7 +60,7 @@ typedef struct m_task {
 */
 #define MSG_TASK_UNINITIALIZED NULL
 
 */
 #define MSG_TASK_UNINITIALIZED NULL
 
-/*@}*/
+/* @} */
 
 /******************************* Process *************************************/
 
 
 /******************************* Process *************************************/
 
@@ -71,7 +71,7 @@ typedef struct m_task {
     data</em>, executing in a <em>location</em>.
     \see m_process_management
 */
     data</em>, executing in a <em>location</em>.
     \see m_process_management
 */
-/*@{*/
+/* @{ */
 typedef struct simdata_process *simdata_process_t;
 typedef struct m_process {
   /** A name */
 typedef struct simdata_process *simdata_process_t;
 typedef struct m_process {
   /** A name */
@@ -87,7 +87,7 @@ typedef struct m_process {
     \see m_process_management
 */
 typedef int(*m_process_code_t)(int argc,char *argv[]) ;
     \see m_process_management
 */
 typedef int(*m_process_code_t)(int argc,char *argv[]) ;
-/*@}*/
+/* @} */
 
 /********************************** Channel **********************************/
 /** @name Channel datatype  
 
 /********************************** Channel **********************************/
 /** @name Channel datatype  
@@ -97,9 +97,9 @@ typedef int(*m_process_code_t)(int argc,char *argv[]) ;
     port number does).
     \see m_channel_management
 */
     port number does).
     \see m_channel_management
 */
-/*@{*/
+/* @{ */
 typedef int m_channel_t;
 typedef int m_channel_t;
-/*@}*/
+/* @} */
 
 /****************************** Error handling *******************************/
 /** \brief Error handling
 
 /****************************** Error handling *******************************/
 /** \brief Error handling
index 7354664..7936aeb 100644 (file)
@@ -9,6 +9,7 @@
 #define MSG_H
 
 #include "xbt/misc.h"
 #define MSG_H
 
 #include "xbt/misc.h"
+#include "xbt/sysdep.h"
 
 BEGIN_DECL()
 #include "msg/datatypes.h"
 
 BEGIN_DECL()
 #include "msg/datatypes.h"
@@ -80,6 +81,8 @@ m_task_t MSG_task_create(const char *name, double compute_duration,
                         double message_size, void *data);
 void *MSG_task_get_data(m_task_t task);
 m_process_t MSG_task_get_sender(m_task_t task);
                         double message_size, void *data);
 void *MSG_task_get_data(m_task_t task);
 m_process_t MSG_task_get_sender(m_task_t task);
+const char *MSG_task_get_name(m_task_t task);
+
 MSG_error_t MSG_task_destroy(m_task_t task);
 
 MSG_error_t MSG_task_get(m_task_t * task, m_channel_t channel);
 MSG_error_t MSG_task_destroy(m_task_t task);
 
 MSG_error_t MSG_task_get(m_task_t * task, m_channel_t channel);