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/ConnectionNotify | |
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/ConnectionNotify')
-rw-r--r-- | plugins/ConnectionNotify/src/ConnectionNotify.cpp | 16 |
1 files changed, 5 insertions, 11 deletions
diff --git a/plugins/ConnectionNotify/src/ConnectionNotify.cpp b/plugins/ConnectionNotify/src/ConnectionNotify.cpp index 387df80cda..4f2f4b5afc 100644 --- a/plugins/ConnectionNotify/src/ConnectionNotify.cpp +++ b/plugins/ConnectionNotify/src/ConnectionNotify.cpp @@ -887,17 +887,11 @@ extern "C" int __declspec(dllexport) Load(void) for (MCONTACT hContact = db_find_first(PLUGINNAME); hContact != NULL; hContact = db_find_next(hContact, PLUGINNAME))
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);
SkinAddNewSoundEx(PLUGINNAME_NEWSOUND, PLUGINNAME, LPGEN("New Connection Notification"));
hOptInit = HookEvent(ME_OPT_INITIALISE, ConnectionNotifyOptInit);//register service to hook option call
|