summaryrefslogtreecommitdiff
path: root/protocols/Tox
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2018-05-28 22:38:35 +0300
committerGeorge Hazan <ghazan@miranda.im>2018-05-28 22:39:22 +0300
commitca55ac7905e8ffd1ee979b5b5fe7121fa7a03a5d (patch)
tree2fc218f22e6fb28baa5b5efc02ab652daae97d73 /protocols/Tox
parent9250a0caadc93ec7a92b99deea151ab7a1c403da (diff)
all plugins => CMPlugin virtual functions
Diffstat (limited to 'protocols/Tox')
-rw-r--r--protocols/Tox/src/main.cpp9
-rw-r--r--protocols/Tox/src/tox_proto.h2
2 files changed, 3 insertions, 8 deletions
diff --git a/protocols/Tox/src/main.cpp b/protocols/Tox/src/main.cpp
index 329f6ffb51..219c7a07c6 100644
--- a/protocols/Tox/src/main.cpp
+++ b/protocols/Tox/src/main.cpp
@@ -46,15 +46,8 @@ int OnModulesLoaded(WPARAM, LPARAM)
return 0;
}
-extern "C" int __declspec(dllexport) Load(void)
+int CMPlugin::Load()
{
HookEvent(ME_SYSTEM_MODULESLOADED, OnModulesLoaded);
return 0;
}
-
-/////////////////////////////////////////////////////////////////////////////////////////
-
-extern "C" int __declspec(dllexport) Unload(void)
-{
- return 0;
-}
diff --git a/protocols/Tox/src/tox_proto.h b/protocols/Tox/src/tox_proto.h
index 5af4c0bddf..37028045e9 100644
--- a/protocols/Tox/src/tox_proto.h
+++ b/protocols/Tox/src/tox_proto.h
@@ -249,6 +249,8 @@ private:
struct CMPlugin : public ACCPROTOPLUGIN<CToxProto>
{
CMPlugin();
+
+ int Load() override;
};
#endif //_TOX_PROTO_H_ \ No newline at end of file