X-Git-Url: http://git.madism.org/?p=apps%2Fmadmutt.git;a=blobdiff_plain;f=lib-lua%2Fruntime.c;h=55bdeef31d039ea8e8c013bb75762dbbdb6f2370;hp=b96db43c1a2a14195def08acbf19eb70c353cf43;hb=60d4f80b49d2010e6da268cfdb95bb72ba1da88e;hpb=9a4192468557a6d53cafff937cffd7f06157a47f diff --git a/lib-lua/runtime.c b/lib-lua/runtime.c index b96db43..55bdeef 100644 --- a/lib-lua/runtime.c +++ b/lib-lua/runtime.c @@ -22,6 +22,10 @@ #include "../alias.h" #include "../mutt.h" +#include "../charset.h" +#include "../buffy.h" +#include "../crypt.h" +#include static lua_State *L; @@ -39,6 +43,11 @@ void luaM_initialize(void) {"MCore", luaopen_MCore}, {"MTransport", luaopen_MTransport}, {"MAlias", luaopen_MAlias}, + {"MCharset", luaopen_MCharset}, + {"Mime", luaopen_Mime}, + {"Buffy", luaopen_Buffy}, + {"mod_ssl", luaopen_mod_ssl}, + {"mod_crypt", luaopen_mod_crypt}, }; int i; @@ -56,6 +65,10 @@ void luaM_shutdown(void) lua_close(L); } +lua_State *luaM_getruntime(void) +{ + return L; +} int luaM_dofile(const char *filename) {