X-Git-Url: http://git.madism.org/?p=apps%2Fmadmutt.git;a=blobdiff_plain;f=lib-lua%2Flib-lua.h;h=2a96a7debc311818503536f3d757ae5c4161f5c0;hp=569e77e919455216f39b9227570db7816686f737;hb=dc726add2e8fe52be1f6859ea7cbe4651498eeb8;hpb=1681dff7a1b69b0dad31d515c466439548b71f94 diff --git a/lib-lua/lib-lua.h b/lib-lua/lib-lua.h index 569e77e..2a96a7d 100644 --- a/lib-lua/lib-lua.h +++ b/lib-lua/lib-lua.h @@ -21,13 +21,14 @@ #define MUTT_LIB_LUA_LIB_LUA_H #ifdef HAVE_CONFIG_H -# include "../config.h" +# include #endif #include #include #include +#include #include "lua-token.h" /* possible arguments to set_quadoption() */ @@ -41,6 +42,8 @@ typedef enum quadopt_t { void luaM_initialize(void); void luaM_shutdown(void); +lua_State *luaM_getruntime(void); + int luaM_dofile(const char *filename); int luaM_wrap(void (*errfun)(const char *fmt, ...) __attribute__((format(printf, 1, 2))), @@ -50,8 +53,9 @@ quadopt_t luaM_checkquadopt(lua_State *L, int narg); void luaM_pushquadopt(lua_State *Ls, int val); const char *luaM_checkrx(lua_State *Ls, int narg); -char *luaM_pathnew(const char *val); rx_t *luaM_rxnew(const char* val); +char *luaM_pathnew(const char *val); +void luaM_pushaddr(lua_State *Ls, address_t *addr); #include "madmutt.li"