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/NewXstatusNotify/src/main.cpp | 4 ++-- plugins/NewXstatusNotify/src/stdafx.h | 3 +++ 2 files changed, 5 insertions(+), 2 deletions(-) (limited to 'plugins/NewXstatusNotify/src') diff --git a/plugins/NewXstatusNotify/src/main.cpp b/plugins/NewXstatusNotify/src/main.cpp index 387b28c549..c15933478b 100644 --- a/plugins/NewXstatusNotify/src/main.cpp +++ b/plugins/NewXstatusNotify/src/main.cpp @@ -1144,7 +1144,7 @@ static int OnShutdown(WPARAM, LPARAM) ///////////////////////////////////////////////////////////////////////////////////////// -extern "C" int __declspec(dllexport) Load(void) +int CMPlugin::Load() { g_plugin.registerIcon(LPGEN("New Status Notify"), iconList, MODULE); @@ -1188,7 +1188,7 @@ extern "C" int __declspec(dllexport) Load(void) ///////////////////////////////////////////////////////////////////////////////////////// -extern "C" int __declspec(dllexport) Unload(void) +int CMPlugin::Unload() { DestroyHookableEvent(hHookContactStatusChanged); return 0; diff --git a/plugins/NewXstatusNotify/src/stdafx.h b/plugins/NewXstatusNotify/src/stdafx.h index 6f8578163d..5c87669c6f 100644 --- a/plugins/NewXstatusNotify/src/stdafx.h +++ b/plugins/NewXstatusNotify/src/stdafx.h @@ -71,6 +71,9 @@ struct CMPlugin : public PLUGIN { CMPlugin(); + + int Load() override; + int Unload() override; }; #define MAX_STATUSTEXT 36 -- cgit v1.2.3