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/Dummy/src/dummy.h | 2 ++ protocols/Dummy/src/main.cpp | 10 +--------- 2 files changed, 3 insertions(+), 9 deletions(-) (limited to 'protocols/Dummy/src') diff --git a/protocols/Dummy/src/dummy.h b/protocols/Dummy/src/dummy.h index 2dd22bc769..cca1f81fbb 100644 --- a/protocols/Dummy/src/dummy.h +++ b/protocols/Dummy/src/dummy.h @@ -71,4 +71,6 @@ static const ttemplate templates[] = struct CMPlugin : public ACCPROTOPLUGIN { CMPlugin(); + + int Load() override; }; diff --git a/protocols/Dummy/src/main.cpp b/protocols/Dummy/src/main.cpp index 999d3f8b41..57af4a2723 100644 --- a/protocols/Dummy/src/main.cpp +++ b/protocols/Dummy/src/main.cpp @@ -59,20 +59,12 @@ static int OnModulesLoaded(WPARAM, LPARAM) ///////////////////////////////////////////////////////////////////////////////////////// // OnLoad - initialize the plugin instance -extern "C" int __declspec(dllexport) Load() +int CMPlugin::Load() { HookEvent(ME_SYSTEM_MODULESLOADED, OnModulesLoaded); return 0; } -///////////////////////////////////////////////////////////////////////////////////////// -// Unload - destroy the plugin instance - -extern "C" int __declspec(dllexport) Unload(void) -{ - return 0; -} - ///////////////////////////////////////////////////////////////////////////////////////// // stubs for obsoleted protocols -- cgit v1.2.3