src/spbot/lua_console.h
branchnew-lib-errors
changeset 218 5229a5d098b2
parent 217 7728d6ec3abf
equal deleted inserted replaced
217:7728d6ec3abf 218:5229a5d098b2
       
     1 #ifndef SPBOT_LUA_CONSOLE_H
       
     2 #define SPBOT_LUA_CONSOLE_H
       
     3 
       
     4 /**
       
     5  * @file
       
     6  *
       
     7  * An interactive lua console
       
     8  */
       
     9 #include "lua_thread.h"
       
    10 #include <lib/console.h>
       
    11 
       
    12 #include <lua5.1/lua.h>
       
    13 
       
    14 /**
       
    15  * The lua console state
       
    16  */
       
    17 struct lua_console;
       
    18 
       
    19 /**
       
    20  * Create a new lua console based on the given low-level console, operating on the given nexus
       
    21  *
       
    22  * This overrides the console callbacks.
       
    23  */
       
    24 err_t lua_console_create (struct lua_console **lc_ptr, struct console *console, struct nexus_lua *lua, error_t *err);
       
    25 
       
    26 /**
       
    27  * Destroy the lua console state
       
    28  */
       
    29 void lua_console_destroy (struct lua_console *lc);
       
    30 
       
    31 #endif