diff options
Diffstat (limited to 'plugins/Quotes')
-rw-r--r-- | plugins/Quotes/src/Forex.cpp | 18 | ||||
-rw-r--r-- | plugins/Quotes/src/stdafx.h | 1 |
2 files changed, 13 insertions, 6 deletions
diff --git a/plugins/Quotes/src/Forex.cpp b/plugins/Quotes/src/Forex.cpp index 28e645cdea..7a99cd754d 100644 --- a/plugins/Quotes/src/Forex.cpp +++ b/plugins/Quotes/src/Forex.cpp @@ -315,12 +315,6 @@ EXTERN_C int __declspec(dllexport) Load(void) Quotes_IconsInit();
Quotes_InitExtraIcons();
- PROTOCOLDESCRIPTOR pd = { 0 };
- pd.cbSize = PROTOCOLDESCRIPTOR_V3_SIZE;
- pd.szName = QUOTES_PROTOCOL_NAME;
- pd.type = PROTOTYPE_VIRTUAL;
- Proto_RegisterModule(&pd);
-
CreateProtoServiceFunction(QUOTES_PROTOCOL_NAME, PS_GETCAPS, QuoteProtoFunc_GetCaps);
CreateProtoServiceFunction(QUOTES_PROTOCOL_NAME, PS_GETSTATUS, QuoteProtoFunc_GetStatus);
@@ -343,3 +337,15 @@ EXTERN_C __declspec(dllexport) int Unload(void) return 0;
}
+
+/////////////////////////////////////////////////////////////////////////////////////////
+
+struct CMPlugin : public CMPluginBase
+{
+ CMPlugin() :
+ CMPluginBase(QUOTES_PROTOCOL_NAME)
+ {
+ RegisterProtocol(PROTOTYPE_VIRTUAL);
+ }
+}
+ g_plugin;
diff --git a/plugins/Quotes/src/stdafx.h b/plugins/Quotes/src/stdafx.h index 838c01b6e9..abdfcb6ea4 100644 --- a/plugins/Quotes/src/stdafx.h +++ b/plugins/Quotes/src/stdafx.h @@ -29,6 +29,7 @@ #include <m_netlib.h>
#include <m_popup.h>
#include <m_userinfo.h>
+#include <m_plugin.h>
#include <m_variables.h>
#include <m_Quotes.h>
|