X-Git-Url: http://git.madism.org/?p=apps%2Fmadmutt.git;a=blobdiff_plain;f=lib-lua%2Flib-lua.h;h=5afb91f3819e25c05b8691c13cd7d9ce8c008843;hp=75b58fa952cb1e44b960dd56d1347d397ecad8b6;hb=b1c9f537b475b3bc8f6517bb4d7008a411bb478e;hpb=0840ecb90bb99da0d6b0c028ace977dd1932e6e1 diff --git a/lib-lua/lib-lua.h b/lib-lua/lib-lua.h index 75b58fa..5afb91f 100644 --- a/lib-lua/lib-lua.h +++ b/lib-lua/lib-lua.h @@ -24,12 +24,30 @@ # include "../config.h" #endif -void mlua_initialize(void); -void mlua_shutdown(void); +#include +#include +#include -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