LuPPC/include/lupi.h

34 lines
730 B
C
Raw Permalink Normal View History

2016-01-05 04:20:40 +11:00
#include <lua.h>
#include <lualib.h>
#include <lauxlib.h>
#ifndef LUPI_H
#define LUPI_H
2016-01-15 08:44:49 +11:00
#ifdef LOGGING
void logn(const char *message);
void logi(int message);
void logm(const char *message);
#else
#define logn(m)
#define logi(m)
#define logm(m)
#endif
2016-02-27 23:36:34 +11:00
#define pushstuple(state, name, value) lua_pushstring((state), (name)); lua_pushstring((state), (value)); lua_settable((state), -3)
2016-01-07 02:58:05 +11:00
2016-01-20 04:04:12 +11:00
typedef unsigned short ushort;
2016-01-15 08:44:49 +11:00
lua_State* getL();
2016-02-29 00:31:55 +11:00
void run_init(int argc, char **argv);
2016-02-12 21:12:27 +11:00
void lupi_init();
2016-01-07 03:16:09 +11:00
void luanative_start(lua_State *L);
2016-01-20 04:04:12 +11:00
void fb_start(lua_State *L);
2016-01-05 04:20:40 +11:00
void setup_modules(lua_State *L);
2016-01-07 02:58:05 +11:00
void termutils_start(lua_State *L);
void internet_start(lua_State *L);
2016-02-27 06:09:38 +11:00
void event_prepare();
int event_pull(int timeout);
2016-01-15 08:44:49 +11:00
2016-01-05 04:20:40 +11:00
#endif