From 2e93497d5b19b4fc46f84cb18267bce357e48747 Mon Sep 17 00:00:00 2001 From: Alexander Lantsev Date: Sat, 16 Aug 2014 16:02:58 +0000 Subject: Tox: - added netlib logging - minor fixes git-svn-id: http://svn.miranda-ng.org/main/trunk@10203 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- protocols/Tox/src/tox_proto.h | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) (limited to 'protocols/Tox/src/tox_proto.h') diff --git a/protocols/Tox/src/tox_proto.h b/protocols/Tox/src/tox_proto.h index f3c258a22e..d7e566998c 100644 --- a/protocols/Tox/src/tox_proto.h +++ b/protocols/Tox/src/tox_proto.h @@ -76,11 +76,16 @@ private: bool isTerminated; bool isConnected; ULONG hMessageProcess; + HANDLE hNetlibUser; // instances static LIST instanceList; static int CompareProtos(const CToxProto *p1, const CToxProto *p2); + // netlib + void InitNetlib(); + void UninitNetlib(); + // account bool IsOnline(); @@ -91,7 +96,9 @@ private: void __cdecl PollingThread(void*); //events - int OnModulesLoaded(WPARAM, LPARAM); + int __cdecl OnModulesLoaded(WPARAM, LPARAM); + int __cdecl OnPreShutdown(WPARAM, LPARAM); + INT_PTR __cdecl OnAccountManagerInit(WPARAM, LPARAM); static int __cdecl OnOptionsInit(void *obj, WPARAM wParam, LPARAM lParam); @@ -102,8 +109,8 @@ private: static void OnFriendNameChange(Tox *tox, const int friendnumber, const uint8_t *name, const uint16_t nameSize, void *arg); static void OnStatusMessageChanged(Tox *tox, const int friendnumber, const uint8_t* message, const uint16_t messageSize, void *arg); static void OnUserStatusChanged(Tox *tox, int32_t friendnumber, uint8_t usertatus, void *arg); - static void OnConnectionStatusChanged(Tox *tox, const int friendId, const uint8_t status, void *arg); - static void OnAction(Tox *tox, const int friendId, const uint8_t *message, const uint16_t messageSize, void *arg); + static void OnConnectionStatusChanged(Tox *tox, const int friendnumber, const uint8_t status, void *arg); + static void OnAction(Tox *tox, const int friendnumber, const uint8_t *message, const uint16_t messageSize, void *arg); static void OnReadReceipt(Tox *tox, int32_t friendnumber, uint32_t receipt, void *arg); // contacts @@ -117,10 +124,6 @@ private: void LoadContactList(); - //services - - - // utils TOX_USERSTATUS MirandaToToxStatus(int status); int ToxToMirandaStatus(TOX_USERSTATUS userstatus); -- cgit v1.2.3