1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
#include "skype_proto.h"
void CSkypeProto::Log(const char* fmt, ...)
{
va_list va;
char msg[1024];
va_start(va, fmt);
mir_vsnprintf(msg, sizeof(msg), fmt, va);
va_end(va);
CallService(MS_NETLIB_LOG, (WPARAM)this->hNetlibUser, (LPARAM)msg);
}
void CSkypeProto::HookEvent(const char* szEvent, SkypeEventFunc handler)
{
HookEventObj(szEvent, (MIRANDAHOOKOBJ)*( void**)&handler, this);
}
void CSkypeProto::CreateService(const char* szService, SkypeServiceFunc serviceProc)
{
char temp[MAX_PATH*2];
mir_snprintf(temp, sizeof(temp), "%s%s", this->m_szModuleName, szService);
CreateServiceFunctionObj(temp, (MIRANDASERVICEOBJ)*(void**)&serviceProc, this);
}
|