2015-01-30 20:37:14 +01:00
|
|
|
/*
|
2010-08-08 10:06:34 +02:00
|
|
|
+-------------------+
|
|
|
|
| | Enno Rehling <enno@eressea.de>
|
|
|
|
| Eressea PBEM host | Christian Schlittchen <corwin@amber.kn-bremen.de>
|
|
|
|
| (c) 1998 - 2008 | Katja Zedel <katze@felidae.kn-bremen.de>
|
|
|
|
| | Henning Peters <faroul@beyond.kn-bremen.de>
|
|
|
|
+-------------------+
|
|
|
|
|
|
|
|
This program may not be used, modified or distributed
|
|
|
|
without prior permission by the authors of Eressea.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
2015-01-30 20:37:14 +01:00
|
|
|
struct lua_State;
|
2017-01-26 17:41:21 +01:00
|
|
|
struct selist;
|
2017-01-21 19:53:47 +01:00
|
|
|
struct _dictionary_;
|
2011-03-07 08:02:35 +01:00
|
|
|
|
2017-01-22 12:57:25 +01:00
|
|
|
int tolua_sqlite_open(struct lua_State *L);
|
2017-01-21 19:53:47 +01:00
|
|
|
int tolua_bindings_open(struct lua_State *L, const struct _dictionary_ *d);
|
2015-01-30 20:37:14 +01:00
|
|
|
int tolua_itemlist_next(struct lua_State *L);
|
|
|
|
int tolua_orderlist_next(struct lua_State *L);
|
2017-01-26 17:41:21 +01:00
|
|
|
int tolua_selist_push(struct lua_State *L, const char *list_type,
|
|
|
|
const char *elem_type, struct selist *list);
|
2010-08-08 10:06:34 +02:00
|
|
|
|
2015-01-30 20:37:14 +01:00
|
|
|
int log_lua_error(struct lua_State *L);
|
2012-06-07 04:29:36 +02:00
|
|
|
|
2015-01-30 20:37:14 +01:00
|
|
|
void lua_done(struct lua_State *L);
|
2017-01-21 19:53:47 +01:00
|
|
|
struct lua_State *lua_init(const struct _dictionary_ *d);
|
2015-01-30 20:37:14 +01:00
|
|
|
int eressea_run(struct lua_State *L, const char *luafile);
|
2012-06-07 04:29:36 +02:00
|
|
|
|
2010-08-08 10:06:34 +02:00
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|