Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
2400d7f37ad4846516a5b345cb9ed8eeb649b030
[simgrid.git] / src / bindings / lua / simgrid_lua.h
1 /* This program is free software; you can redistribute it and/or modify it
2  * under the terms of the license (GNU LGPL) which comes with this package. */
3
4 #ifndef SIMGRID_LUA_H
5 #define SIMGRID_LUA_H
6
7 #include "xbt/dict.h"
8 #include "xbt/dynar.h"
9 #include <lua.h>
10
11 extern xbt_dynar_t process_list;
12 extern xbt_dict_t machine_set;
13
14 typedef struct s_process_t {
15   int argc;
16   char **argv;
17   char *host;
18 } s_process_t;
19
20 void s_process_free(void *process);
21
22 /* UNIX files */
23 void generate_sim(const char *project);
24 void generate_rl(const char *project);
25 void generate_makefile_am(const char *project);
26 void generate_makefile_local(const char *project);
27
28 /* ********************************************************************************* */
29 /*                           Plaftorm functions                                      */
30 /* ********************************************************************************* */
31
32 int console_open(lua_State *L);
33 int console_close(lua_State *L);
34
35 int console_add_host(lua_State*);
36 int console_add_link(lua_State*);
37 int console_add_router(lua_State* L);
38 int console_add_route(lua_State*);
39 int console_AS_open(lua_State*);
40 int console_AS_close(lua_State *L);
41 int console_set_function(lua_State*);
42 int console_host_set_property(lua_State*);
43
44 #endif  /* SIMGRID_LUA_H */