summaryrefslogtreecommitdiff
path: root/protocols/Skype/skype.cpp
diff options
context:
space:
mode:
authorKirill Volinsky <mataes2007@gmail.com>2012-09-26 06:27:36 +0000
committerKirill Volinsky <mataes2007@gmail.com>2012-09-26 06:27:36 +0000
commit94c575dc25f045c7083f3aa1cfdbdfac7e08bd00 (patch)
treee9762c657ede50cf7cb94a4bebc18d8abfda53cf /protocols/Skype/skype.cpp
parent37411234c53dc0e6beb6a92ceddb4aaf128e41d8 (diff)
default folders structure
git-svn-id: http://svn.miranda-ng.org/main/trunk@1659 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/Skype/skype.cpp')
-rw-r--r--protocols/Skype/skype.cpp75
1 files changed, 0 insertions, 75 deletions
diff --git a/protocols/Skype/skype.cpp b/protocols/Skype/skype.cpp
deleted file mode 100644
index 098ea96697..0000000000
--- a/protocols/Skype/skype.cpp
+++ /dev/null
@@ -1,75 +0,0 @@
-#include "skype.h"
-#include "version.h"
-#include "skype_proto.h"
-
-int hLangpack;
-HINSTANCE g_hInstance;
-
-PLUGININFOEX pluginInfo =
-{
- sizeof(PLUGININFOEX),
- "Skype Plugin",
- __VERSION_DWORD,
- "Provides basic support for Skype protocol.",
- "unsane",
- "",
- "© 2012 unsane",
- "http://miranda-ng.org/",
- UNICODE_AWARE,
- // {9C448C61-FC3F-42F9-B9F0-4A30E1CF8671}
- { 0x9c448c61, 0xfc3f, 0x42f9, { 0xb9, 0xf0, 0x4a, 0x30, 0xe1, 0xcf, 0x86, 0x71 } }
-};
-
-static int compare_protos(const CSkypeProto *p1, const CSkypeProto *p2)
-{
- return _tcscmp(p1->m_tszUserName, p2->m_tszUserName);
-}
-
-OBJLIST<CSkypeProto> g_Instances(1, compare_protos);
-
-DWORD WINAPI DllMain(HINSTANCE hInstance, DWORD, LPVOID)
-{
- g_hInstance = hInstance;
- return TRUE;
-}
-
-extern "C" __declspec(dllexport) PLUGININFOEX* MirandaPluginInfoEx(DWORD mirandaVersion)
-{
- return &pluginInfo;
-}
-
-extern "C" __declspec(dllexport) const MUUID MirandaInterfaces[] = {MIID_PROTOCOL, MIID_LAST};
-
-static CSkypeProto* SkypeProtoInit(const char* pszProtoName, const TCHAR* tszUserName)
-{
- //CSkypeProto *ppro = new CSkypeProto(pszProtoName, tszUserName);
- //g_Instances.insert(ppro);
- //return ppro;
- return 0;
-}
-
-static int SkypeProtoUninit(CSkypeProto* ppro)
-{
- g_Instances.remove(ppro);
- delete ppro;
- return 0;
-}
-
-extern "C" int __declspec(dllexport) Load(void)
-{
- //mir_getLP(&pluginInfo);
-
- PROTOCOLDESCRIPTOR pd = { sizeof(pd) };
- pd.szName = "Skype";
- pd.type = PROTOTYPE_PROTOCOL;
- pd.fnInit = (pfnInitProto)SkypeProtoInit;
- pd.fnUninit = (pfnUninitProto)SkypeProtoUninit;
- CallService(MS_PROTO_REGISTERMODULE, 0, reinterpret_cast<LPARAM>(&pd));
-
- return 0;
-}
-
-extern "C" int __declspec(dllexport) Unload(void)
-{
- return 0;
-} \ No newline at end of file