Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Add print out for simulated time.
[simgrid.git] / tools / gras / gras_stub_generator.h
1 /* gras_stub_generator - creates the main() to use a GRAS program           */
2
3 /* Copyright (c) 2003-2007 Martin Quinson, Arnaud Legrand, Malek Cherier.   */
4 /* All rights reserved.                                                     */
5
6 /* This program is free software; you can redistribute it and/or modify it
7  * under the terms of the license (GNU LGPL) which comes with this package. */
8
9 #ifndef GRAS_STUB_GENERATOR_H
10 #define GRAS_STUB_GENERATOR_H
11
12 #define WARN "/***********\n * DO NOT EDIT! THIS FILE HAS BEEN AUTOMATICALLY GENERATED FROM %s BY gras_stub_generator\n ***********/\n"
13
14 #include "xbt/dynar.h"
15 #include "xbt/dict.h"
16 extern xbt_dict_t process_function_set;
17 extern xbt_dynar_t process_list;
18 extern xbt_dict_t machine_set;
19 extern char *warning;
20
21 typedef struct s_process_t {
22   int argc;
23   char **argv;
24   char *host;
25 } s_process_t;
26
27 void s_process_free(void *process);
28
29 /* UNIX files */
30 void generate_sim(char *project);
31 void generate_rl(char *project);
32 void generate_makefile_am(char *project, char *deployment);
33 void generate_makefile_local(char *project, char *deployment);
34
35 /* the gras.h header directory (used only in windows)*/
36 extern char *__gras_path;
37
38 /*
39  * Generate a borland simulation poject file.
40  * @param name The name of the simulation project
41  */
42 void generate_borland_simulation_project(const char *name);
43
44 /*
45  * Generate a borland project file for real life.
46  * @param name The name of the project to create.
47  */
48 void generate_borland_real_life_project(const char *name);
49
50
51 /*
52  * Create the Microsoft visual C++ file project for the simulation.
53  */
54 int generate_simulation_dsp_file(const char *project_name);
55
56 /*
57  * Create the Microsoft visual C++ real life project file.
58  */
59 int generate_real_live_dsp_file(const char *project_name);
60
61
62 #endif