summaryrefslogtreecommitdiff
path: root/plugins/CyrTranslit/src
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/CyrTranslit/src')
-rw-r--r--plugins/CyrTranslit/src/TransliterationProtocol.cpp6
-rw-r--r--plugins/CyrTranslit/src/stdafx.h2
2 files changed, 4 insertions, 4 deletions
diff --git a/plugins/CyrTranslit/src/TransliterationProtocol.cpp b/plugins/CyrTranslit/src/TransliterationProtocol.cpp
index 27940f86ac..52eb90b6ef 100644
--- a/plugins/CyrTranslit/src/TransliterationProtocol.cpp
+++ b/plugins/CyrTranslit/src/TransliterationProtocol.cpp
@@ -32,7 +32,7 @@ void TransliterationProtocol::initialize()
pd.cbSize = sizeof(pd);
pd.szName = MODULE_NAME;
pd.type = PROTOTYPE_TRANSLATION;
- CallService(MS_PROTO_REGISTERMODULE, 0, reinterpret_cast<LPARAM>(&pd));
+ Proto_RegisterModule(&pd);
CreateProtoServiceFunction(MODULE_NAME, PSS_MESSAGE, sendMessage);
}
@@ -62,14 +62,14 @@ INT_PTR TransliterationProtocol::sendMessage(WPARAM wParam, LPARAM lParam)
{
CCSDATA *ccs = reinterpret_cast<CCSDATA*>(lParam);
if ( !MirandaContact::bIsActive(ccs->hContact))
- return CallService(MS_PROTO_CHAINSEND, wParam, lParam);
+ return Proto_ChainSend(wParam, ccs);
LPARAM oldlParam = ccs->lParam;
bool msgProcessed = true;
TranslateMessageUTF(wParam, lParam);
- int ret = CallService(MS_PROTO_CHAINSEND, wParam, lParam);
+ int ret = Proto_ChainSend(wParam, ccs);
if (msgProcessed) {
mir_free(reinterpret_cast<void*>(ccs->lParam));
diff --git a/plugins/CyrTranslit/src/stdafx.h b/plugins/CyrTranslit/src/stdafx.h
index 40f1692b52..ff94bd9471 100644
--- a/plugins/CyrTranslit/src/stdafx.h
+++ b/plugins/CyrTranslit/src/stdafx.h
@@ -22,7 +22,7 @@
#include <newpluginapi.h>
#include <m_database.h>
-#include <m_protomod.h>
+#include <m_protosvc.h>
#include <m_clist.h>
#include <m_langpack.h>