create mod_ssl.
[apps/madmutt.git] / lib-lua / runtime.c
index 1b976c9..2214e9b 100644 (file)
@@ -23,6 +23,8 @@
 #include "../alias.h"
 #include "../mutt.h"
 #include "../charset.h"
+#include "../buffy.h"
+#include <lib-sys/mutt_ssl.li>
 
 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)
 {