From 85c0b6a96f366bdf0ca334ee7cb1877fb3f2288c Mon Sep 17 00:00:00 2001 From: George Hazan Date: Fri, 16 Jan 2015 17:49:54 +0000 Subject: MEVENT - the strict type for events, they are not HANDLE anymore git-svn-id: http://svn.miranda-ng.org/main/trunk@11866 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- protocols/Yahoo/src/im.cpp | 2 +- protocols/Yahoo/src/proto.cpp | 6 +++--- protocols/Yahoo/src/proto.h | 6 +++--- 3 files changed, 7 insertions(+), 7 deletions(-) (limited to 'protocols/Yahoo') diff --git a/protocols/Yahoo/src/im.cpp b/protocols/Yahoo/src/im.cpp index 54a4d9d1cf..0da62a376a 100644 --- a/protocols/Yahoo/src/im.cpp +++ b/protocols/Yahoo/src/im.cpp @@ -108,7 +108,7 @@ void CYahooProto::ext_got_im(const char *me, const char *who, int protocol, cons pre.flags = (utf8) ? PREF_UTF : 0; if (tm) { - HANDLE hEvent = db_event_last(hContact); + MEVENT hEvent = db_event_last(hContact); if (hEvent) { // contact has events DWORD dummy; diff --git a/protocols/Yahoo/src/proto.cpp b/protocols/Yahoo/src/proto.cpp index 4b75b0355c..020574af1b 100644 --- a/protocols/Yahoo/src/proto.cpp +++ b/protocols/Yahoo/src/proto.cpp @@ -137,7 +137,7 @@ MCONTACT CYahooProto::AddToList( int flags, PROTOSEARCHRESULT* psr ) return hContact; } -MCONTACT __cdecl CYahooProto::AddToListByEvent( int flags, int /*iContact*/, HANDLE hDbEvent ) +MCONTACT __cdecl CYahooProto::AddToListByEvent( int flags, int /*iContact*/, MEVENT hDbEvent ) { debugLogA("[YahooAddToListByEvent]"); if (!m_bLoggedIn) @@ -178,7 +178,7 @@ MCONTACT __cdecl CYahooProto::AddToListByEvent( int flags, int /*iContact*/, HAN //////////////////////////////////////////////////////////////////////////////////////// // AuthAllow - processes the successful authorization -int CYahooProto::Authorize( HANDLE hdbe ) +int CYahooProto::Authorize(MEVENT hdbe) { debugLogA("[YahooAuthAllow]"); if ( !m_bLoggedIn ) { @@ -217,7 +217,7 @@ int CYahooProto::Authorize( HANDLE hdbe ) //////////////////////////////////////////////////////////////////////////////////////// // AuthDeny - handles the unsuccessful authorization -int CYahooProto::AuthDeny( HANDLE hdbe, const TCHAR* reason ) +int CYahooProto::AuthDeny(MEVENT hdbe, const TCHAR *reason) { debugLogA("[YahooAuthDeny]"); if ( !m_bLoggedIn ) diff --git a/protocols/Yahoo/src/proto.h b/protocols/Yahoo/src/proto.h index 1b7d1fd5c4..207351964f 100644 --- a/protocols/Yahoo/src/proto.h +++ b/protocols/Yahoo/src/proto.h @@ -26,10 +26,10 @@ struct CYahooProto : public PROTO //==================================================================================== virtual MCONTACT __cdecl AddToList( int flags, PROTOSEARCHRESULT* psr ); - virtual MCONTACT __cdecl AddToListByEvent( int flags, int iContact, HANDLE hDbEvent ); + virtual MCONTACT __cdecl AddToListByEvent( int flags, int iContact, MEVENT hDbEvent ); - virtual int __cdecl Authorize( HANDLE hDbEvent ); - virtual int __cdecl AuthDeny( HANDLE hDbEvent, const TCHAR* szReason ); + virtual int __cdecl Authorize( MEVENT hDbEvent ); + virtual int __cdecl AuthDeny( MEVENT hDbEvent, const TCHAR* szReason ); virtual int __cdecl AuthRecv(MCONTACT hContact, PROTORECVEVENT* ); virtual int __cdecl AuthRequest(MCONTACT hContact, const TCHAR* szMessage ); -- cgit v1.2.3