Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
cosmetics
[simgrid.git] / src / gras / Virtu / virtu_interface.h
1 /* $Id$ */
2
3 /* virtu[alization] - speciafic parts for each OS and for SG                */
4
5 /* module's public interface  exported within GRAS, but not to end user.    */
6
7 /* Authors: Martin Quinson                                                  */
8 /* Copyright (C) 2004 Martin Quinson.                                       */
9
10 /* This program is free software; you can redistribute it and/or modify it
11    under the terms of the license (GNU LGPL) which comes with this package. */
12
13 #ifndef GRAS_VIRTU_INTERFACE_H
14 #define GRAS_VIRTU_INTERFACE_H
15
16 /**
17  * gras_process_data_t:
18  *
19  * Data for each process 
20  */
21 typedef struct {
22   /* queue of messages which where received but not wanted in msgWait, and therefore
23      temporarly queued until the next msgHandle */
24   gras_dynar_t *msg_queue; /* elm type: gras_msg_t */
25
26   /* registered callbacks for each message */
27   gras_dynar_t *cbl_list; /* elm type: gras_cblist_t */
28    
29
30   /* The channel we are listening to in SG for formated messages */
31   int chan;
32   /* The channel we are listening to in SG for raw send/recv */
33   int rawChan; 
34
35   /* globals of the process */
36   void *userdata;               
37 } gras_process_data_t;
38
39
40 #endif  /* GRAS_VIRTU_INTERFACE_H */