diff options
author | Alexander Lantsev <aunsane@gmail.com> | 2014-08-16 16:02:58 +0000 |
---|---|---|
committer | Alexander Lantsev <aunsane@gmail.com> | 2014-08-16 16:02:58 +0000 |
commit | 2e93497d5b19b4fc46f84cb18267bce357e48747 (patch) | |
tree | 32682bcd95fa505aec3e8cf16023e8babfb07829 /protocols/Tox/src/tox_proto.h | |
parent | 5cbde68cad776dd10e36b72f030712abdf3f225a (diff) |
Tox:
- added netlib logging
- minor fixes
git-svn-id: http://svn.miranda-ng.org/main/trunk@10203 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/Tox/src/tox_proto.h')
-rw-r--r-- | protocols/Tox/src/tox_proto.h | 17 |
1 files changed, 10 insertions, 7 deletions
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<CToxProto> 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);
|