From ca55ac7905e8ffd1ee979b5b5fe7121fa7a03a5d Mon Sep 17 00:00:00 2001 From: George Hazan Date: Mon, 28 May 2018 22:38:35 +0300 Subject: all plugins => CMPlugin virtual functions --- protocols/Gadu-Gadu/src/gg.cpp | 4 ++-- protocols/Gadu-Gadu/src/gg_proto.h | 3 +++ 2 files changed, 5 insertions(+), 2 deletions(-) (limited to 'protocols/Gadu-Gadu/src') diff --git a/protocols/Gadu-Gadu/src/gg.cpp b/protocols/Gadu-Gadu/src/gg.cpp index aaf4e792b8..848f5ba2f0 100644 --- a/protocols/Gadu-Gadu/src/gg.cpp +++ b/protocols/Gadu-Gadu/src/gg.cpp @@ -295,7 +295,7 @@ void GaduProto::OnBuildProtoMenu() ////////////////////////////////////////////////////////// // When plugin is loaded // -extern "C" int __declspec(dllexport) Load(void) +int CMPlugin::Load() { HookEvent(ME_SYSTEM_MODULESLOADED, gg_modulesloaded); @@ -306,7 +306,7 @@ extern "C" int __declspec(dllexport) Load(void) ////////////////////////////////////////////////////////// // When plugin is unloaded // -extern "C" int __declspec(dllexport) Unload() +int CMPlugin::Unload() { WSACleanup(); return 0; diff --git a/protocols/Gadu-Gadu/src/gg_proto.h b/protocols/Gadu-Gadu/src/gg_proto.h index b77a27aee0..ada0efe1d8 100644 --- a/protocols/Gadu-Gadu/src/gg_proto.h +++ b/protocols/Gadu-Gadu/src/gg_proto.h @@ -316,6 +316,9 @@ void crc_gentable(void); struct CMPlugin : public ACCPROTOPLUGIN { CMPlugin(); + + int Load() override; + int Unload() override; }; #endif -- cgit v1.2.3