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/EmLanProto/src/amdproto.cpp | 4 ++-- protocols/EmLanProto/src/stdafx.h | 3 +++ 2 files changed, 5 insertions(+), 2 deletions(-) (limited to 'protocols/EmLanProto/src') diff --git a/protocols/EmLanProto/src/amdproto.cpp b/protocols/EmLanProto/src/amdproto.cpp index 6c02c60c61..61e215590c 100644 --- a/protocols/EmLanProto/src/amdproto.cpp +++ b/protocols/EmLanProto/src/amdproto.cpp @@ -327,7 +327,7 @@ INT_PTR CALLBACK EMPDlgProcMessage(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARA return FALSE; } -extern "C" int __declspec(dllexport) __cdecl Load() +int CMPlugin::Load() { g_lan = new CMLan(); @@ -356,7 +356,7 @@ extern "C" int __declspec(dllexport) __cdecl Load() return 0; } -extern "C" int __declspec(dllexport) __cdecl Unload() +int CMPlugin::Unload() { delete g_lan; return 0; diff --git a/protocols/EmLanProto/src/stdafx.h b/protocols/EmLanProto/src/stdafx.h index 30aca9c8a4..d39315933e 100644 --- a/protocols/EmLanProto/src/stdafx.h +++ b/protocols/EmLanProto/src/stdafx.h @@ -28,6 +28,9 @@ struct CMPlugin : public PLUGIN { CMPlugin(); + + int Load() override; + int Unload() override; }; //#define VERBOSE -- cgit v1.2.3