diff options
Diffstat (limited to 'include/m_protocols.h')
-rw-r--r-- | include/m_protocols.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/include/m_protocols.h b/include/m_protocols.h index fb7e530fca..3fc2049c7a 100644 --- a/include/m_protocols.h +++ b/include/m_protocols.h @@ -293,11 +293,17 @@ EXTERN_C MIR_APP_DLL(int) Proto_GetAverageStatus(int *pAccountNumber = nullptr); /////////////////////////////////////////////////////////////////////////////////////////
// retrieves an account's interface by its physical name (database module)
-// return value = PROTOACCOUNT* or NULL
+// returns PROTOACCOUNT* or NULL on error
EXTERN_C MIR_APP_DLL(PROTOACCOUNT*) Proto_GetAccount(const char *pszModuleName);
/////////////////////////////////////////////////////////////////////////////////////////
+// retrieves an account's interface associated with a contact's id
+// returns PROTOACCOUNT* or NULL on error
+
+EXTERN_C MIR_APP_DLL(PROTOACCOUNT*) Proto_GetContactAccount(MCONTACT hContact);
+
+/////////////////////////////////////////////////////////////////////////////////////////
// returns last status reported by a protocol
EXTERN_C MIR_APP_DLL(int) Proto_GetStatus(const char *pszModuleName);
|