X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/2f810149832a2d855c33d0df5b02d736c2081e41..831de10adaaf8910940aa280e2ac2dd075b5ffe5:/src/bindings/lua/simgrid_lua.h diff --git a/src/bindings/lua/simgrid_lua.h b/src/bindings/lua/simgrid_lua.h index 06a9aefeb5..289974f6b2 100644 --- a/src/bindings/lua/simgrid_lua.h +++ b/src/bindings/lua/simgrid_lua.h @@ -1,57 +1,32 @@ +/* Copyright (c) 2010-2014. The SimGrid Team. + * All rights reserved. */ + /* 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 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.h" -#include - -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; - char **argv; - char *host; -} s_process_t; - -void s_process_free(void *process); - -/* UNIX files */ -void generate_sim(const char *project); -void generate_rl(const char *project); -void generate_makefile_am(const char *project); -void generate_makefile_local(const char *project); +extern "C" { +#include /* ********************************************************************************* */ -/* Console functions */ +/* Plaftorm functions */ /* ********************************************************************************* */ -// Public Functions + int console_open(lua_State *L); int console_close(lua_State *L); +int console_add_backbone(lua_State*); +int console_add_host___link(lua_State*); 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_ASroute(lua_State*); int console_AS_open(lua_State*); -int console_AS_close(lua_State *L); +int console_AS_seal(lua_State *L); int console_set_function(lua_State*); int console_host_set_property(lua_State*); - +} #endif /* SIMGRID_LUA_H */