diff options
author | George Hazan <george.hazan@gmail.com> | 2013-07-09 16:04:29 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2013-07-09 16:04:29 +0000 |
commit | d5d717d422bebddd058522931de4653389861a92 (patch) | |
tree | b476b62e7991e5a23a28e3029288df90a413dd4d /protocols/WhatsApp/src/utils.h | |
parent | e52132834312c3d956323650f4fa34e94b95325e (diff) |
also custom stubs removed
git-svn-id: http://svn.miranda-ng.org/main/trunk@5299 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/WhatsApp/src/utils.h')
-rw-r--r-- | protocols/WhatsApp/src/utils.h | 29 |
1 files changed, 0 insertions, 29 deletions
diff --git a/protocols/WhatsApp/src/utils.h b/protocols/WhatsApp/src/utils.h index b5430bcfa9..ece8dafaf3 100644 --- a/protocols/WhatsApp/src/utils.h +++ b/protocols/WhatsApp/src/utils.h @@ -3,35 +3,6 @@ #include "WhatsAPI++/IMutex.h"
-template<typename T>
-void CreateProtoService(const char *module,const char *service,
- int (__cdecl T::*serviceProc)(WPARAM,LPARAM),T *self)
-{
- char temp[MAX_PATH*2];
-
- mir_snprintf(temp,sizeof(temp),"%s%s",module,service);
- CreateServiceFunctionObj(temp,( MIRANDASERVICEOBJ )*(void**)&serviceProc, self );
-}
-
-template<typename T>
-void HookProtoEvent(const char* evt, int (__cdecl T::*eventProc)(WPARAM,LPARAM), T *self)
-{
- ::HookEventObj(evt,(MIRANDAHOOKOBJ)*(void**)&eventProc,self);
-}
-
-template<typename T>
-HANDLE ForkThreadEx(void (__cdecl T::*thread)(void*),T *self,void *data = 0)
-{
- return reinterpret_cast<HANDLE>( mir_forkthreadowner(
- (pThreadFuncOwner)*(void**)&thread,self,data,0));
-}
-
-template<typename T>
-void ForkThread(void (__cdecl T::*thread)(void*),T *self,void *data = 0)
-{
- CloseHandle(ForkThreadEx(thread,self,data));
-}
-
class ScopedLock
{
public:
|