X-Git-Url: http://git.madism.org/?p=apps%2Fmadmutt.git;a=blobdiff_plain;f=lib-lua%2Fruntime.c;h=2214e9be821389f079a6dcb6e3589f7ab2d4b267;hp=1b976c9c9c79a31f51feaf2ce3e67c2a0e85c958;hb=4f1b1414371cc373f50ca79a888928635a3a3763;hpb=16534e98723674fa391e3fc29d2a07ce419c13dd diff --git a/lib-lua/runtime.c b/lib-lua/runtime.c index 1b976c9..2214e9b 100644 --- a/lib-lua/runtime.c +++ b/lib-lua/runtime.c @@ -23,6 +23,8 @@ #include "../alias.h" #include "../mutt.h" #include "../charset.h" +#include "../buffy.h" +#include static lua_State *L; @@ -41,6 +43,9 @@ void luaM_initialize(void) {"MTransport", luaopen_MTransport}, {"MAlias", luaopen_MAlias}, {"MCharset", luaopen_MCharset}, + {"Mime", luaopen_Mime}, + {"Buffy", luaopen_Buffy}, + {"mod_ssl", luaopen_mod_ssl}, }; int i; @@ -58,6 +63,10 @@ void luaM_shutdown(void) lua_close(L); } +lua_State *luaM_getruntime(void) +{ + return L; +} int luaM_dofile(const char *filename) {