new lua implementation.
[apps/madmutt.git] / lib-lua / lib-lua.h
index 75b58fa..5afb91f 100644 (file)
 # include "../config.h"
 #endif
 
-void mlua_initialize(void);
-void mlua_shutdown(void);
+#include <lua.h>
+#include <lualib.h>
+#include <lauxlib.h>
 
-int mlua_dofile(const char *filename);
-int mlua_wrap(void (*errfun)(const char *fmt, ...), int status);
-ssize_t mlua_value(char *buf, ssize_t len,
-                   const char *table, const char *key);
+#include "lua-token.h"
+
+/* possible arguments to set_quadoption() */
+typedef enum quadopt_t {
+    M_NO,
+    M_YES,
+    M_ASKNO,
+    M_ASKYES
+} quadopt_t;
+
+void luaM_initialize(void);
+void luaM_shutdown(void);
+
+int luaM_dofile(const char *filename);
+int luaM_wrap(void (*errfun)(const char *fmt, ...)
+              __attribute__((format(printf, 1, 2))),
+              int status);
+
+quadopt_t luaM_checkquadopt(lua_State *L, int narg);
+
+#include "madmutt.h"
 
 #endif