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 --- plugins/Sessions/Src/Main.cpp | 9 +-------- plugins/Sessions/Src/stdafx.h | 2 ++ 2 files changed, 3 insertions(+), 8 deletions(-) (limited to 'plugins/Sessions') diff --git a/plugins/Sessions/Src/Main.cpp b/plugins/Sessions/Src/Main.cpp index b4ff1df312..6d44ad45c2 100644 --- a/plugins/Sessions/Src/Main.cpp +++ b/plugins/Sessions/Src/Main.cpp @@ -806,7 +806,7 @@ static int PluginInit(WPARAM, LPARAM) ///////////////////////////////////////////////////////////////////////////////////////// -extern "C" __declspec(dllexport) int Load(void) +int CMPlugin::Load() { CreateServiceFunction(MS_SESSIONS_SHOWFAVORITESMENU, BuildFavMenu); CreateServiceFunction(MS_SESSIONS_OPENMANAGER, OpenSessionsManagerWindow); @@ -851,10 +851,3 @@ extern "C" __declspec(dllexport) int Load(void) g_plugin.registerIcon(MODULENAME, iconList); return 0; } - -///////////////////////////////////////////////////////////////////////////////////////// - -extern "C" __declspec(dllexport) int Unload(void) -{ - return 0; -} diff --git a/plugins/Sessions/Src/stdafx.h b/plugins/Sessions/Src/stdafx.h index 2a2424edbb..2d319c94f9 100644 --- a/plugins/Sessions/Src/stdafx.h +++ b/plugins/Sessions/Src/stdafx.h @@ -50,6 +50,8 @@ along with this program. If not, see . struct CMPlugin : public PLUGIN { CMPlugin(); + + int Load() override; }; extern IconItem iconList[]; -- cgit v1.2.3