summaryrefslogtreecommitdiff
path: root/include/m_srmm_int.h
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2021-03-29 17:52:32 +0300
committerGeorge Hazan <ghazan@miranda.im>2021-03-29 17:52:32 +0300
commit89a9193b6c6a8f87314634618b6893c8b62473aa (patch)
treea7624df37b12b878a4f525e3ad8fb8a3e051ddb4 /include/m_srmm_int.h
parenta376da4d967a5ed6501a9e4cd639b3ba7ab69a67 (diff)
Srmm_* internal functions strangely went to group chat API...
Diffstat (limited to 'include/m_srmm_int.h')
-rw-r--r--include/m_srmm_int.h18
1 files changed, 17 insertions, 1 deletions
diff --git a/include/m_srmm_int.h b/include/m_srmm_int.h
index d889f2f166..f52279445d 100644
--- a/include/m_srmm_int.h
+++ b/include/m_srmm_int.h
@@ -254,7 +254,7 @@ public:
__forceinline SESSION_INFO *getChat() const { return m_si; }
__forceinline CSrmmLogWindow *log() const { return m_pLog; }
- __inline void *operator new(size_t size) { return calloc(1, size); }
+ __inline void* operator new(size_t size) { return calloc(1, size); }
__inline void operator delete(void *p) { free(p); }
};
@@ -262,4 +262,20 @@ public:
class CMsgDialog : public CSrmmBaseDialog {};
#endif
+/////////////////////////////////////////////////////////////////////////////////////////
+// receives LOGSTREAMDATA* as the first parameter
+
+EXTERN_C MIR_APP_DLL(DWORD) CALLBACK Srmm_LogStreamCallback(DWORD_PTR dwCookie, LPBYTE pbBuff, LONG cb, LONG *pcb);
+
+/////////////////////////////////////////////////////////////////////////////////////////
+// sends a message to all SRMM windows
+
+EXTERN_C MIR_APP_DLL(void) Srmm_Broadcast(UINT, WPARAM, LPARAM);
+
+/////////////////////////////////////////////////////////////////////////////////////////
+// finds a SRMM window using hContact
+
+EXTERN_C MIR_APP_DLL(HWND) Srmm_FindWindow(MCONTACT hContact);
+EXTERN_C MIR_APP_DLL(CMsgDialog*) Srmm_FindDialog(MCONTACT hContact);
+
#endif // M_MESSAGE_H__