summaryrefslogtreecommitdiff
path: root/protocols/MSN/src/msn_global.h
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2013-01-29 17:05:30 +0000
committerGeorge Hazan <george.hazan@gmail.com>2013-01-29 17:05:30 +0000
commit136628cf7ac5148ebdd8c8ecd25757c594d1bca8 (patch)
tree0de8058fe6fcc48ccbd3ae8b49046626309c8fa6 /protocols/MSN/src/msn_global.h
parentaa89e9fdf2e61a855116d9c13e17879dbdad7b6f (diff)
MSN HTTP avatars, part I
git-svn-id: http://svn.miranda-ng.org/main/trunk@3341 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/MSN/src/msn_global.h')
-rw-r--r--protocols/MSN/src/msn_global.h19
1 files changed, 18 insertions, 1 deletions
diff --git a/protocols/MSN/src/msn_global.h b/protocols/MSN/src/msn_global.h
index 5b4bf32aef..d3349f219f 100644
--- a/protocols/MSN/src/msn_global.h
+++ b/protocols/MSN/src/msn_global.h
@@ -173,7 +173,7 @@ void UrlEncode(const char* src, char* dest, size_t cbDest);
void __cdecl MSN_ConnectionProc(HANDLE hNewConnection, DWORD dwRemoteIP, void*);
-char* MSN_GetAvatarHash(char* szContext);
+char* MSN_GetAvatarHash(char* szContext, char** pszUrl = NULL);
int MSN_GetImageFormat(void* buf, const TCHAR** ext);
int MSN_GetImageFormat(const TCHAR* file);
bool MSN_MsgWndExist(HANDLE hContact);
@@ -602,6 +602,23 @@ struct MsgQueueEntry
int flags;
};
+/////////////////////////////////////////////////////////////////////////////////////////
+// Avatars' queue
+
+struct AvatarQueueEntry
+{
+ HANDLE hContact;
+ char* pszUrl;
+
+ __forceinline AvatarQueueEntry(HANDLE _contact, LPCSTR _url) :
+ hContact(_contact),
+ pszUrl( mir_strdup(_url))
+ {}
+
+ __forceinline ~AvatarQueueEntry()
+ { mir_free(pszUrl);
+ }
+};
/////////////////////////////////////////////////////////////////////////////////////////
// User lists