Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Initial structure to implement gras using simix.
[simgrid.git] / src / gras_simix / Virtu / gras_simix_virtu_private.h
1 /* $Id$ */
2
3 /* virtu[alization] - speciafic parts for each OS and for SG                */
4
5 /* module's private interface.                                              */
6
7 /* Copyright (c) 2004 Martin Quinson. All rights reserved.                  */
8
9 /* This program is free software; you can redistribute it and/or modify it
10  * under the terms of the license (GNU LGPL) which comes with this package. */
11
12
13 #ifndef GRAS_VIRTU_PRIVATE_H
14 #define GRAS_VIRTU_PRIVATE_H
15
16 #include "xbt/dynar.h"
17 #include "gras_simix/Virtu/gras_simix_virtu_interface.h"
18 #include "simix/simix.h"
19
20 /** @brief Data for each process */
21 typedef struct {
22   /* globals of the process */
23   void *userdata;
24
25         long int pid;
26         long int ppid;
27
28   /* data specific to each process for each module. 
29    * Registered with gras_procdata_add(), retrieved with gras_libdata_get() 
30    * This is the old interface, and will disapear before 3.2
31    */
32   xbt_set_t libdata;
33    
34   /* data specific to each process for each module. 
35    * Registered with gras_module_add(), retrieved with gras_moddata_get() 
36    * This is the new interface
37    */
38   xbt_dynar_t moddata;
39 } gras_procdata_t;
40
41 gras_procdata_t *gras_procdata_get(void);
42 void *gras_libdata_by_name_from_procdata(const char *name, gras_procdata_t* pd);
43    
44    
45 #endif  /* GRAS_VIRTU_PRIVATE_H */