1
/* $Id: core.h,v 1.13 2003/12/20 22:42:54 pasky Exp $ */
3
#ifndef EL__SCRIPTING_LUA_CORE_H
4
#define EL__SCRIPTING_LUA_CORE_H
8
#include <lua.h> /* This is standard include. */
10
#include <lauxlib.h> /* needed for lua_ref, lua_unref */
13
#define lua_call(L,nargs,nresults) lua_pcall(L,nargs,nresults,0)
14
#define lua_open(x) (lua_open)()
17
#define LUA_ALERT "alert"
20
#include "modules/module.h"
21
#include "sched/event.h"
22
#include "sched/session.h"
24
extern lua_State *lua_state;
26
int prepare_lua(struct session *);
27
void finish_lua(void);
29
void alert_lua_error(unsigned char *);
30
void alert_lua_error2(unsigned char *, unsigned char *);
32
enum evhook_status dialog_lua_console(va_list ap, void *data);
33
enum evhook_status free_lua_console_history(va_list ap, void *data);
35
extern struct module lua_scripting_module;