summaryrefslogtreecommitdiff
path: root/include/m_protocols.h
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2018-04-04 20:25:20 +0300
committerGeorge Hazan <ghazan@miranda.im>2018-04-04 20:25:28 +0300
commit5da898f7cca8599ecff44b3fa10eafb753308a4d (patch)
tree24d127c995e9eec88e48399d1f7ff8ccddfd32a6 /include/m_protocols.h
parent32d60b8e9492f6bbaaa00cc36632a8d195c9a1a3 (diff)
- static function CLIST_INTERFACE::pfnGetAverageMode exported as Proto_GetAverageStatus
- Proto_ActivateAccount is not exported anymore due to the lack of need
Diffstat (limited to 'include/m_protocols.h')
-rw-r--r--include/m_protocols.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/include/m_protocols.h b/include/m_protocols.h
index 3aaf125906..cc1e8fe0e0 100644
--- a/include/m_protocols.h
+++ b/include/m_protocols.h
@@ -300,10 +300,10 @@ MIR_APP_DLL(LIST<PROTOACCOUNT>&) Accounts(void);
EXTERN_C MIR_APP_DLL(PROTOACCOUNT*) Proto_CreateAccount(const char *pszInternal, const char *pszBaseProto, const wchar_t *ptszAccountName);
/////////////////////////////////////////////////////////////////////////////////////////
-// constructs the appropriate PROTOACCOUNT::ppro member if needed
-// returns true if succeeded
+// calculates the average protocol status among all visible & active accounts
+// returns the common status or -1 if statuses differ
-EXTERN_C MIR_APP_DLL(bool) Proto_ActivateAccount(PROTOACCOUNT *pAccount);
+EXTERN_C MIR_APP_DLL(int) Proto_GetAverageStatus(int *pAccountNumber = nullptr);
/////////////////////////////////////////////////////////////////////////////////////////
// retrieves an account's interface by its physical name (database module)