1 /* gras_stub_generator - creates the main() to use a GRAS program */
3 /* Copyright (c) 2003-2007 Martin Quinson, Arnaud Legrand, Malek Cherier. */
4 /* All rights reserved. */
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. */
9 #ifndef GRAS_STUB_GENERATOR_H
10 #define GRAS_STUB_GENERATOR_H
12 #define WARN "/***********\n * DO NOT EDIT! THIS FILE HAS BEEN AUTOMATICALLY GENERATED FROM %s BY gras_stub_generator\n ***********/\n"
14 #include "xbt/dynar.h"
16 extern xbt_dict_t process_function_set;
17 extern xbt_dynar_t process_list;
18 extern xbt_dict_t machine_set;
21 typedef struct s_process_t {
27 void s_process_free(void *process);
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);
35 /* the gras.h header directory (used only in windows)*/
36 extern char *__gras_path;
39 * Generate a borland simulation poject file.
40 * @param name The name of the simulation project
42 void generate_borland_simulation_project(const char *name);
45 * Generate a borland project file for real life.
46 * @param name The name of the project to create.
48 void generate_borland_real_life_project(const char *name);
52 * Create the Microsoft visual C++ file project for the simulation.
54 int generate_simulation_dsp_file(const char *project_name);
57 * Create the Microsoft visual C++ real life project file.
59 int generate_real_live_dsp_file(const char *project_name);