summaryrefslogtreecommitdiff
path: root/protocols/Xfire/src
diff options
context:
space:
mode:
Diffstat (limited to 'protocols/Xfire/src')
-rw-r--r--protocols/Xfire/src/main.cpp28
-rw-r--r--protocols/Xfire/src/version.h14
2 files changed, 29 insertions, 13 deletions
diff --git a/protocols/Xfire/src/main.cpp b/protocols/Xfire/src/main.cpp
index b1249b8b69..9edf15f981 100644
--- a/protocols/Xfire/src/main.cpp
+++ b/protocols/Xfire/src/main.cpp
@@ -80,6 +80,7 @@
#include "Xfire_voicechat.h"
#include "variables.h"
+#include "version.h"
#include <stdexcept>
#include <sstream>
@@ -127,17 +128,18 @@ extern LPtsrGetServerInfo tsrGetServerInfo;
HANDLE hGameDetection = CreateEvent(NULL,FALSE,FALSE,NULL);
HANDLE hConnectionClose = CreateEvent(NULL,TRUE,FALSE,NULL);
-PLUGININFOEX pluginInfoEx={
- sizeof(PLUGININFOEX),
- "Xfire protocol",
- PLUGIN_MAKE_VERSION(0,1,8,4),
- "Xfire protocol support for Miranda NG.",
- "dufte",
- "dufte@justmail.de",
- "(c) 2012 Xfirelib by Herbert Poul, Xfire Miranda protocol plugin by dufte",
- "http://miranda-ng.org",
- UNICODE_AWARE,
- { 0x9b8e1735, 0x970d, 0x4ce0, { 0x93, 0xc, 0xa5, 0x61, 0x95, 0x6b, 0xdc, 0xa2 } } // {9B8E1735-970D-4ce0-930C-A561956BDCA2}
+PLUGININFOEX pluginInfo = {
+ sizeof(PLUGININFOEX),
+ __PLUGIN_NAME,
+ PLUGIN_MAKE_VERSION(__MAJOR_VERSION, __MINOR_VERSION, __RELEASE_NUM, __BUILD_NUM),
+ __DESCRIPTION,
+ __AUTHOR,
+ __AUTHOREMAIL,
+ __COPYRIGHT,
+ __AUTHORWEB,
+ UNICODE_AWARE,
+ // {9B8E1735-970D-4ce0-930C-A561956BDCA2}
+ {0x9b8e1735, 0x970d, 0x4ce0, {0x93, 0xc, 0xa5, 0x61, 0x95, 0x6b, 0xdc, 0xa2}}
};
static IconItem icon = { LPGEN("Protocol icon"), "XFIRE_main", IDI_TM };
@@ -758,7 +760,7 @@ void XFireClient::sendmsg(char*usr,char*cmsg) {
extern "C" __declspec(dllexport) PLUGININFOEX* MirandaPluginInfoEx(DWORD)
{
- return &pluginInfoEx;
+ return &pluginInfo;
}
//=====================================================
@@ -1055,7 +1057,7 @@ int ExtraImageApply(WPARAM wparam, LPARAM lparam)
extern "C" __declspec(dllexport) int Load(void)
{
- mir_getLP(&pluginInfoEx);
+ mir_getLP(&pluginInfo);
InitializeCriticalSection(&modeMsgsMutex);
InitializeCriticalSection(&connectingMutex);
diff --git a/protocols/Xfire/src/version.h b/protocols/Xfire/src/version.h
new file mode 100644
index 0000000000..e46dd45ce1
--- /dev/null
+++ b/protocols/Xfire/src/version.h
@@ -0,0 +1,14 @@
+#define __MAJOR_VERSION 0
+#define __MINOR_VERSION 1
+#define __RELEASE_NUM 8
+#define __BUILD_NUM 4
+
+#define __FILEVERSION_STRING __MAJOR_VERSION,__MINOR_VERSION,__RELEASE_NUM,__BUILD_NUM
+
+#define __PLUGIN_NAME "Xfire protocol"
+#define __FILENAME "Xfire.dll"
+#define __DESCRIPTION "Xfire protocol support for Miranda NG."
+#define __AUTHOR "dufte"
+#define __AUTHOREMAIL "dufte@justmail.de"
+#define __AUTHORWEB "http://miranda-ng.org/p/XFire/"
+#define __COPYRIGHT "(c) 2012 Xfirelib by Herbert Poul, Xfire Miranda protocol plugin by dufte"