diff options
author | George Hazan <ghazan@miranda.im> | 2018-05-28 22:38:35 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2018-05-28 22:39:22 +0300 |
commit | ca55ac7905e8ffd1ee979b5b5fe7121fa7a03a5d (patch) | |
tree | 2fc218f22e6fb28baa5b5efc02ab652daae97d73 /plugins/MirandaG15/src | |
parent | 9250a0caadc93ec7a92b99deea151ab7a1c403da (diff) |
all plugins => CMPlugin virtual functions
Diffstat (limited to 'plugins/MirandaG15/src')
-rw-r--r-- | plugins/MirandaG15/src/Miranda.cpp | 4 | ||||
-rw-r--r-- | plugins/MirandaG15/src/StdAfx.h | 3 |
2 files changed, 5 insertions, 2 deletions
diff --git a/plugins/MirandaG15/src/Miranda.cpp b/plugins/MirandaG15/src/Miranda.cpp index 90cd6fcede..cf3a273e92 100644 --- a/plugins/MirandaG15/src/Miranda.cpp +++ b/plugins/MirandaG15/src/Miranda.cpp @@ -89,7 +89,7 @@ CMPlugin::CMPlugin() : // We defer initialization until Miranda's module loading process completed and return 0 to
// mark success, everything else will cause the plugin to be freed right away.
-EXTERN_C int __declspec(dllexport) Load()
+int CMPlugin::Load()
{
g_bInitialized = false;
@@ -103,7 +103,7 @@ EXTERN_C int __declspec(dllexport) Load() /////////////////////////////////////////////////////////////////////////////////////////
// Called by Miranda when the plugin should unload itself.
-EXTERN_C int __declspec(dllexport) Unload(void)
+int CMPlugin::Unload(void)
{
if(!g_bInitialized) {
TRACE(L"ERROR: Unload requested, but plugin is not initialized?!\n");
diff --git a/plugins/MirandaG15/src/StdAfx.h b/plugins/MirandaG15/src/StdAfx.h index 632b5288fe..29978e1e66 100644 --- a/plugins/MirandaG15/src/StdAfx.h +++ b/plugins/MirandaG15/src/StdAfx.h @@ -38,6 +38,9 @@ using namespace std; struct CMPlugin : public PLUGIN<CMPlugin>
{
CMPlugin();
+
+ int Load() override;
+ int Unload() override;
};
#include "LCDFramework/LCDFramework.h"
|