diff options
author | George Hazan <george.hazan@gmail.com> | 2013-01-29 17:05:30 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2013-01-29 17:05:30 +0000 |
commit | 136628cf7ac5148ebdd8c8ecd25757c594d1bca8 (patch) | |
tree | 0de8058fe6fcc48ccbd3ae8b49046626309c8fa6 /protocols/MSN/src/msn_global.h | |
parent | aa89e9fdf2e61a855116d9c13e17879dbdad7b6f (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.h | 19 |
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
|