diff options
author | George Hazan <ghazan@miranda.im> | 2018-04-07 19:46:44 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2018-04-07 19:47:27 +0300 |
commit | 26a653ecae7edbeefb7966e08714e152c73b78eb (patch) | |
tree | e4f73b393a061ae296a36f802796f0fcc86cf573 /include | |
parent | 5565e5b9839eea8a57e9c46f87e611dd546c8b46 (diff) |
Proto_GetStatus() - fast method that returns a cached protocol status
Diffstat (limited to 'include')
-rw-r--r-- | include/m_protocols.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/m_protocols.h b/include/m_protocols.h index 884ca2c5c3..ee81f41ef8 100644 --- a/include/m_protocols.h +++ b/include/m_protocols.h @@ -314,6 +314,11 @@ EXTERN_C MIR_APP_DLL(int) Proto_GetAverageStatus(int *pAccountNumber = nullptr); EXTERN_C MIR_APP_DLL(PROTOACCOUNT*) Proto_GetAccount(const char *pszModuleName);
/////////////////////////////////////////////////////////////////////////////////////////
+// returns last status reported by a protocol
+
+EXTERN_C MIR_APP_DLL(int) Proto_GetStatus(const char *pszModuleName);
+
+/////////////////////////////////////////////////////////////////////////////////////////
// this event is fired when the accounts list gets changed
// wParam = event type (1 - added, 2 - changed, 3 - deleted, 4 - upgraded, 5 - enabled/disabled)
// lParam = (LPARAM)(PROTOACCOUNT*) - account being changed
|