Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Change the prototype of xbt_thread_create(), sorry.
[simgrid.git] / include / gras.h
index 6cc6123..ef4358f 100644 (file)
@@ -2,41 +2,28 @@
 
 /* gras.h - Public interface to the GRAS                                    */
 
-/* Authors: Martin Quinson                                                  */
-/* Copyright (C) 2003 the OURAGAN project.                                  */
+/* Copyright (c) 2003, 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_H
 #define GRAS_H
 
-#define max(a, b) (((a) > (b))?(a):(b))
-#define min(a, b) (((a) < (b))?(a):(b))
+#include <xbt.h>                /* our toolbox */
+#include <xbt/ex.h>             /* There's a whole bunch of exception handling in GRAS */
 
-#define TRUE  1
-#define FALSE 0
-
-#include <gras/error.h>
-#include <gras/log.h>
-
-#include <gras/module.h>
-
-#include <gras/dynar.h>
-#include <gras/dict.h>
-#include <gras/set.h>
-
-#include <gras/config.h>
-
-#include <gras/core.h>
 #include <gras/process.h>
-
+#include <gras/module.h>
+#include <gras/virtu.h>
+#include <gras/emul.h>
 
 #include <gras/transport.h>
 #include <gras/datadesc.h>
 #include <gras/messages.h>
+#include <gras/timer.h>
 
-#include <gras/modules/base.h>
-#include <gras/modules/bandwidth.h>
+XBT_PUBLIC(void) gras_init(int *argc, char **argv);
+XBT_PUBLIC(void) gras_exit(void);
 
 #endif /* GRAS_H */