Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Add binaries and various files to .gitignore
[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 <stdio.h>
8 #include <lauxlib.h>
9 #include <lualib.h>
10 #include "msg/msg.h"
11 #include "simdag/simdag.h"
12 #include <gras.h>
13 #include "xbt.h"
14 #include "xbt/dynar.h"
15 #include "xbt/dict.h"
16 #include "xbt/sysdep.h"
17 #include "xbt/function_types.h"
18 #include "xbt/log.h"
19 #include "surf/surfxml_parse.h"
20 #include "surf/surf.h"
21 #include <stdarg.h>
22
23 extern xbt_dict_t process_function_set;
24 extern xbt_dynar_t process_list;
25 extern xbt_dict_t machine_set;
26
27 typedef struct s_process_t {
28   int argc;
29   char **argv;
30   char *host;
31 } s_process_t;
32
33 void s_process_free(void *process);
34
35 /* UNIX files */
36 void generate_sim(const char *project);
37 void generate_rl(const char *project);
38 void generate_makefile_am(const char *project);
39 void generate_makefile_local(const char *project);
40
41 /* ********************************************************************************* */
42 /*                           Console functions                                       */
43 /* ********************************************************************************* */
44 // Public Functions
45 int console_open(lua_State *L);
46 int console_close(lua_State *L);
47
48 int console_add_host(lua_State*);
49 int console_add_link(lua_State*);
50 int console_add_router(lua_State* L);
51 int console_add_route(lua_State*);
52 int console_AS_open(lua_State*);
53 int console_AS_close(lua_State *L);
54 int console_set_function(lua_State*);
55 int console_host_set_property(lua_State*);
56
57 #endif  /* SIMGRID_LUA_H */