diff options
author | Goraf <22941576+Goraf@users.noreply.github.com> | 2018-05-28 20:49:19 +0200 |
---|---|---|
committer | Goraf <22941576+Goraf@users.noreply.github.com> | 2018-05-28 21:00:55 +0200 |
commit | 9250a0caadc93ec7a92b99deea151ab7a1c403da (patch) | |
tree | a891d1bd365e00e192bb703375613caa446ede33 /plugins/NotifyAnything/src | |
parent | 3bfd3b9c9062048fde854b4c45ab62c29624d8f8 (diff) |
Notification plugins - convert to Load/Unload methods of CMPlugin
Diffstat (limited to 'plugins/NotifyAnything/src')
-rw-r--r-- | plugins/NotifyAnything/src/main.cpp | 4 | ||||
-rw-r--r-- | plugins/NotifyAnything/src/stdafx.h | 3 |
2 files changed, 5 insertions, 2 deletions
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>
{
CMPlugin();
+
+ int Load() override;
+ int Unload() override;
};
//---------------------------
|