Logo AND Algorithmique Numérique Distribuée

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