From 4ad5767f652e0ffd3ebf7df8d8f62a682277faa1 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Sat, 20 Jul 2013 18:37:03 +0000 Subject: - numerous fixes for ineffective xmlGetText() calls; - common picture type detection code extracted to the separate function; - code cleanup git-svn-id: http://svn.miranda-ng.org/main/trunk@5431 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- protocols/JabberG/src/jabber.h | 32 +++++++++++++++++--------------- 1 file changed, 17 insertions(+), 15 deletions(-) (limited to 'protocols/JabberG/src/jabber.h') diff --git a/protocols/JabberG/src/jabber.h b/protocols/JabberG/src/jabber.h index 3ff45594ca..b5fac3160b 100644 --- a/protocols/JabberG/src/jabber.h +++ b/protocols/JabberG/src/jabber.h @@ -389,11 +389,11 @@ struct ThreadData struct JABBER_MODEMSGS { - TCHAR* szOnline; - TCHAR* szAway; - TCHAR* szNa; - TCHAR* szDnd; - TCHAR* szFreechat; + TCHAR *szOnline; + TCHAR *szAway; + TCHAR *szNa; + TCHAR *szDnd; + TCHAR *szFreechat; }; struct JABBER_REG_ACCOUNT @@ -424,10 +424,10 @@ struct filetransfer JABBER_FT_TYPE type; JABBER_SOCKET s; JABBER_FILE_STATE state; - TCHAR* jid; + TCHAR *jid; int fileId; - TCHAR* iqId; - TCHAR* sid; + TCHAR *iqId; + TCHAR *sid; int bCompleted; HANDLE hWaitEvent; @@ -439,7 +439,7 @@ struct filetransfer // Used by file receiving only char* httpHostName; WORD httpPort; - TCHAR* httpPath; + TCHAR *httpPath; unsigned __int64 dwExpectedRecvFileSize; // Used by file sending only @@ -486,11 +486,11 @@ struct JABBER_MUC_JIDLIST_INFO ~JABBER_MUC_JIDLIST_INFO(); JABBER_MUC_JIDLIST_TYPE type; - TCHAR* roomJid; // filled-in by the WM_JABBER_REFRESH code + TCHAR *roomJid; // filled-in by the WM_JABBER_REFRESH code HXML iqNode; CJabberProto *ppro; - TCHAR* type2str(void) const; + TCHAR *type2str(void) const; }; typedef void (CJabberProto::*JABBER_FORM_SUBMIT_FUNC)(HXML values, void *userdata); @@ -674,8 +674,8 @@ TCHAR* UnEscapeChatTags(TCHAR* str_in); struct CJabberAdhocStartupParams { - TCHAR* m_szJid; - TCHAR* m_szNode; + TCHAR *m_szJid; + TCHAR *m_szNode; CJabberProto* m_pProto; CJabberAdhocStartupParams(CJabberProto* proto, TCHAR* szJid, TCHAR* szNode = NULL) @@ -702,7 +702,7 @@ struct JabberAdHocData RECT frameRect; HXML AdHocNode; HXML CommandsNode; - TCHAR* ResponderJID; + TCHAR *ResponderJID; }; //---- jabber_util.cpp ------------------------------------------------------------------ @@ -744,9 +744,11 @@ char* __stdcall JabberBase64DecodeW(const WCHAR* buffer, int *resultLen) time_t __stdcall JabberIsoToUnixTime(const TCHAR *stamp); void __stdcall JabberStringAppend(char* *str, int *sizeAlloced, const char* fmt, ...); TCHAR* __stdcall JabberStripJid(const TCHAR *jid, TCHAR* dest, size_t destLen); -int __stdcall JabberGetPictureType(const char* buf); int __stdcall JabberGetPacketID(HXML n); +int __stdcall JabberGetPictureType(const char* buf); +LPCTSTR __stdcall JabberGetPictureType(HXML node, const char *picBuf); + TCHAR* time2str(time_t _time, TCHAR *buf, size_t bufLen); time_t str2time(const TCHAR*); -- cgit v1.2.3