summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2018-10-01 15:36:26 +0300
committerGeorge Hazan <ghazan@miranda.im>2018-10-01 15:36:26 +0300
commite808179197e8875f3faa85ad8f0d1e75d756716f (patch)
tree6ca118531ebf3d2d85a0123171298e74b2decbd6 /include
parent966214ad3db583c8e8cbfbae4281705f73df4429 (diff)
centralized system of processing message ids. also fixes #1375
Diffstat (limited to 'include')
-rw-r--r--include/m_protosvc.h11
1 files changed, 7 insertions, 4 deletions
diff --git a/include/m_protosvc.h b/include/m_protosvc.h
index 2cfe9c4b21..4d5b0c5de4 100644
--- a/include/m_protosvc.h
+++ b/include/m_protosvc.h
@@ -149,6 +149,7 @@ static __inline unsigned long Proto_Status2Flag(int status)
#define PF4_GROUPCHATFILES 0x00000800 // protocol supports sending files to group chats
#define PF4_SINGLEFILEONLY 0x00001000 // protocol supports sending files one by one only
#define PF4_READNOTIFY 0x00002000 // protocol supports receiving notify of message reading
+#define PF4_SERVERMSGID 0x00004000 // protocol uses server message ids
#define PFLAG_UNIQUEIDTEXT 100 // returns a static buffer of text describing the unique field by which this protocol identifies users (already translated), or NULL
#define PFLAG_MAXCONTACTSPERPACKET 200 // returns the maximum number of contacts which can be sent in a single PSS_CONTACTS, lParam = (LPARAM)hContact.
@@ -770,10 +771,12 @@ struct PROTOFILERESUME
struct PROTORECVEVENT
{
- DWORD flags;
- DWORD timestamp; // unix time
- char *szMessage; // message body in utf8
- LPARAM lParam; // extra space for the network level protocol module
+ DWORD flags;
+ DWORD timestamp; // unix time
+ char *szMessage; // message body in utf8
+ LPARAM lParam; // extra space for the network level protocol module
+ const char *szMsgId; // server message id, optional, should be NULL otherwise
+ // ignored for protocols without PF4_SERVERMSGID in GetCaps()
};
#define PREF_CREATEREAD 1 // create the database event with the 'read' flag set