diff options
author | Kirill Volinsky <mataes2007@gmail.com> | 2012-09-26 06:27:36 +0000 |
---|---|---|
committer | Kirill Volinsky <mataes2007@gmail.com> | 2012-09-26 06:27:36 +0000 |
commit | 94c575dc25f045c7083f3aa1cfdbdfac7e08bd00 (patch) | |
tree | e9762c657ede50cf7cb94a4bebc18d8abfda53cf /protocols/Skype/src/skype.cpp | |
parent | 37411234c53dc0e6beb6a92ceddb4aaf128e41d8 (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/src/skype.cpp')
-rw-r--r-- | protocols/Skype/src/skype.cpp | 73 |
1 files changed, 73 insertions, 0 deletions
diff --git a/protocols/Skype/src/skype.cpp b/protocols/Skype/src/skype.cpp new file mode 100644 index 0000000000..47e9ea0c5e --- /dev/null +++ b/protocols/Skype/src/skype.cpp @@ -0,0 +1,73 @@ +#include "skype.h"
+
+int hLangpack;
+HINSTANCE g_hInstance;
+
+PLUGININFOEX pluginInfo =
+{
+ sizeof(PLUGININFOEX),
+ __PLUGIN_NAME,
+ PLUGIN_MAKE_VERSION(__MAJOR_VERSION, __MINOR_VERSION, __RELEASE_NUM, __BUILD_NUM),
+ __DESCRIPTION,
+ __AUTHOR,
+ __AUTHOREMAIL,
+ __COPYRIGHT,
+ __AUTHORWEB,
+ 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 |