diff options
author | Vadim Dashevskiy <watcherhd@gmail.com> | 2013-10-07 08:25:19 +0000 |
---|---|---|
committer | Vadim Dashevskiy <watcherhd@gmail.com> | 2013-10-07 08:25:19 +0000 |
commit | 71a42d0f0dcbd01bd4a9bfdef7bc9c2ae71d13da (patch) | |
tree | 9b13b20e35d686be9bf29e4f64b662c96a071123 /protocols/Tlen/src | |
parent | a127f8774661297941b83ad278a09f0b7376373b (diff) |
Tlen: version info added
git-svn-id: http://svn.miranda-ng.org/main/trunk@6390 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/Tlen/src')
-rw-r--r-- | protocols/Tlen/src/commons.h | 20 | ||||
-rw-r--r-- | protocols/Tlen/src/tlen.cpp | 23 | ||||
-rw-r--r-- | protocols/Tlen/src/version.h | 17 |
3 files changed, 30 insertions, 30 deletions
diff --git a/protocols/Tlen/src/commons.h b/protocols/Tlen/src/commons.h index 87df67a285..37f81198e3 100644 --- a/protocols/Tlen/src/commons.h +++ b/protocols/Tlen/src/commons.h @@ -1,24 +1,6 @@ #ifndef _TLENCOMMONS_INC
#define _TLENCOMMONS_INC
-
-#define TLENMUCC_MAJOR_VERSION 2
-#define TLENMUCC_MINOR_VERSION 1
-#define TLENMUCC_RELEASE_NUM 0
-#define TLENMUCC_BUILD_NUM 0
-#define TLENMUCC_VERSION_STRING "2.1.0.0"
-
-
-
-//consts for tlen.dll
-#define TLEN_MAJOR_VERSION TLENMUCC_MAJOR_VERSION
-#define TLEN_MINOR_VERSION TLENMUCC_MINOR_VERSION
-#define TLEN_RELEASE_NUM TLENMUCC_RELEASE_NUM
-#define TLEN_BUILD_NUM TLENMUCC_BUILD_NUM
-
-#define TLEN_FILEVERSION_STRING TLEN_MAJOR_VERSION,TLEN_MINOR_VERSION,TLEN_RELEASE_NUM,TLEN_BUILD_NUM
-#define TLEN_VERSION_STRING TLENMUCC_VERSION_STRING
-
-
+#include "version.h"
#endif //ifndef _TLENCOMMONS_INC
diff --git a/protocols/Tlen/src/tlen.cpp b/protocols/Tlen/src/tlen.cpp index 61ca7c8d3b..ed149cf861 100644 --- a/protocols/Tlen/src/tlen.cpp +++ b/protocols/Tlen/src/tlen.cpp @@ -40,17 +40,18 @@ int hLangpack; HINSTANCE hInst;
HANDLE hMainThread;
-PLUGININFOEX pluginInfoEx = {
+PLUGININFOEX pluginInfo = {
sizeof(PLUGININFOEX),
- "Tlen Protocol",
- PLUGIN_MAKE_VERSION(TLEN_MAJOR_VERSION,TLEN_MINOR_VERSION,TLEN_RELEASE_NUM,TLEN_BUILD_NUM),
- "Tlen protocol support for Miranda NG.",
- "Santithorn Bunchua, Adam Strzelecki, Piotr Piastucki",
- "the_leech@users.berlios.de",
- "(c) 2002-2012 Santithorn Bunchua, Piotr Piastucki",
- "http://miranda-ng.org/",
+ __PLUGIN_NAME,
+ PLUGIN_MAKE_VERSION(__MAJOR_VERSION, __MINOR_VERSION, __RELEASE_NUM, __BUILD_NUM),
+ __DESCRIPTION,
+ __AUTHOR,
+ __AUTHOREMAIL,
+ __COPYRIGHT,
+ __AUTHORWEB,
UNICODE_AWARE,
- {0x748f8934, 0x781a, 0x528d, { 0x52, 0x08, 0x00, 0x12, 0x65, 0x40, 0x4a, 0xb3 }}
+ // {748F8934-781A-528D-5208-001265404AB3}
+ {0x748f8934, 0x781a, 0x528d, {0x52, 0x08, 0x00, 0x12, 0x65, 0x40, 0x4a, 0xb3}}
};
// Main tlen server connection thread global variables
@@ -67,7 +68,7 @@ BOOL WINAPI DllMain(HINSTANCE hModule, DWORD dwReason, LPVOID lpvReserved) extern "C" __declspec(dllexport) PLUGININFOEX *MirandaPluginInfoEx(DWORD mirandaVersion)
{
- return &pluginInfoEx;
+ return &pluginInfo;
}
extern "C" __declspec(dllexport) const MUUID MirandaInterfaces[] = {MIID_PROTOCOL, MIID_LAST};
@@ -391,7 +392,7 @@ static int tlenProtoUninit(TlenProtocol* ppro) extern "C" int __declspec(dllexport) Load(void)
{
- mir_getLP( &pluginInfoEx );
+ mir_getLP( &pluginInfo );
DuplicateHandle(GetCurrentProcess(), GetCurrentThread(), GetCurrentProcess(), &hMainThread, THREAD_SET_CONTEXT, FALSE, 0);
diff --git a/protocols/Tlen/src/version.h b/protocols/Tlen/src/version.h new file mode 100644 index 0000000000..8d419d309d --- /dev/null +++ b/protocols/Tlen/src/version.h @@ -0,0 +1,17 @@ +#define __MAJOR_VERSION 2
+#define __MINOR_VERSION 1
+#define __RELEASE_NUM 0
+#define __BUILD_NUM 0
+
+#define __FILEVERSION_STRING __MAJOR_VERSION,__MINOR_VERSION,__RELEASE_NUM,__BUILD_NUM
+
+#define TLENMUCC_VERSION_STRING "2.1.0.0"
+#define TLEN_VERSION_STRING TLENMUCC_VERSION_STRING
+
+#define __PLUGIN_NAME "Tlen Protocol"
+#define __FILENAME "Tlen.dll"
+#define __DESCRIPTION "Tlen protocol support for Miranda NG."
+#define __AUTHOR "Santithorn Bunchua, Adam Strzelecki, Piotr Piastucki"
+#define __AUTHOREMAIL "the_leech@users.berlios.de"
+#define __AUTHORWEB "http://miranda-ng.org/p/Tlen/"
+#define __COPYRIGHT "(c) 2002-2012 Santithorn Bunchua, Piotr Piastucki"
|