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