From 9250a0caadc93ec7a92b99deea151ab7a1c403da Mon Sep 17 00:00:00 2001 From: Goraf <22941576+Goraf@users.noreply.github.com> Date: Mon, 28 May 2018 20:49:19 +0200 Subject: Notification plugins - convert to Load/Unload methods of CMPlugin --- plugins/NotifyAnything/src/main.cpp | 4 ++-- plugins/NotifyAnything/src/stdafx.h | 3 +++ 2 files changed, 5 insertions(+), 2 deletions(-) (limited to 'plugins/NotifyAnything') diff --git a/plugins/NotifyAnything/src/main.cpp b/plugins/NotifyAnything/src/main.cpp index a2fa27f3a9..725772cfa3 100644 --- a/plugins/NotifyAnything/src/main.cpp +++ b/plugins/NotifyAnything/src/main.cpp @@ -965,7 +965,7 @@ void stop_threads() ///////////////////////////////////////////////////////////////////////////////////////// -extern "C" int __declspec(dllexport) Load() +int CMPlugin::Load() { g_firstrun = true; @@ -987,7 +987,7 @@ extern "C" int __declspec(dllexport) Load() ///////////////////////////////////////////////////////////////////////////////////////// -extern "C" int __declspec(dllexport) Unload(void) +int CMPlugin::Unload() { stop_threads(); WSACleanup(); diff --git a/plugins/NotifyAnything/src/stdafx.h b/plugins/NotifyAnything/src/stdafx.h index 940b5d379f..70ad7e8304 100644 --- a/plugins/NotifyAnything/src/stdafx.h +++ b/plugins/NotifyAnything/src/stdafx.h @@ -26,6 +26,9 @@ struct CMPlugin : public PLUGIN { CMPlugin(); + + int Load() override; + int Unload() override; }; //--------------------------- -- cgit v1.2.3