X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/f783ed4680c6862a1b7543237e89d1221334bae0..773dc73ff2e12aa636dcc6dd06da8d5750d577f8:/src/bindings/lua/simgrid_lua.h diff --git a/src/bindings/lua/simgrid_lua.h b/src/bindings/lua/simgrid_lua.h index 91774956c8..5a426ddad4 100644 --- a/src/bindings/lua/simgrid_lua.h +++ b/src/bindings/lua/simgrid_lua.h @@ -1,27 +1,12 @@ /* 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 -#include -#include -#include "msg/msg.h" -#include "simdag/simdag.h" -#include -#include "xbt.h" -#include "xbt/dynar.h" #include "xbt/dict.h" -#include "xbt/sysdep.h" -#include "xbt/function_types.h" -#include "xbt/log.h" -#include "surf/surfxml_parse.h" -#include "surf/surf_private.h" -#include "surf/surf.h" -#include "portable.h" /* Needed for the time of the SIMIX convertion */ -#include - +#include "xbt/dynar.h" +#include extern xbt_dict_t process_function_set; extern xbt_dynar_t process_list; @@ -42,73 +27,19 @@ void generate_makefile_am(const char *project); void generate_makefile_local(const char *project); /* ********************************************************************************* */ -/* Console functions */ +/* Plaftorm functions */ /* ********************************************************************************* */ -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 { - //platform attribute - // Mandatory attributes - const char *id; - double power_peak; - // Optional attributes - double power_scale; - const char *power_trace; - int state_initial; - const char *state_trace; - int core; - //deployment attribute - const char *function; - xbt_dynar_t args_list; - xbt_dict_t properties; -} host_attr, *p_host_attr; - - -typedef struct t_link_attr { - //mandatory attributes - const char *id; - double bandwidth; - double latency; - // Optional attributes - const char *bandwidth_trace; - const char *latency_trace; - const char *state_trace; - int state_initial; - int policy; -} link_attr, *p_link_attr; - - -typedef struct t_route_attr { - const char *src_id; - const char *dest_id; - xbt_dynar_t links_id; - -} route_attr, *p_route_attr; - -typedef struct t_router_attr { - const char *id; -} router_attr, *p_router_attr; - -// Public Functions +int console_open(lua_State *L); +int console_close(lua_State *L); 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_AS_open(lua_State*); +int console_AS_close(lua_State *L); 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); - -#endif +#endif /* SIMGRID_LUA_H */