diff options
author | George Hazan <ghazan@miranda.im> | 2018-05-28 22:38:35 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2018-05-28 22:39:22 +0300 |
commit | ca55ac7905e8ffd1ee979b5b5fe7121fa7a03a5d (patch) | |
tree | 2fc218f22e6fb28baa5b5efc02ab652daae97d73 /protocols/ICQCorp/src | |
parent | 9250a0caadc93ec7a92b99deea151ab7a1c403da (diff) |
all plugins => CMPlugin virtual functions
Diffstat (limited to 'protocols/ICQCorp/src')
-rw-r--r-- | protocols/ICQCorp/src/corp.cpp | 4 | ||||
-rw-r--r-- | protocols/ICQCorp/src/stdafx.h | 3 |
2 files changed, 5 insertions, 2 deletions
diff --git a/protocols/ICQCorp/src/corp.cpp b/protocols/ICQCorp/src/corp.cpp index 497037cf06..aa7a241ec0 100644 --- a/protocols/ICQCorp/src/corp.cpp +++ b/protocols/ICQCorp/src/corp.cpp @@ -59,7 +59,7 @@ extern "C" __declspec(dllexport) const MUUID MirandaInterfaces[] = { MIID_PROTOC ///////////////////////////////////////////////////////////////////////////////
-extern "C" __declspec(dllexport) int Load()
+int CMPlugin::Load()
{
CMStringA szDescr(FORMAT, "%s connection", protoName);
NETLIBUSER nlu = {};
@@ -74,7 +74,7 @@ extern "C" __declspec(dllexport) int Load() ///////////////////////////////////////////////////////////////////////////////
-extern "C" __declspec(dllexport) int Unload()
+int CMPlugin::Unload()
{
UnloadServices();
return 0;
diff --git a/protocols/ICQCorp/src/stdafx.h b/protocols/ICQCorp/src/stdafx.h index 215bb0a9dc..f32175904f 100644 --- a/protocols/ICQCorp/src/stdafx.h +++ b/protocols/ICQCorp/src/stdafx.h @@ -60,4 +60,7 @@ extern int UnloadServices(); struct CMPlugin : public PLUGIN<CMPlugin> { CMPlugin(); + + int Load() override; + int Unload() override; }; |