summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2024-01-24 14:30:28 +0300
committerGeorge Hazan <george.hazan@gmail.com>2024-01-24 14:30:28 +0300
commit660b4e02d4bef4f7ac953689ce00d727bf9bacbd (patch)
treebbf88aac1bfe8c47608a0d3c99971f7fae9218e0 /include
parent1de0331abb7082ebda12896cd52a509047ae5799 (diff)
PS_EMPTY_SRV_HISTORY introduced for removing server history for a contact
Diffstat (limited to 'include')
-rw-r--r--include/m_protosvc.h25
1 files changed, 16 insertions, 9 deletions
diff --git a/include/m_protosvc.h b/include/m_protosvc.h
index 5291a94759..a1f1a6a193 100644
--- a/include/m_protosvc.h
+++ b/include/m_protosvc.h
@@ -202,6 +202,15 @@ static __inline unsigned long Proto_Status2Flag(int status)
#define PS_LOADICON "/LoadIcon"
///////////////////////////////////////////////////////////////////////////////
+// Get the status mode that a protocol is currently in
+// wParam = lParam = 0
+// Returns the status mode
+// Non-network-level protocol modules do not have the concept of a status and
+// should leave this service unimplemented
+
+#define PS_GETSTATUS "/GetStatus"
+
+///////////////////////////////////////////////////////////////////////////////
// Change the protocol's status mode
// wParam = newMode, from ui/contactlist/statusmodes.h
// lParam = 0
@@ -259,15 +268,6 @@ static __inline unsigned long Proto_Status2Flag(int status)
#define PS_SETAWAYMSG "/SetAwayMsg"
///////////////////////////////////////////////////////////////////////////////
-// Get the status mode that a protocol is currently in
-// wParam = lParam = 0
-// Returns the status mode
-// Non-network-level protocol modules do not have the concept of a status and
-// should leave this service unimplemented
-
-#define PS_GETSTATUS "/GetStatus"
-
-///////////////////////////////////////////////////////////////////////////////
// Updates a contact's details from the server
// wParam = flags
// lParam = 0
@@ -581,6 +581,13 @@ struct PROTOFILERESUME
#define PS_MENU_LOADHISTORY "/LoadServerHistory"
///////////////////////////////////////////////////////////////////////////////
+// Empties the server history for a contact
+// wParam = hContact
+// lParam = 0
+
+#define PS_EMPTY_SRV_HISTORY "/EmptyServerHistory"
+
+///////////////////////////////////////////////////////////////////////////////
// SENDING SERVICES
// these should be called with ProtoChainSend()