summaryrefslogtreecommitdiff
path: root/protocols/Tox/src/tox_core.cpp
diff options
context:
space:
mode:
authorAlexander Lantsev <aunsane@gmail.com>2016-05-16 15:33:47 +0000
committerAlexander Lantsev <aunsane@gmail.com>2016-05-16 15:33:47 +0000
commit4bbad2f0985a74f86ecc27d7e95e2ecfcd2d3665 (patch)
treeb4d32e95cb9c7ebce643099ca07588a471119aa1 /protocols/Tox/src/tox_core.cpp
parentb82fefb0f00c12e87fd5178723ee66fecd97d655 (diff)
Tox: some fixes
git-svn-id: http://svn.miranda-ng.org/main/trunk@16834 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/Tox/src/tox_core.cpp')
-rw-r--r--protocols/Tox/src/tox_core.cpp15
1 files changed, 15 insertions, 0 deletions
diff --git a/protocols/Tox/src/tox_core.cpp b/protocols/Tox/src/tox_core.cpp
index 838edd6a1a..0188265f18 100644
--- a/protocols/Tox/src/tox_core.cpp
+++ b/protocols/Tox/src/tox_core.cpp
@@ -109,4 +109,19 @@ void CToxProto::UninitToxCore(CToxThread *toxThread)
CancelAllTransfers(toxThread);
SaveToxProfile(toxThread);
+
+ tox_callback_friend_request(toxThread->Tox(), OnFriendRequest, NULL);
+ tox_callback_friend_message(toxThread->Tox(), OnFriendMessage, NULL);
+ tox_callback_friend_read_receipt(toxThread->Tox(), OnReadReceipt, NULL);
+ tox_callback_friend_typing(toxThread->Tox(), OnTypingChanged, NULL);
+ //
+ tox_callback_friend_name(toxThread->Tox(), OnFriendNameChange, NULL);
+ tox_callback_friend_status_message(toxThread->Tox(), OnStatusMessageChanged, NULL);
+ tox_callback_friend_status(toxThread->Tox(), OnUserStatusChanged, NULL);
+ tox_callback_friend_connection_status(toxThread->Tox(), OnConnectionStatusChanged, NULL);
+ // transfers
+ tox_callback_file_recv_control(toxThread->Tox(), OnFileRequest, NULL);
+ tox_callback_file_recv(toxThread->Tox(), OnFriendFile, NULL);
+ tox_callback_file_recv_chunk(toxThread->Tox(), OnDataReceiving, NULL);
+ tox_callback_file_chunk_request(toxThread->Tox(), OnFileSendData, NULL);
} \ No newline at end of file