src/spbot/lua_console.h
author Tero Marttila <terom@fixme.fi>
Thu, 28 May 2009 00:35:02 +0300
branchnew-lib-errors
changeset 218 5229a5d098b2
parent 217 src/lua_console.h@7728d6ec3abf
permissions -rw-r--r--
some of spbot and lib compiles
#ifndef SPBOT_LUA_CONSOLE_H
#define SPBOT_LUA_CONSOLE_H

/**
 * @file
 *
 * An interactive lua console
 */
#include "lua_thread.h"
#include <lib/console.h>

#include <lua5.1/lua.h>

/**
 * 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