diff options
author | George Hazan <george.hazan@gmail.com> | 2015-03-28 13:35:02 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2015-03-28 13:35:02 +0000 |
commit | 1ab65d264fee46914571415551ed78cde14315a6 (patch) | |
tree | 670ff6fce506f8dd4c52f76e68aebefd0176b862 /protocols/JabberG/src/jabber.h | |
parent | 7bb399de4c4afa30fe016d25260a105448476374 (diff) |
- unused code removed;
- dynamic memory allocation for JabberSha1() replaced with static
git-svn-id: http://svn.miranda-ng.org/main/trunk@12535 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/JabberG/src/jabber.h')
-rw-r--r-- | protocols/JabberG/src/jabber.h | 19 |
1 files changed, 9 insertions, 10 deletions
diff --git a/protocols/JabberG/src/jabber.h b/protocols/JabberG/src/jabber.h index f16f4b60aa..2462fbaad6 100644 --- a/protocols/JabberG/src/jabber.h +++ b/protocols/JabberG/src/jabber.h @@ -738,22 +738,21 @@ struct TStringPairs TStringPairsElem* elems;
};
+typedef char JabberShaStrBuf[2*MIR_SHA1_HASH_SIZE + 1];
+
TCHAR* __stdcall JabberNickFromJID(const TCHAR *jid);
TCHAR* JabberPrepareJid(LPCTSTR jid);
-char* __stdcall JabberUrlDecode(char* str);
-void __stdcall JabberUrlDecodeW(WCHAR* str);
-char* __stdcall JabberUrlEncode(const char* str);
-char* __stdcall JabberSha1(char* str);
+void __stdcall JabberUrlDecodeW(WCHAR *str);
+char* __stdcall JabberSha1(const char *str, JabberShaStrBuf buf);
TCHAR* __stdcall JabberStrFixLines(const TCHAR *str);
-char* __stdcall JabberUnixToDos(const char* str);
-WCHAR* __stdcall JabberUnixToDosW(const WCHAR* str);
-void __stdcall JabberHttpUrlDecode(TCHAR* str);
+char* __stdcall JabberUnixToDos(const char *str);
+WCHAR* __stdcall JabberUnixToDosW(const WCHAR *str);
+void __stdcall JabberHttpUrlDecode(TCHAR *str);
int __stdcall JabberCombineStatus(int status1, int status2);
TCHAR* __stdcall JabberErrorStr(int errorCode);
-TCHAR* __stdcall JabberErrorMsg(HXML errorNode, int* errorCode = NULL);
-void __stdcall JabberUtfToTchar(const char* str, size_t cbLen, LPTSTR& dest);
+TCHAR* __stdcall JabberErrorMsg(HXML errorNode, int *errorCode = NULL);
time_t __stdcall JabberIsoToUnixTime(const TCHAR *stamp);
-TCHAR* __stdcall JabberStripJid(const TCHAR *jid, TCHAR* dest, size_t destLen);
+TCHAR* __stdcall JabberStripJid(const TCHAR *jid, TCHAR *dest, size_t destLen);
int __stdcall JabberGetPacketID(HXML n);
TCHAR* __stdcall JabberId2string(int id);
|