Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Integrate Bruno's work on SIMIX onto main stream. Tests are broken, but it looks...
[simgrid.git] / src / gras / Virtu / virtu_private.h
index 3787436..275e2ec 100644 (file)
@@ -13,7 +13,9 @@
 #ifndef GRAS_VIRTU_PRIVATE_H
 #define GRAS_VIRTU_PRIVATE_H
 
+#include "xbt/dynar.h"
 #include "gras/Virtu/virtu_interface.h"
+#include "simix/simix.h"
 
 /** @brief Data for each process */
 typedef struct {
@@ -21,8 +23,19 @@ typedef struct {
   void *userdata;
 
   /* data specific to each process for each module. 
-     Registered with gras_procdata_add(), retrieved with gras_libdata_get() */
+   * Registered with gras_procdata_add(), retrieved with gras_libdata_get() 
+   * This is the old interface, and will disapear before 3.2
+   */
   xbt_set_t libdata;
+   
+  /* data specific to each process for each module. 
+   * Registered with gras_module_add(), retrieved with gras_moddata_get() 
+   * This is the new interface
+   */
+  xbt_dynar_t moddata;
+       
+       long int pid; /* pid of process, only for SG */
+       long int ppid; /* ppid of process, only for SG */
 } gras_procdata_t;
 
 gras_procdata_t *gras_procdata_get(void);