Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
add a test trying to access the properties of a remote host -- it works
[simgrid.git] / src / include / mc / mc.h
1 /*      $Id: simix.h 5497 2008-05-26 12:19:15Z cristianrosa $    */
2
3 /* Copyright (c) 2008 Martin Quinson, Cristian Rosa.
4    All rights reserved.                                          */
5
6 /* This program is free software; you can redistribute it and/or modify it
7  * under the terms of the license (GNU LGPL) which comes with this package. */
8
9 #ifndef _MC_MC_H
10 #define _MC_MC_H
11
12 #include "xbt/misc.h"
13 #include "xbt/fifo.h"
14 #include "xbt/dict.h"
15 #include "xbt/function_types.h"
16 #include "mc/datatypes.h"
17 #include "simix/datatypes.h"
18 #include "gras_config.h" /* Definition of HAVE_MC */
19
20 #ifdef HAVE_MC
21 extern int _surf_do_model_check;
22 #define MC_IS_ENABLED _surf_do_model_check
23 #else
24 #define MC_IS_ENABLED 0
25 #endif
26
27 SG_BEGIN_DECL()
28
29 /********************************* Global *************************************/
30 XBT_PUBLIC(void) MC_init(void);
31 XBT_PUBLIC(void) MC_exit(void);
32 XBT_PUBLIC(void) MC_assert(int);
33 XBT_PUBLIC(void) MC_modelcheck(void);
34 XBT_PUBLIC(int) MC_random(int, int);
35 XBT_PUBLIC(void) MC_process_clock_add(smx_process_t, double);
36 XBT_PUBLIC(double) MC_process_clock_get(smx_process_t);
37
38 /********************************* Memory *************************************/
39 XBT_PUBLIC(void) MC_memory_init(void);  /* Initialize the memory subsystem */
40 XBT_PUBLIC(void) MC_memory_exit(void);
41
42 SG_END_DECL()
43
44 #endif                          /* _MC_MC_H */