Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Document properly the emulation module
[simgrid.git] / include / gras / core.h
1 /* $Id$                     */
2
3 /* gras/core.h - Unsorted part of the GRAS public interface                 */
4
5 /* Copyright (c) 2003, 2004 Martin Quinson. All rights reserved.            */
6
7 /* This program is free software; you can redistribute it and/or modify it
8  * under the terms of the license (GNU LGPL) which comes with this package. */
9
10 #ifndef GRAS_CORE_H
11 #define GRAS_CORE_H
12
13 #include <stddef.h>    /* offsetof() */
14 #include <sys/types.h>  /* size_t */
15 #include <stdarg.h>
16 #include "xbt/misc.h"
17
18
19 /* /\*! C++ users need love *\/ */
20 /* #ifndef BEGIN_DECL */
21 /* # ifdef __cplusplus */
22 /* #  define BEGIN_DECL() extern "C" { */
23 /* # else */
24 /* #  define BEGIN_DECL()  */
25 /* # endif */
26 /* #endif */
27
28 /* /\*! C++ users need love *\/ */
29 /* #ifndef END_DECL */
30 /* # ifdef __cplusplus */
31 /* #  define END_DECL() } */
32 /* # else */
33 /* #  define END_DECL()  */
34 /* # endif */
35 /* #endif */
36 /* /\* End of cruft for C++ *\/ */
37
38 BEGIN_DECL()
39
40 /* **************************************************************************
41  * Garbage collection support
42  * **************************************************************************/
43 typedef enum { free_after_use, free_never } e_xbt_free_directive_t;
44
45 void gras_init(int *argc,char **argv, const char *defaultlog);
46 void gras_exit(void);
47
48 END_DECL()
49
50 #endif /* GRAS_CORE_H */
51