diff options
author | Alexander Lantsev <aunsane@gmail.com> | 2012-10-03 19:00:16 +0000 |
---|---|---|
committer | Alexander Lantsev <aunsane@gmail.com> | 2012-10-03 19:00:16 +0000 |
commit | 2ae2f9c86258ee5dc89d42492c591c19acbfa4b5 (patch) | |
tree | a5033ab378b6746258de381189cc2c9a472ce452 /protocols/Skype/src/skype_instances.cpp | |
parent | ead582e080416de21ece0b29109efa8bc4c043d9 (diff) |
- 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
Diffstat (limited to 'protocols/Skype/src/skype_instances.cpp')
-rw-r--r-- | protocols/Skype/src/skype_instances.cpp | 24 |
1 files changed, 24 insertions, 0 deletions
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> 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 |