X-Git-Url: http://git.madism.org/?p=apps%2Fmadmutt.git;a=blobdiff_plain;f=lib-lua%2Flib-lua.h;h=5afb91f3819e25c05b8691c13cd7d9ce8c008843;hp=0a4d8597feadbe5fed0ce84530482bd329c8bbb6;hb=b1c9f537b475b3bc8f6517bb4d7008a411bb478e;hpb=627215940cb13e74999ab56375dbb615e22f23bd diff --git a/lib-lua/lib-lua.h b/lib-lua/lib-lua.h index 0a4d859..5afb91f 100644 --- a/lib-lua/lib-lua.h +++ b/lib-lua/lib-lua.h @@ -24,5 +24,30 @@ # include "../config.h" #endif +#include +#include +#include + +#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