move OPT_QUIT into the lua registry
[apps/madmutt.git] / lib-lua / lib-lua.h
index 47e9daa..efad96c 100644 (file)
 
 #include "lua-token.h"
 
+/* possible arguments to set_quadoption() */
+typedef enum quadopt_t {
+  M_NO,
+  M_YES,
+  M_ASKNO,
+  M_ASKYES
+} quadopt_t;
+
 void mlua_initialize(void);
 void mlua_shutdown(void);
 
@@ -33,6 +41,9 @@ int mlua_dofile(const char *filename);
 int mlua_wrap(void (*errfun)(const char *fmt, ...), int status);
 
 const char *mlua_reggets(enum lua_token tk);
+quadopt_t mlua_reggetq(enum lua_token tk);
+
 void mlua_regsets(enum lua_token tk, const char *s);
+void mlua_regsetq(enum lua_token tk, quadopt_t q);
 
 #endif