diff options
author | George Hazan <ghazan@miranda.im> | 2018-05-20 15:08:48 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2018-05-20 15:08:48 +0300 |
commit | 8a74e7495ce5ad39de4f5c25121a84d35df90c36 (patch) | |
tree | 03e5b4870f09a3163306740c2eebee47bc15b042 /protocols/JabberG/src | |
parent | c5bf7d6123dd1c3b82ccb8fdb1b068077e9d56d4 (diff) |
CMPlugin to receive a reference to PLUGININFOEX
Diffstat (limited to 'protocols/JabberG/src')
-rwxr-xr-x | protocols/JabberG/src/jabber.cpp | 19 | ||||
-rwxr-xr-x | protocols/JabberG/src/jabber_proto.h | 6 |
2 files changed, 12 insertions, 13 deletions
diff --git a/protocols/JabberG/src/jabber.cpp b/protocols/JabberG/src/jabber.cpp index 341f5092f0..b8673483c3 100755 --- a/protocols/JabberG/src/jabber.cpp +++ b/protocols/JabberG/src/jabber.cpp @@ -37,13 +37,14 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. HMODULE hMsftedit;
+CMPlugin g_plugin;
int &hLangpack(g_plugin.m_hLang);
-unsigned int g_nTempFileId;
CHAT_MANAGER *pci;
int g_cbCountries;
CountryListEntry *g_countries;
+unsigned int g_nTempFileId;
wchar_t szCoreVersion[100];
CLIST_INTERFACE* pcli;
@@ -59,11 +60,7 @@ bool bSecureIM, bMirOTR, bNewGPG, bPlatform; /////////////////////////////////////////////////////////////////////////////////////////
-CMPlugin g_plugin;
-
-/////////////////////////////////////////////////////////////////////////////////////////
-
-PLUGININFOEX pluginInfo = {
+static PLUGININFOEX pluginInfoEx = {
sizeof(PLUGININFOEX),
__PLUGIN_NAME,
PLUGIN_MAKE_VERSION(__MAJOR_VERSION, __MINOR_VERSION, __RELEASE_NUM, __BUILD_NUM),
@@ -75,9 +72,15 @@ PLUGININFOEX pluginInfo = { { 0x144e80a2, 0xd198, 0x428b, {0xac, 0xbe, 0x9d, 0x55, 0xda, 0xcc, 0x7f, 0xde }} // {144E80A2-D198-428b-ACBE-9D55DACC7FDE}
};
+CMPlugin::CMPlugin() :
+ ACCPROTOPLUGIN<CJabberProto>("JABBER", pluginInfoEx)
+{
+ SetUniqueId("jid");
+}
+
extern "C" __declspec(dllexport) PLUGININFOEX* MirandaPluginInfoEx(DWORD)
{
- return &pluginInfo;
+ return &pluginInfoEx;
}
/////////////////////////////////////////////////////////////////////////////////////////
@@ -157,7 +160,7 @@ static int OnModulesLoaded(WPARAM, LPARAM) extern "C" int __declspec(dllexport) Load()
{
// set the memory, lists & utf8 managers
- mir_getLP(&pluginInfo);
+ mir_getLP(&pluginInfoEx);
pci = Chat_GetInterface();
pcli = Clist_GetInterface();
diff --git a/protocols/JabberG/src/jabber_proto.h b/protocols/JabberG/src/jabber_proto.h index c36553e268..8da20b0d1a 100755 --- a/protocols/JabberG/src/jabber_proto.h +++ b/protocols/JabberG/src/jabber_proto.h @@ -936,11 +936,7 @@ private: struct CMPlugin : public ACCPROTOPLUGIN<CJabberProto>
{
- CMPlugin() :
- ACCPROTOPLUGIN<CJabberProto>("JABBER")
- {
- SetUniqueId("jid");
- }
+ CMPlugin();
};
#endif
|