Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Actually, upvalues were implemented a while ago.
[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_dict_t process_function_set;
12 extern xbt_dynar_t process_list;
13 extern xbt_dict_t machine_set;
14
15 typedef struct s_process_t {
16   int argc;
17   char **argv;
18   char *host;
19 } s_process_t;
20
21 void s_process_free(void *process);
22
23 /* UNIX files */
24 void generate_sim(const char *project);
25 void generate_rl(const char *project);
26 void generate_makefile_am(const char *project);
27 void generate_makefile_local(const char *project);
28
29 /* ********************************************************************************* */
30 /*                           Plaftorm functions                                      */
31 /* ********************************************************************************* */
32
33 int console_open(lua_State *L);
34 int console_close(lua_State *L);
35
36 int console_add_host(lua_State*);
37 int console_add_link(lua_State*);
38 int console_add_router(lua_State* L);
39 int console_add_route(lua_State*);
40 int console_AS_open(lua_State*);
41 int console_AS_close(lua_State *L);
42 int console_set_function(lua_State*);
43 int console_host_set_property(lua_State*);
44
45 #endif  /* SIMGRID_LUA_H */