Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Modifying the API so as to prevent a use of the context that would make valgrind...
[simgrid.git] / include / xbt / module.h
1 /* $Id$ */
2
3 /* module - modularize the code                                             */
4
5 /* Copyright (c) 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 _XBT_MODULE_H
11 #define _XBT_MODULE_H
12
13 typedef struct xbt_module_ xbt_module_t;
14
15 typedef xbt_module_t (*xbt_module_new_fct_t)(int argc, char **argv);
16 typedef int (*xbt_module_finalize_fct_t)(void);
17
18 void xbt_init(int *argc,char **argv);
19 void xbt_init_defaultlog(int *argc,char **argv, const char *defaultlog);
20 void xbt_exit(void);
21 #endif /* _XBT_MODULE_H */