Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
no need for a lib to store the netcards. A dict is easier
[simgrid.git] / src / include / mc / datatypes.h
1 /* Copyright (c) 2008-2015. The SimGrid Team.
2  * All rights reserved.                                                     */
3
4 /* This program is free software; you can redistribute it and/or modify it
5  * under the terms of the license (GNU LGPL) which comes with this package. */
6
7 #ifndef MC_DATATYPE_H
8 #define MC_DATATYPE_H
9
10 #include <src/internal_config.h>
11 #include <xbt/base.h>
12
13 #if HAVE_UCONTEXT_H
14 #include <ucontext.h>           /* context relative declarations */
15 #endif
16
17 SG_BEGIN_DECL()
18
19 struct s_stack_region{
20   void *address;
21 #if HAVE_UCONTEXT_H
22   ucontext_t* context;
23 #endif
24   size_t size;
25   int block;
26   int process_index;
27 };
28 typedef struct s_stack_region  s_stack_region_t;
29 typedef struct s_stack_region* stack_region_t;
30
31 SG_END_DECL()
32
33 #endif                          /* _MC_MC_H */