summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/m_core.h1
-rw-r--r--include/m_protomod.h14
2 files changed, 1 insertions, 14 deletions
diff --git a/include/m_core.h b/include/m_core.h
index efcde5e1c2..c70a79a7ab 100644
--- a/include/m_core.h
+++ b/include/m_core.h
@@ -104,6 +104,7 @@ MIR_CORE_DLL(HANDLE) CreateServiceFunction(const char *name, MIRANDASERVICE ser
MIR_CORE_DLL(HANDLE) CreateServiceFunctionParam(const char *name, MIRANDASERVICEPARAM serviceProc, LPARAM lParam);
MIR_CORE_DLL(HANDLE) CreateServiceFunctionObj(const char *name, MIRANDASERVICEOBJ serviceProc, void* object);
MIR_CORE_DLL(HANDLE) CreateServiceFunctionObjParam(const char *name, MIRANDASERVICEOBJPARAM serviceProc, void* object, LPARAM lParam);
+MIR_CORE_DLL(HANDLE) CreateProtoServiceFunction(const char *szModule, const char *szService, MIRANDASERVICE serviceProc);
MIR_CORE_DLL(int) DestroyServiceFunction(HANDLE hService);
MIR_CORE_DLL(int) ServiceExists(const char *name);
diff --git a/include/m_protomod.h b/include/m_protomod.h
index fcff1ac654..2a4abf55d6 100644
--- a/include/m_protomod.h
+++ b/include/m_protomod.h
@@ -61,20 +61,6 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
//returns 0 on success, nonzero on failure
#define MS_PROTO_REMOVEFROMCONTACT "Proto/RemoveFromContact"
-//Create a protocol service
-//Protocol services are called with wParam and lParam as standard if they are
-//to be called with CallProtoServiceInt(NULL,) (as PS_ services are)
-//If they are called with CallContactService() (PSS_ and PSR_ services) then
-//they are called with lParam = (CCSDATA*)&ccs and wParam an opaque internal
-//reference that should be passed unchanged to MS_PROTO_CHAIN*.
-__forceinline HANDLE CreateProtoServiceFunction(const char *szModule, const char *szService, MIRANDASERVICE serviceProc)
-{
- char str[MAXMODULELABELLENGTH];
- mir_snprintf(str, sizeof(str), "%s%s", szModule, szService);
- str[MAXMODULELABELLENGTH-1] = 0;
- return CreateServiceFunction(str, serviceProc);
-}
-
//Call the next service in the chain for this send operation
//wParam = wParam
//lParam = lParam