From e254312f9a660c83081ce2062ab14ba3c3614089 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Tue, 19 Sep 2017 14:12:58 +0300 Subject: useless structure GCDEST finally removed --- include/m_chat.h | 18 ++++++++---------- 1 file changed, 8 insertions(+), 10 deletions(-) (limited to 'include') 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 -- cgit v1.2.3