1 /* virtu[alization] - speciafic parts for each OS and for SG */
3 /* module's private interface. */
5 /* Copyright (c) 2005, 2006, 2007, 2008, 2009, 2010. The SimGrid Team.
6 * All rights reserved. */
8 /* This program is free software; you can redistribute it and/or modify it
9 * under the terms of the license (GNU LGPL) which comes with this package. */
12 #ifndef GRAS_VIRTU_PRIVATE_H
13 #define GRAS_VIRTU_PRIVATE_H
15 #include "xbt/dynar.h"
16 #include "gras/Virtu/virtu_interface.h"
17 #include "simix/simix.h"
18 #include "gras/Msg/msg_private.h"
20 /** @brief Data for each process */
22 /* globals of the process */
25 /* data specific to each process for each module.
26 * Registered with gras_procdata_add(), retrieved with gras_libdata_get()
27 * This is the old interface, and will disapear before 3.2
31 /* data specific to each process for each module.
32 * Registered with gras_module_add(), retrieved with gras_moddata_get()
33 * This is the new interface
37 int pid; /* pid of process, only for SG */
38 int ppid; /* ppid of process, only for SG */
40 gras_msg_listener_t listener; /* the thread in charge of the incomming communication for this process */
43 gras_procdata_t *gras_procdata_get(void);
44 void *gras_libdata_by_name_from_procdata(const char *name,
45 gras_procdata_t * pd);
47 #endif /* GRAS_VIRTU_PRIVATE_H */