2005-09-15 09:58:31 -04:00
|
|
|
|
|
|
|
#ifndef EL__SCRIPTING_LUA_CORE_H
|
|
|
|
#define EL__SCRIPTING_LUA_CORE_H
|
|
|
|
|
|
|
|
#include <lua.h> /* This is standard include. */
|
|
|
|
#ifdef HAVE_LAUXLIB_H
|
|
|
|
#include <lauxlib.h> /* needed for lua_ref, lua_unref */
|
|
|
|
#endif
|
|
|
|
#ifndef LUA_ALERT
|
|
|
|
#define LUA_ALERT "_ALERT"
|
|
|
|
#endif
|
|
|
|
|
2020-10-05 14:14:55 -04:00
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
2005-09-15 09:58:31 -04:00
|
|
|
struct module;
|
|
|
|
struct session;
|
|
|
|
|
|
|
|
extern lua_State *lua_state;
|
|
|
|
|
|
|
|
int prepare_lua(struct session *);
|
|
|
|
void finish_lua(void);
|
|
|
|
|
2022-01-30 09:39:26 -05:00
|
|
|
void alert_lua_error(const char *);
|
2022-01-30 11:34:36 -05:00
|
|
|
void alert_lua_error2(const char *, const char *);
|
2005-09-15 09:58:31 -04:00
|
|
|
|
|
|
|
enum evhook_status dialog_lua_console(va_list ap, void *data);
|
|
|
|
enum evhook_status free_lua_console_history(va_list ap, void *data);
|
|
|
|
|
|
|
|
void init_lua(struct module *module);
|
|
|
|
void cleanup_lua(struct module *module);
|
|
|
|
|
2020-10-05 14:14:55 -04:00
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
2005-09-15 09:58:31 -04:00
|
|
|
#endif
|