diff options
author | George Hazan <george.hazan@gmail.com> | 2015-05-31 22:09:02 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2015-05-31 22:09:02 +0000 |
commit | b1db27c61150e1313a537d1de009ec26bae414ab (patch) | |
tree | ef00c016871fd39258f8d540633b080030673c99 /plugins/WebView | |
parent | e48bae4c6ccf1003916b3960f30816ce8aaa955b (diff) |
- 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
Diffstat (limited to 'plugins/WebView')
-rw-r--r-- | plugins/WebView/src/main.cpp | 41 |
1 files changed, 8 insertions, 33 deletions
diff --git a/plugins/WebView/src/main.cpp b/plugins/WebView/src/main.cpp index 1495f107ff..1e3ff4bd07 100644 --- a/plugins/WebView/src/main.cpp +++ b/plugins/WebView/src/main.cpp @@ -48,39 +48,14 @@ PLUGININFOEX pluginInfoEx = { /*****************************************************************************/
void InitServices()
{
- char SvcFunc[100];
-
- mir_strcpy(SvcFunc, MODULENAME);
- mir_strcat(SvcFunc, PS_GETCAPS);
- CreateServiceFunction(SvcFunc, GetCaps);
-
- mir_strcpy(SvcFunc, MODULENAME);
- mir_strcat(SvcFunc, PS_GETNAME);
- CreateServiceFunction(SvcFunc, GetName);
-
- mir_strcpy(SvcFunc, MODULENAME);
- mir_strcat(SvcFunc, PS_LOADICON);
- CreateServiceFunction(SvcFunc, BPLoadIcon);
-
- mir_strcpy(SvcFunc, MODULENAME);
- mir_strcat(SvcFunc, PS_SETSTATUS);
- CreateServiceFunction(SvcFunc, SetStatus);
-
- mir_strcpy(SvcFunc, MODULENAME);
- mir_strcat(SvcFunc, PS_GETSTATUS);
- CreateServiceFunction(SvcFunc, GetStatus);
- //
- mir_strcpy(SvcFunc, MODULENAME);
- mir_strcat(SvcFunc, PS_BASICSEARCH);
- CreateServiceFunction(SvcFunc, BasicSearch);
-
- mir_strcpy(SvcFunc, MODULENAME);
- mir_strcat(SvcFunc, PS_ADDTOLIST);
- CreateServiceFunction(SvcFunc, AddToList);
-
- mir_strcpy(SvcFunc, MODULENAME);
- mir_strcat(SvcFunc, PSS_GETINFO);
- CreateServiceFunction(SvcFunc, GetInfo);
+ CreateProtoServiceFunction(MODULENAME, PS_GETCAPS, GetCaps);
+ CreateProtoServiceFunction(MODULENAME, PS_GETNAME, GetName);
+ CreateProtoServiceFunction(MODULENAME, PS_LOADICON, BPLoadIcon);
+ CreateProtoServiceFunction(MODULENAME, PS_SETSTATUS, SetStatus);
+ CreateProtoServiceFunction(MODULENAME, PS_GETSTATUS, GetStatus);
+ CreateProtoServiceFunction(MODULENAME, PS_BASICSEARCH, BasicSearch);
+ CreateProtoServiceFunction(MODULENAME, PS_ADDTOLIST, AddToList);
+ CreateProtoServiceFunction(MODULENAME, PSS_GETINFO, GetInfo);
}
/*****************************************************************************/
|