blob: be141b3e7535952f848830aa73a7864b1b57cd7f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
#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::CreateProtoService(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);
}
|