diff options
author | Alexander Lantsev <aunsane@gmail.com> | 2015-06-07 20:55:38 +0000 |
---|---|---|
committer | Alexander Lantsev <aunsane@gmail.com> | 2015-06-07 20:55:38 +0000 |
commit | a674fbe45df718f194948a7fa399c58fd9672519 (patch) | |
tree | fe59698871070fed40af646e5e83c22d47e69b7c /plugins/MirLua/src/main.cpp | |
parent | ba275795eba1936a3c395527cc55936a4dc02f9d (diff) |
MirLua: initial commit
git-svn-id: http://svn.miranda-ng.org/main/trunk@14061 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/MirLua/src/main.cpp')
-rw-r--r-- | plugins/MirLua/src/main.cpp | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/plugins/MirLua/src/main.cpp b/plugins/MirLua/src/main.cpp new file mode 100644 index 0000000000..d696848850 --- /dev/null +++ b/plugins/MirLua/src/main.cpp @@ -0,0 +1,49 @@ +#include "stdafx.h"
+
+int hLangpack;
+CMLua *g_luaCore;
+HINSTANCE g_hInstance;
+
+PLUGININFOEX pluginInfo =
+{
+ sizeof(PLUGININFOEX),
+ __PLUGIN_NAME,
+ PLUGIN_MAKE_VERSION(__MAJOR_VERSION, __MINOR_VERSION, __RELEASE_NUM, __BUILD_NUM),
+ __DESCRIPTION,
+ __AUTHOR,
+ __AUTHOREMAIL,
+ __COPYRIGHT,
+ __AUTHORWEB,
+ UNICODE_AWARE,
+ // {27d41d81-991f-4dc6-8749-b0321c87e694}
+ { 0x27d41d81, 0x991f, 0x4dc6, { 0x87, 0x49, 0xb0, 0x32, 0x1c, 0x87, 0xe6, 0x94 } }
+
+};
+
+DWORD WINAPI DllMain(HINSTANCE hInstance, DWORD, LPVOID)
+{
+ g_hInstance = hInstance;
+
+ return TRUE;
+}
+
+extern "C" __declspec(dllexport) PLUGININFOEX* MirandaPluginInfoEx(DWORD)
+{
+ return &pluginInfo;
+}
+
+extern "C" int __declspec(dllexport) Load(void)
+{
+ mir_getLP(&pluginInfo);
+
+ g_luaCore = new CMLua();
+
+ return 0;
+}
+
+extern "C" int __declspec(dllexport) Unload(void)
+{
+ delete g_luaCore;
+
+ return 0;
+}
|