From 2ae2f9c86258ee5dc89d42492c591c19acbfa4b5 Mon Sep 17 00:00:00 2001 From: Alexander Lantsev Date: Wed, 3 Oct 2012 19:00:16 +0000 Subject: - skype proto instance init funcs moved to skype_instances.cpp - some minor fixes git-svn-id: http://svn.miranda-ng.org/main/trunk@1776 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- protocols/Skype/src/skype_instances.cpp | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 protocols/Skype/src/skype_instances.cpp (limited to 'protocols/Skype/src/skype_instances.cpp') diff --git a/protocols/Skype/src/skype_instances.cpp b/protocols/Skype/src/skype_instances.cpp new file mode 100644 index 0000000000..7a8527dfea --- /dev/null +++ b/protocols/Skype/src/skype_instances.cpp @@ -0,0 +1,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::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; +} \ No newline at end of file -- cgit v1.2.3