From 26a653ecae7edbeefb7966e08714e152c73b78eb Mon Sep 17 00:00:00 2001 From: George Hazan Date: Sat, 7 Apr 2018 19:46:44 +0300 Subject: Proto_GetStatus() - fast method that returns a cached protocol status --- include/m_protocols.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'include') 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 @@ -313,6 +313,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) -- cgit v1.2.3