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 /protocols/Discord/src | |
parent | 9250a0caadc93ec7a92b99deea151ab7a1c403da (diff) |
all plugins => CMPlugin virtual functions
Diffstat (limited to 'protocols/Discord/src')
-rw-r--r-- | protocols/Discord/src/main.cpp | 4 | ||||
-rw-r--r-- | protocols/Discord/src/proto.h | 3 |
2 files changed, 5 insertions, 2 deletions
diff --git a/protocols/Discord/src/main.cpp b/protocols/Discord/src/main.cpp index 1dc83a4ce3..5d4841e977 100644 --- a/protocols/Discord/src/main.cpp +++ b/protocols/Discord/src/main.cpp @@ -56,7 +56,7 @@ IconItem g_iconList[] = { LPGEN("Group chats"), "groupchat", IDI_GROUPCHAT } }; -extern "C" int __declspec(dllexport) Load(void) +int CMPlugin::Load() { g_hwndHeartbeat = CreateWindowEx(0, L"STATIC", nullptr, 0, 0, 0, 0, 0, nullptr, nullptr, nullptr, nullptr); @@ -67,7 +67,7 @@ extern "C" int __declspec(dllexport) Load(void) ///////////////////////////////////////////////////////////////////////////////////////// // Unload -extern "C" int __declspec(dllexport) Unload(void) +int CMPlugin::Unload() { DestroyWindow(g_hwndHeartbeat); return 0; diff --git a/protocols/Discord/src/proto.h b/protocols/Discord/src/proto.h index c47875950f..502f52fb2f 100644 --- a/protocols/Discord/src/proto.h +++ b/protocols/Discord/src/proto.h @@ -365,4 +365,7 @@ public: struct CMPlugin : public ACCPROTOPLUGIN<CDiscordProto> { CMPlugin(); + + int Load() override; + int Unload() override; }; |