Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
move parts of the kernel to the right subdir
[simgrid.git] / src / bindings / lua / simgrid_lua.h
index 06a9aef..289974f 100644 (file)
@@ -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 <stdio.h>
-#include <lauxlib.h>
-#include <lualib.h>
-#include "msg/msg.h"
-#include "simdag/simdag.h"
-#include <gras.h>
-#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 <stdarg.h>
-
-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 <lua.h>
 
 /* ********************************************************************************* */
-/*                           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 */