summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPixel <pixel@nobis-crew.org>2008-10-09 14:56:16 -0700
committerPixel <pixel@nobis-crew.org>2008-10-09 14:56:16 -0700
commit26956b8e96df5d7b12d379ea5e4f189b20fecd7d (patch)
tree6dbc148f14adea70ea3e7ec16bad1efe7060d52a
parent034f244b06482c2cf04d7ee2d8eba099cba52631 (diff)
Adding support for the new smtp code.
-rw-r--r--Baltisot.vcproj8
-rw-r--r--lua-interface.vcproj4
-rw-r--r--src/lua-interface.cpp5
3 files changed, 17 insertions, 0 deletions
diff --git a/Baltisot.vcproj b/Baltisot.vcproj
index dce0d07..f4faf19 100644
--- a/Baltisot.vcproj
+++ b/Baltisot.vcproj
@@ -202,6 +202,14 @@
>
</File>
<File
+ RelativePath="..\Baltisot\lib\LuaSmtp.cc"
+ >
+ </File>
+ <File
+ RelativePath="..\Baltisot\include\LuaSmtp.h"
+ >
+ </File>
+ <File
RelativePath="..\Baltisot\lib\LuaSQL.cc"
>
</File>
diff --git a/lua-interface.vcproj b/lua-interface.vcproj
index 5f63133..be781ad 100644
--- a/lua-interface.vcproj
+++ b/lua-interface.vcproj
@@ -213,6 +213,10 @@
>
</File>
<File
+ RelativePath="..\lua-modules\src\plugin-luasmtp.cc"
+ >
+ </File>
+ <File
RelativePath="..\lua-modules\src\plugin-luasql.cc"
>
</File>
diff --git a/src/lua-interface.cpp b/src/lua-interface.cpp
index dfca130..172a365 100644
--- a/src/lua-interface.cpp
+++ b/src/lua-interface.cpp
@@ -62,6 +62,7 @@ extern void luaftgl_init(Lua * L) WEAK;
extern void luagl_init(Lua * L) WEAK;
extern void luahandle_init(Lua * L) WEAK;
extern void luahttp_init(Lua * L) WEAK;
+extern void luasmtp_init(Lua * L) WEAK;
extern void lualibs_init(Lua * L) WEAK;
extern void luaocci_init(Lua * L) WEAK;
extern void luaregex_init(Lua * L) WEAK;
@@ -319,6 +320,8 @@ int sLua_baselua_interface::baselua_interface_proceed_statics(Lua * L, int n, in
luahandle_init(L);
} else if ((filename == "luahttp") && (luahttp_init != NULL)) {
luahttp_init(L);
+ } else if ((filename == "luasmtp") && (luasmtp_init != NULL)) {
+ luasmtp_init(L);
} else if ((filename == "lualibs") && (lualibs_init != NULL)) {
lualibs_init(L);
#ifndef _MSVC
@@ -686,6 +689,8 @@ void autoload_exports(Lua * L) {
luaconfigfiles_init(L);
if (luahttp_init)
luahttp_init(L);
+ if (luasmtp_init)
+ luasmtp_init(L);
if (luaregex_init)
luaregex_init(L);
if (luasql_init)