-/* $Id$ */
-
/* module - modularize the code */
-/* Authors: Martin Quinson */
-/* Copyright (C) 2004 the Martin Quinson. */
+/* Copyright (c) 2004-2023. The SimGrid Team. 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 XBT_MODULE_H
+#define XBT_MODULE_H
+
+// Deprecation warning on include (remove entire file with XBT_ATTRIB_DEPRECATED_v338)
+#warning xbt/module.h is deprecated and will be removed after v3.37.
+
+#include <simgrid/engine.h>
+#include <xbt/base.h>
-#ifndef _GRAS_MODULE_H
-#define _GRAS_MODULE_H
+SG_BEGIN_DECL
-typedef struct gras_module_ gras_module_t;
+XBT_ATTRIB_DEPRECATED_v338("Please use simgrid_init(&argc, argv) instead") static void xbt_init(int* argc, char** argv)
+{
+ simgrid_init(argc, argv);
+}
-typedef gras_module_t (*gras_module_new_fct_t)(int argc, char **argv);
-typedef int (*gras_module_finalize_fct_t)(void);
+SG_END_DECL
-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 */
+#endif /* XBT_MODULE_H */