src/lua_console.h
author Tero Marttila <terom@fixme.fi>
Thu, 21 May 2009 16:56:42 +0300
changeset 210 05abca972db0
parent 203 ffdf53fd0337
child 217 7728d6ec3abf
permissions -rw-r--r--
implement lua_thread_abort, add lua_thread_yield_state func, and fix lua_thread_resume_state to use protected mode
#ifndef LUA_CONSOLE_H
#define LUA_CONSOLE_H

/**
 * @file
 *
 * An interactive lua console
 */
#include "lua_thread.h"
#include "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, struct error_info *err);

/**
 * Destroy the lua console state
 */
void lua_console_destroy (struct lua_console *lc);

#endif