summaryrefslogtreecommitdiff
path: root/protocols/Gadu-Gadu/userutils.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2012-07-23 08:36:06 +0000
committerGeorge Hazan <george.hazan@gmail.com>2012-07-23 08:36:06 +0000
commit704a24032eb7067ea526b37d03d8fe935331beea (patch)
tree62f4263f624a66ff4957aad148f324f7a40d6e6f /protocols/Gadu-Gadu/userutils.cpp
parentd828acae837c71992f6a5f9dd688ba7afd944e56 (diff)
fixed problems with services
git-svn-id: http://svn.miranda-ng.org/main/trunk@1109 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/Gadu-Gadu/userutils.cpp')
-rw-r--r--protocols/Gadu-Gadu/userutils.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/protocols/Gadu-Gadu/userutils.cpp b/protocols/Gadu-Gadu/userutils.cpp
index 583994f9fa..f9d241dee7 100644
--- a/protocols/Gadu-Gadu/userutils.cpp
+++ b/protocols/Gadu-Gadu/userutils.cpp
@@ -287,8 +287,15 @@ HANDLE GGPROTO::hookProtoEvent(const char* szEvent, GGEventFunc handler)
//////////////////////////////////////////////////////////
// Adds a new protocol specific service function
+void GGPROTO::createObjService(const char* szService, GGServiceFunc serviceProc)
+{
+ CreateServiceFunctionObj(szService, (MIRANDASERVICEOBJ)*( void** )&serviceProc, this);
+}
+
void GGPROTO::createProtoService(const char* szService, GGServiceFunc serviceProc)
{
+ char str[MAXMODULELABELLENGTH];
+ mir_snprintf(str, sizeof(str), "%s%s", m_szModuleName, szService);
CreateServiceFunctionObj(szService, (MIRANDASERVICEOBJ)*( void** )&serviceProc, this);
}