diff options
| author | George Hazan <ghazan@miranda.im> | 2021-05-10 15:10:00 +0300 |
|---|---|---|
| committer | George Hazan <ghazan@miranda.im> | 2021-05-10 19:46:31 +0300 |
| commit | 58580c677c86d54c83b351bebab33f488350107f (patch) | |
| tree | 871ae2d7afd6de09312ec0940a9c894a2dcb7f93 /include | |
| parent | 50c2fbbb1f7f6f233c980d7e4a52151fb72820f7 (diff) | |
hidden function Proto_GetAccount exported as Proto_GetContactAccount
(cherry picked from commit 922d0cccd71e54d1ad5af0a3f59ac54de065eb6f)
Diffstat (limited to 'include')
| -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);
|
