diff -r 7728d6ec3abf -r 5229a5d098b2 src/spbot/lua_console.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/src/spbot/lua_console.h Thu May 28 00:35:02 2009 +0300 @@ -0,0 +1,31 @@ +#ifndef SPBOT_LUA_CONSOLE_H +#define SPBOT_LUA_CONSOLE_H + +/** + * @file + * + * An interactive lua console + */ +#include "lua_thread.h" +#include + +#include + +/** + * The lua console state + */ +struct lua_console; + +/** + * Create a new lua console based on the given low-level console, operating on the given nexus + * + * This overrides the console callbacks. + */ +err_t lua_console_create (struct lua_console **lc_ptr, struct console *console, struct nexus_lua *lua, error_t *err); + +/** + * Destroy the lua console state + */ +void lua_console_destroy (struct lua_console *lc); + +#endif