summaryrefslogtreecommitdiff
path: root/include/m_chat.h
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2017-09-19 14:12:58 +0300
committerGeorge Hazan <ghazan@miranda.im>2017-09-19 14:13:06 +0300
commite254312f9a660c83081ce2062ab14ba3c3614089 (patch)
tree324dff386c4b394ed4dc0f9b912ce3332bd94e84 /include/m_chat.h
parent54ad7c456325b4c7fd639ef2d7cca7d5aef81c05 (diff)
useless structure GCDEST finally removed
Diffstat (limited to 'include/m_chat.h')
-rw-r--r--include/m_chat.h18
1 files changed, 8 insertions, 10 deletions
diff --git a/include/m_chat.h b/include/m_chat.h
index 6fe8aad0ca..9107983bb3 100644
--- a/include/m_chat.h
+++ b/include/m_chat.h
@@ -349,14 +349,6 @@ EXTERN_C MIR_APP_DLL(struct GCSessionInfoBase*) Chat_NewSession(
GC_EVENT_PART | GC_EVENT_TOPIC | GC_EVENT_ADDSTATUS | GC_EVENT_INFORMATION | GC_EVENT_QUIT | \
GC_EVENT_KICK | GC_EVENT_NOTICE)
-// The GCDEST structure. It is passed to Chat inside GCEVENT.
-struct GCDEST
-{
- LPCSTR pszModule; // Name of the protocol (same as you registered with)
- LPCTSTR ptszID; // Unique identifier of the session, or NULL to broadcast to all sessions as specified above
- int iType; // Use GC_EVENT_* as defined above. Only one event per service call.
-};
-
// The GCEVENT structure
#define GCEF_ADDTOLOG 0x0001 // force adding to log
@@ -365,7 +357,10 @@ struct GCDEST
struct GCEVENT
{
- GCDEST *pDest; // pointer to a GCDEST structure which specifies the session to receive the event
+ LPCSTR pszModule; // Name of the protocol (same as you registered with)
+ LPCTSTR ptszID; // Unique identifier of the session, or NULL to broadcast to all sessions as specified above
+ int iType; // Use GC_EVENT_* as defined above. Only one event per service call.
+
LPCTSTR ptszText; //
LPCTSTR ptszNick; //
LPCTSTR ptszUID; //
@@ -487,7 +482,10 @@ EXTERN_C MIR_APP_DLL(int) Chat_GetInfo(GC_INFO*);
struct GCHOOK
{
- GCDEST *pDest; // pointer to a GCDEST structure which specifies from which session the hook was triggered
+ LPCSTR pszModule; // Name of the protocol (same as you registered with)
+ LPCTSTR ptszID; // Unique identifier of the session, or NULL to broadcast to all sessions as specified above
+ int iType; // Use GC_EVENT_* as defined above. Only one event per service call.
+
LPTSTR ptszText; // usage depends on type of event
LPTSTR ptszUID; // unique identifier, usage depends on type of event
LPTSTR ptszNick; // user nick, as displayed in a nicklist