A
lgorithmique
N
umérique
D
istribuée
Public GIT Repository
projects
/
simgrid.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
kill more empty function chaining in lua console
[simgrid.git]
/
src
/
bindings
/
lua
/
simgrid_lua.h
diff --git
a/src/bindings/lua/simgrid_lua.h
b/src/bindings/lua/simgrid_lua.h
index
932dff6
..
50034bb
100644
(file)
--- a/
src/bindings/lua/simgrid_lua.h
+++ b/
src/bindings/lua/simgrid_lua.h
@@
-1,8
+1,8
@@
/* This program is free software; you can redistribute it and/or modify it
* under the terms of the license (GNU LGPL) which comes with this package. */
/* This program is free software; you can redistribute it and/or modify it
* under the terms of the license (GNU LGPL) which comes with this package. */
-#ifndef
GRAS_STUB_GENERATOR
_H
-#define
GRAS_STUB_GENERATOR
_H
+#ifndef
SIMGRID_LUA
_H
+#define
SIMGRID_LUA
_H
#include <stdio.h>
#include <lauxlib.h>
#include <stdio.h>
#include <lauxlib.h>
@@
-22,10
+22,9
@@
#include "portable.h" /* Needed for the time of the SIMIX convertion */
#include <stdarg.h>
#include "portable.h" /* Needed for the time of the SIMIX convertion */
#include <stdarg.h>
-
-xbt_dict_t process_function_set;
-xbt_dynar_t process_list;
-xbt_dict_t machine_set;
+extern xbt_dict_t process_function_set;
+extern xbt_dynar_t process_list;
+extern xbt_dict_t machine_set;
typedef struct s_process_t {
int argc;
typedef struct s_process_t {
int argc;
@@
-33,8
+32,6
@@
typedef struct s_process_t {
char *host;
} s_process_t;
char *host;
} s_process_t;
-char *warning;
-
void s_process_free(void *process);
/* UNIX files */
void s_process_free(void *process);
/* UNIX files */
@@
-50,6
+47,11
@@
void generate_makefile_local(const char *project);
typedef struct t_AS_attr {
const char *id;
const char *mode;
typedef struct t_AS_attr {
const char *id;
const char *mode;
+ xbt_dynar_t host_list_d;
+ xbt_dynar_t link_list_d;
+ xbt_dynar_t route_list_d;
+ xbt_dynar_t router_list_d;
+ xbt_dynar_t sub_as_list_id;
} AS_attr, *p_AS_attr;
typedef struct t_host_attr {
} AS_attr, *p_AS_attr;
typedef struct t_host_attr {
@@
-62,9
+64,11
@@
typedef struct t_host_attr {
const char *power_trace;
int state_initial;
const char *state_trace;
const char *power_trace;
int state_initial;
const char *state_trace;
+ int core;
//deployment attribute
const char *function;
xbt_dynar_t args_list;
//deployment attribute
const char *function;
xbt_dynar_t args_list;
+ xbt_dict_t properties;
} host_attr, *p_host_attr;
} host_attr, *p_host_attr;
@@
-89,16
+93,22
@@
typedef struct t_route_attr {
} route_attr, *p_route_attr;
} route_attr, *p_route_attr;
+typedef struct t_router_attr {
+ const char *id;
+} router_attr, *p_router_attr;
+
// Public Functions
int console_add_host(lua_State*);
int console_add_link(lua_State*);
// Public Functions
int console_add_host(lua_State*);
int console_add_link(lua_State*);
+int console_add_router(lua_State* L);
int console_add_route(lua_State*);
int console_add_AS(lua_State*);
int console_set_function(lua_State*);
int console_add_route(lua_State*);
int console_add_AS(lua_State*);
int console_set_function(lua_State*);
+int console_host_set_property(lua_State*);
int console_parse_platform(void);
int console_parse_application(void);
int console_parse_platform_wsL07(void);
int console_parse_platform(void);
int console_parse_application(void);
int console_parse_platform_wsL07(void);
-#endif
+#endif
/* SIMGRID_LUA_H */