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