X-Git-Url: http://git.madism.org/?p=apps%2Fmadmutt.git;a=blobdiff_plain;f=lib-lua%2Fruntime.c;h=55bdeef31d039ea8e8c013bb75762dbbdb6f2370;hp=6023ae6942fb6eee8dfa02221345820d22357bb8;hb=aac3f035c98d7800fde3eef7a43ded322e4862db;hpb=c9f72ab0cd65f517a2047feb942ad85025c1b7e8 diff --git a/lib-lua/runtime.c b/lib-lua/runtime.c index 6023ae6..55bdeef 100644 --- a/lib-lua/runtime.c +++ b/lib-lua/runtime.c @@ -24,6 +24,8 @@ #include "../mutt.h" #include "../charset.h" #include "../buffy.h" +#include "../crypt.h" +#include static lua_State *L; @@ -44,6 +46,8 @@ void luaM_initialize(void) {"MCharset", luaopen_MCharset}, {"Mime", luaopen_Mime}, {"Buffy", luaopen_Buffy}, + {"mod_ssl", luaopen_mod_ssl}, + {"mod_crypt", luaopen_mod_crypt}, }; int i; @@ -61,6 +65,10 @@ void luaM_shutdown(void) lua_close(L); } +lua_State *luaM_getruntime(void) +{ + return L; +} int luaM_dofile(const char *filename) {