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