summaryrefslogtreecommitdiff
path: root/protocols/Skype/src/skype_instances.cpp
blob: 7a8527dfead3ceba10055453be8b7d7f304aa34f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#include "skype_proto.h"

int CSkypeProto::SendBroadcast(int type, int result, HANDLE hProcess, LPARAM lParam)
{
	return this->SendBroadcast(NULL, type, result, hProcess, lParam);
}

LIST<CSkypeProto> CSkypeProto::instanceList(1, CSkypeProto::CompareProtos);

CSkypeProto* CSkypeProto::InitSkypeProto(const char* protoName, const wchar_t* userName)
{
	CSkypeProto *ppro = new CSkypeProto(protoName, userName);
	CSkypeProto::instanceList.insert(ppro);

	return ppro;
}

int CSkypeProto::UninitSkypeProto(CSkypeProto* ppro)
{
	CSkypeProto::instanceList.remove(ppro);
	delete ppro;

	return 0;
}