Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
SURF: Unify the types of models in a uniq s_surf_model_t (using an union) +reindent...
[simgrid.git] / src / include / xbt / context.h
1 #ifndef XBT_CONTEXT_H\r
2 #define XBT_CONTEXT_H\r
3 \r
4 #include "xbt/misc.h"                           /* XBT_PUBLIC(), SG_BEGIN_DECL() and SG_END_DECL() definitions  */\r
5 #include "xbt/function_types.h"         /* function pointer types declarations                                                  */      \r
6 #include "xbt_modinter.h"                       /* xbt_context_init() and xbt_context_exit() declarations               */\r
7      \rSG_BEGIN_DECL() \r \rtypedef struct s_xbt_context *xbt_context_t;
8 \r\r\rXBT_PUBLIC(xbt_context_t) \r
9 xbt_context_new(const char *name, xbt_main_func_t code,
10                 \rvoid_f_pvoid_t startup_func, void *startup_arg,
11                 \rvoid_f_pvoid_t cleanup_func, void *cleanup_arg, int argc,
12                 \rchar *argv[]);
13 \r\r\rXBT_PUBLIC(void) \r xbt_context_kill(xbt_context_t context);
14 \r\r\rXBT_PUBLIC(void) \r xbt_context_start(xbt_context_t context);
15 \r\r\rXBT_PUBLIC(void) \r xbt_context_yield(void);
16 \r\r\rXBT_PUBLIC(void) \r xbt_context_schedule(xbt_context_t context);
17      \r\r\rvoid \rxbt_context_empty_trash(void);
18      \r\r\rvoid \rxbt_context_stop(int exit_code);
19      \r\r\rvoid \rxbt_context_free(xbt_context_t context);
20 \r\r\r\rSG_END_DECL() \r \r
21 #endif  /* !XBT_CONTEXT_H */\r