diff options
author | Alexander Lantsev <aunsane@gmail.com> | 2015-11-02 11:35:01 +0000 |
---|---|---|
committer | Alexander Lantsev <aunsane@gmail.com> | 2015-11-02 11:35:01 +0000 |
commit | 036a125b6b499f87072b32310ac5acfab697be84 (patch) | |
tree | 5b1b0a2631d63aea2875d154468587d37dfd748c /protocols/Tox/src/tox_proto.h | |
parent | 98c7c88f7587cc464a4d4c263a0547c4be428325 (diff) |
Tox: ok, let there be a thread
git-svn-id: http://svn.miranda-ng.org/main/trunk@15668 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/Tox/src/tox_proto.h')
-rw-r--r-- | protocols/Tox/src/tox_proto.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/protocols/Tox/src/tox_proto.h b/protocols/Tox/src/tox_proto.h index 7075a281d1..fcb66f8177 100644 --- a/protocols/Tox/src/tox_proto.h +++ b/protocols/Tox/src/tox_proto.h @@ -72,6 +72,7 @@ private: HANDLE hNetlib, hPollingThread;
CTransferList transfers;
CLogger *logger;
+ ULONG hMessageProcess;
static HANDLE hProfileFolderPath;
@@ -202,10 +203,13 @@ private: static INT_PTR CALLBACK ChatRoomInviteProc(HWND hwndDlg, UINT msg, WPARAM wParam, LPARAM lParam);
// messages
+ std::map<uint64_t, UINT> messages;
+
+ void __cdecl SendMessageAsync(void *arg);
int OnSendMessage(MCONTACT hContact, const char *message);
static void OnFriendMessage(Tox *tox, uint32_t friendNumber, TOX_MESSAGE_TYPE type, const uint8_t *message, size_t length, void *arg);
- static void OnReadReceipt(Tox *tox, uint32_t friendNumber, uint32_t messageId, void *arg);
+ static void OnReadReceipt(Tox *tox, uint32_t friendNumber, uint32_t messageNumber, void *arg);
void __cdecl GetStatusMessageAsync(void* arg);
|