Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
We need to store the binary name somewhere to display neat backtraces
[simgrid.git] / include / xbt / module.h
index 0dfb6faea0e24bc11a443762c9a751b1ca0e4895..21dd04cab75f706a628822a8e0d0a2977ec0e750 100644 (file)
@@ -2,21 +2,21 @@
 
 /* module - modularize the code                                             */
 
-/* Authors: Martin Quinson                                                  */
-/* Copyright (C) 2004 the Martin Quinson.                                   */
+/* Copyright (c) 2004 Martin Quinson. All rights reserved.                  */
 
 /* This program is free software; you can redistribute it and/or modify it
  under the terms of the license (GNU LGPL) which comes with this package. */
* under the terms of the license (GNU LGPL) which comes with this package. */
 
-#ifndef _GRAS_MODULE_H
-#define _GRAS_MODULE_H
+#ifndef _XBT_MODULE_H
+#define _XBT_MODULE_H
 
-typedef struct gras_module_ gras_module_t;
+extern char *xbt_binary_name;
 
-typedef gras_module_t (*gras_module_new_fct_t)(int argc, char **argv);
-typedef int (*gras_module_finalize_fct_t)(void);
+typedef struct xbt_module_ xbt_module_t;
 
-void gras_init(int *argc,char **argv);
-void gras_init_defaultlog(int *argc,char **argv, const char *defaultlog);
-void gras_exit(void);
-#endif /* _GRAS_MODULE_H */
+typedef xbt_module_t (*xbt_module_new_fct_t)(int argc, char **argv);
+typedef int (*xbt_module_finalize_fct_t)(void);
+
+void xbt_init(int *argc,char **argv);
+void xbt_exit(void);
+#endif /* _XBT_MODULE_H */