summaryrefslogtreecommitdiff
path: root/plugins/XSoundNotify/src
diff options
context:
space:
mode:
authorGoraf <22941576+Goraf@users.noreply.github.com>2018-05-28 20:49:19 +0200
committerGoraf <22941576+Goraf@users.noreply.github.com>2018-05-28 21:00:55 +0200
commit9250a0caadc93ec7a92b99deea151ab7a1c403da (patch)
treea891d1bd365e00e192bb703375613caa446ede33 /plugins/XSoundNotify/src
parent3bfd3b9c9062048fde854b4c45ab62c29624d8f8 (diff)
Notification plugins - convert to Load/Unload methods of CMPlugin
Diffstat (limited to 'plugins/XSoundNotify/src')
-rw-r--r--plugins/XSoundNotify/src/stdafx.h3
-rw-r--r--plugins/XSoundNotify/src/xsn_main.cpp4
2 files changed, 5 insertions, 2 deletions
diff --git a/plugins/XSoundNotify/src/stdafx.h b/plugins/XSoundNotify/src/stdafx.h
index 70c1a6b9d6..7a5c1527ac 100644
--- a/plugins/XSoundNotify/src/stdafx.h
+++ b/plugins/XSoundNotify/src/stdafx.h
@@ -25,6 +25,9 @@
struct CMPlugin : public PLUGIN<CMPlugin>
{
CMPlugin();
+
+ int Load() override;
+ int Unload() override;
};
struct XSN_Data
diff --git a/plugins/XSoundNotify/src/xsn_main.cpp b/plugins/XSoundNotify/src/xsn_main.cpp
index 5e766f0bb7..d8713148ce 100644
--- a/plugins/XSoundNotify/src/xsn_main.cpp
+++ b/plugins/XSoundNotify/src/xsn_main.cpp
@@ -231,7 +231,7 @@ static int OnPreShutdown(WPARAM, LPARAM)
return 0;
}
-extern "C" int __declspec(dllexport) Load()
+int CMPlugin::Load()
{
CreateServiceFunction("XSoundNotify/ContactMenuCommand", ShowDialog);
@@ -250,7 +250,7 @@ extern "C" int __declspec(dllexport) Load()
/////////////////////////////////////////////////////////////////////////////////////////
-extern "C" int __declspec(dllexport) Unload(void)
+int CMPlugin::Unload()
{
WindowList_Destroy(hChangeSoundDlgList);
return 0;