From c181af64bab27eb50e684c64c0a3caa49f8bbe39 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Mon, 8 Jul 2013 18:56:00 +0000 Subject: protocol helpers, beginning git-svn-id: http://svn.miranda-ng.org/main/trunk@5285 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- include/m_protoint.h | 13 ------------- 1 file changed, 13 deletions(-) (limited to 'include/m_protoint.h') diff --git a/include/m_protoint.h b/include/m_protoint.h index 9849bbe320..ac700dfbad 100644 --- a/include/m_protoint.h +++ b/include/m_protoint.h @@ -106,17 +106,4 @@ struct PROTO_INTERFACE : public MZeroedObject virtual int __cdecl OnEvent(PROTOEVENTTYPE iEventType, WPARAM wParam, LPARAM lParam) = 0; }; -// Call it in the very beginning of your proto's constructor -__forceinline void ProtoConstructor(PROTO_INTERFACE *pThis, LPCSTR pszModuleName, LPCTSTR ptszUserName) -{ - CallService("Proto/Constructor", (WPARAM)pThis, (LPARAM)pszModuleName); - pThis->m_tszUserName = mir_tstrdup(ptszUserName); -} - -// Call it in the very end of your proto's destructor -__forceinline void ProtoDestructor(PROTO_INTERFACE *pThis) -{ - CallService("Proto/Destructor", (WPARAM)pThis, 0); -} - #endif // M_PROTOINT_H__ -- cgit v1.2.3