diff options
author | Alexander Lantsev <aunsane@gmail.com> | 2013-04-23 19:47:32 +0000 |
---|---|---|
committer | Alexander Lantsev <aunsane@gmail.com> | 2013-04-23 19:47:32 +0000 |
commit | a2184eb00d2b02d48ec14e72615736281b9d5f81 (patch) | |
tree | 94ade86705cd11d5868d6b33675773642a05f199 /protocols/Skype/src/skype_utils.cpp | |
parent | bfeb3b2b1088278afb247d82085174aaf97e2cc6 (diff) |
- changed project file structure
- skype runtime initialization moved to plugin load func
- fixed password encription
- disabled message sync
git-svn-id: http://svn.miranda-ng.org/main/trunk@4518 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/Skype/src/skype_utils.cpp')
-rw-r--r-- | protocols/Skype/src/skype_utils.cpp | 29 |
1 files changed, 12 insertions, 17 deletions
diff --git a/protocols/Skype/src/skype_utils.cpp b/protocols/Skype/src/skype_utils.cpp index fe8141d83f..199e3b3c8f 100644 --- a/protocols/Skype/src/skype_utils.cpp +++ b/protocols/Skype/src/skype_utils.cpp @@ -281,14 +281,6 @@ LanguagesListEntry CSkypeProto::languages[] = {"Zulu", "zu"}
};
-
-void CSkypeProto::FakeAsync(void *param)
-{
- ::Sleep(100);
- ::CallService(MS_PROTO_BROADCASTACK, 0, (LPARAM)param);
- ::mir_free(param);
-}
-
int CSkypeProto::DetectAvatarFormatBuffer(const char *pBuffer)
{
if (!strncmp(pBuffer, "%PNG", 4))
@@ -399,20 +391,23 @@ void CSkypeProto::HookEvent(const char* szEvent, SkypeEventFunc handler) ::HookEventObj(szEvent, (MIRANDAHOOKOBJ)*( void**)&handler, this);
}
+void CSkypeProto::FakeAsync(void *param)
+{
+ ::Sleep(100);
+ ::CallService(MS_PROTO_BROADCASTACK, 0, (LPARAM)param);
+ ::mir_free(param);
+}
+
int CSkypeProto::SendBroadcast(HANDLE hContact, int type, int result, HANDLE hProcess, LPARAM lParam)
{
- /*ACKDATA ack = { sizeof(ACKDATA) };
- ack.szModule = this->m_szModuleName;
- ack.hContact = hContact;
- ack.type = type;
- ack.result = result;
- ack.hProcess = hProcess;
- ack.lParam = lParam;
-
- return ::CallService(MS_PROTO_BROADCASTACK, 0, (LPARAM)&ack);*/
return ::ProtoBroadcastAck(this->m_szModuleName, hContact, type, result, hProcess, lParam);
}
+int CSkypeProto::SendBroadcast(int type, int result, HANDLE hProcess, LPARAM lParam)
+{
+ return this->SendBroadcast(NULL, type, result, hProcess, lParam);
+}
+
DWORD CSkypeProto::SendBroadcastAsync(HANDLE hContact, int type, int hResult, HANDLE hProcess, LPARAM lParam, size_t paramSize)
{
ACKDATA *ack = (ACKDATA *)::mir_calloc(sizeof(ACKDATA) + paramSize);
|