Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
a directory for all builds
[simgrid.git] / src / gras / Virtu / virtu_private.h
index 3787436..26079af 100644 (file)
@@ -13,6 +13,7 @@
 #ifndef GRAS_VIRTU_PRIVATE_H
 #define GRAS_VIRTU_PRIVATE_H
 
+#include "xbt/dynar.h"
 #include "gras/Virtu/virtu_interface.h"
 
 /** @brief Data for each process */
@@ -21,12 +22,20 @@ 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;
 } gras_procdata_t;
 
-gras_procdata_t *gras_procdata_get(void);
-void *gras_libdata_by_name_from_procdata(const char *name, gras_procdata_t* pd);
+XBT_PUBLIC gras_procdata_t *gras_procdata_get(void);
+XBT_PUBLIC void *gras_libdata_by_name_from_procdata(const char *name, gras_procdata_t* pd);
    
    
 #endif  /* GRAS_VIRTU_PRIVATE_H */