From b1db27c61150e1313a537d1de009ec26bae414ab Mon Sep 17 00:00:00 2001 From: George Hazan Date: Sun, 31 May 2015 22:09:02 +0000 Subject: - CreateProtoServiceFunction() moved into mir_core.dll instead of inlining - all old protocols moved on it; - code cleaning; git-svn-id: http://svn.miranda-ng.org/main/trunk@13953 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/LotusNotify/src/LotusNotify.cpp | 16 +++++----------- 1 file changed, 5 insertions(+), 11 deletions(-) (limited to 'plugins/LotusNotify/src') diff --git a/plugins/LotusNotify/src/LotusNotify.cpp b/plugins/LotusNotify/src/LotusNotify.cpp index 4faf246e76..a83b42f0a5 100644 --- a/plugins/LotusNotify/src/LotusNotify.cpp +++ b/plugins/LotusNotify/src/LotusNotify.cpp @@ -1638,17 +1638,11 @@ extern "C" int __declspec(dllexport) Load(void) db_set_w(hContact, PLUGINNAME, "status", ID_STATUS_OFFLINE); } - char service[100] = {""}; - mir_snprintf(service, SIZEOF(service), "%s%s", PLUGINNAME, PS_GETCAPS); - CreateServiceFunction(service, GetCaps); - mir_snprintf(service, SIZEOF(service), "%s%s", PLUGINNAME, PS_GETNAME); - CreateServiceFunction(service, GetName); - mir_snprintf(service, SIZEOF(service), "%s%s", PLUGINNAME, PS_LOADICON); - CreateServiceFunction(service, TMLoadIcon); - mir_snprintf(service, SIZEOF(service), "%s%s", PLUGINNAME, PS_SETSTATUS); - CreateServiceFunction(service, SetStatus); - mir_snprintf(service, SIZEOF(service), "%s%s", PLUGINNAME, PS_GETSTATUS); - CreateServiceFunction(service, GetStatus); + CreateProtoServiceFunction(PLUGINNAME, PS_GETCAPS, GetCaps); + CreateProtoServiceFunction(PLUGINNAME, PS_GETNAME, GetName); + CreateProtoServiceFunction(PLUGINNAME, PS_LOADICON, TMLoadIcon); + CreateProtoServiceFunction(PLUGINNAME, PS_SETSTATUS, SetStatus); + CreateProtoServiceFunction(PLUGINNAME, PS_GETSTATUS, GetStatus); LoadSettings(); //read from db to variables -- cgit v1.2.3