summaryrefslogtreecommitdiff
path: root/plugins/New_GPG/src
diff options
context:
space:
mode:
authorKirill Volinsky <mataes2007@gmail.com>2013-03-02 16:32:01 +0000
committerKirill Volinsky <mataes2007@gmail.com>2013-03-02 16:32:01 +0000
commite27c47eb062d54f15846ce95bbcd3f6218ca4ab7 (patch)
tree32c349cd4a4abd4dd17d51ede207158e474618e8 /plugins/New_GPG/src
parent110977f13bbe3f29d20f14cce78aa0675bf3cd74 (diff)
projects cleanup
added version info git-svn-id: http://svn.miranda-ng.org/main/trunk@3842 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/New_GPG/src')
-rw-r--r--plugins/New_GPG/src/Version.h14
-rwxr-xr-xplugins/New_GPG/src/commonheaders.h13
-rwxr-xr-xplugins/New_GPG/src/init.cpp20
3 files changed, 28 insertions, 19 deletions
diff --git a/plugins/New_GPG/src/Version.h b/plugins/New_GPG/src/Version.h
new file mode 100644
index 0000000000..86774f7ace
--- /dev/null
+++ b/plugins/New_GPG/src/Version.h
@@ -0,0 +1,14 @@
+#define __MAJOR_VERSION 0
+#define __MINOR_VERSION 0
+#define __RELEASE_NUM 0
+#define __BUILD_NUM 11
+
+#define __FILEVERSION_STRING __MAJOR_VERSION,__MINOR_VERSION,__RELEASE_NUM,__BUILD_NUM
+
+#define __PLUGIN_NAME "GPG"
+#define __FILENAME "New_GPG.dll"
+#define __DESCRIPTION "New GPG encryption support plugin, based on code from old GPG plugin and SecureIM."
+#define __AUTHOR "sss"
+#define __AUTHOREMAIL "sss123next@list.ru"
+#define __AUTHORWEB "http://miranda-ng.org/"
+#define __COPYRIGHT "© 2010-2012 sss"
diff --git a/plugins/New_GPG/src/commonheaders.h b/plugins/New_GPG/src/commonheaders.h
index eb5f6d2a64..54f8c4303a 100755
--- a/plugins/New_GPG/src/commonheaders.h
+++ b/plugins/New_GPG/src/commonheaders.h
@@ -13,12 +13,12 @@
// You should have received a copy of the GNU General Public License
// along with this program; if not, write to the Free Software
// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+
#ifndef COMMONHEADERS_H
#define COMMONHEADERS_H
#define _CRT_SECURE_NO_WARNINGS
-
-#define MIRANDA_VER 0x0A00
+#define _SCL_SECURE_NO_WARNINGS
//windows
#include <windows.h>
@@ -46,9 +46,7 @@ using std::wstring;
using std::wfstream;
using std::fstream;
-
//boost
-
#include <boost/thread/thread.hpp>
#include <boost/thread/mutex.hpp>
#include <boost/nondet_random.hpp>
@@ -59,11 +57,9 @@ using std::fstream;
//boost process
#include <boost/process.hpp>
-
//utf8cpp
#include <utf8.h>
-
//miranda
#include <newpluginapi.h>
#include <m_database.h>
@@ -84,10 +80,10 @@ using std::fstream;
#include "m_extraicons.h"
#include "m_metacontacts.h"
#include "win2k.h"
-#include "resource.h"
-
//internal
+#include "resource.h"
+#include "Version.h"
#include "constants.h"
#include "log.h"
#include "globals.h"
@@ -96,4 +92,5 @@ using std::fstream;
#include "gpg_wrapper.h"
#include "jabber_account.h"
#include "metacontacts.h"
+
#endif
diff --git a/plugins/New_GPG/src/init.cpp b/plugins/New_GPG/src/init.cpp
index de1f3144f9..ef28840c60 100755
--- a/plugins/New_GPG/src/init.cpp
+++ b/plugins/New_GPG/src/init.cpp
@@ -32,25 +32,23 @@ logtofile debuglog;
bool gpg_valid = false, gpg_keyexist = false;
std::map<HANDLE, contact_data> hcontact_data;
-
-
PLUGININFOEX pluginInfo={
sizeof(PLUGININFOEX),
- "GPG",
- PLUGIN_MAKE_VERSION(0,0,0,11),
- "New GPG encryption support plugin, based on code from old GPG plugin and SecureIM.",
- "sss",
- "sss123next@list.ru",
- "© 2010-2012 sss",
- "http://sss.chaoslab.ru/tracker/mim_plugs/",
+ __PLUGIN_NAME,
+ PLUGIN_MAKE_VERSION(__MAJOR_VERSION, __MINOR_VERSION, __RELEASE_NUM, __BUILD_NUM),
+ __DESCRIPTION,
+ __AUTHOR,
+ __AUTHOREMAIL,
+ __COPYRIGHT,
+ __AUTHORWEB,
UNICODE_AWARE,
// {4227c050-8d97-48d2-91ec-6a952b3dab94}
{ 0x4227c050, 0x8d97, 0x48d2, { 0x91, 0xec, 0x6a, 0x95, 0x2b, 0x3d, 0xab, 0x94 } }
};
-BOOL WINAPI DllMain(HINSTANCE hinstDLL,DWORD fdwReason,LPVOID lpvReserved)
+BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved)
{
- hInst=hinstDLL;
+ hInst = hinstDLL;
return TRUE;
}