projects
/
apps
/
madmutt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Move many things to the crypt module \o/
[apps/madmutt.git]
/
lib-lua
/
runtime.c
diff --git
a/lib-lua/runtime.c
b/lib-lua/runtime.c
index
6023ae6
..
55bdeef
100644
(file)
--- a/
lib-lua/runtime.c
+++ b/
lib-lua/runtime.c
@@
-24,6
+24,8
@@
#include "../mutt.h"
#include "../charset.h"
#include "../buffy.h"
#include "../mutt.h"
#include "../charset.h"
#include "../buffy.h"
+#include "../crypt.h"
+#include <lib-sys/mutt_ssl.li>
static lua_State *L;
static lua_State *L;
@@
-44,6
+46,8
@@
void luaM_initialize(void)
{"MCharset", luaopen_MCharset},
{"Mime", luaopen_Mime},
{"Buffy", luaopen_Buffy},
{"MCharset", luaopen_MCharset},
{"Mime", luaopen_Mime},
{"Buffy", luaopen_Buffy},
+ {"mod_ssl", luaopen_mod_ssl},
+ {"mod_crypt", luaopen_mod_crypt},
};
int i;
};
int i;
@@
-61,6
+65,10
@@
void luaM_shutdown(void)
lua_close(L);
}
lua_close(L);
}
+lua_State *luaM_getruntime(void)
+{
+ return L;
+}
int luaM_dofile(const char *filename)
{
int luaM_dofile(const char *filename)
{