summaryrefslogtreecommitdiff
path: root/pcr/tox-prpl/tox_callback_user_data_handling.patch
blob: b0034ae642dc8542c85afd179bbb635018890cb7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
diff -Nurb a/src/toxprpl.c b/src/toxprpl.c
--- a/src/toxprpl.c	2016-11-27 01:40:11.000000000 +0100
+++ b/src/toxprpl.c	2017-01-03 14:13:04.813034839 +0100
@@ -819,7 +819,7 @@
     toxprpl_plugin_data *plugin = purple_connection_get_protocol_data(gc);
     if ((plugin != NULL) && (plugin->tox != NULL))
     {
-        tox_iterate(plugin->tox);
+        tox_iterate(plugin->tox, gc);
     }
     return TRUE;
 }
@@ -1222,18 +1222,18 @@
     {
         toxprpl_save_account(acct, tox);
     }
-    tox_callback_friend_message(tox, on_incoming_message, gc);
-    tox_callback_friend_name(tox, on_nick_change, gc);
-    tox_callback_friend_status(tox, on_status_change, gc);
-    tox_callback_friend_request(tox, on_request, gc);
-    tox_callback_friend_connection_status(tox, on_connectionstatus, gc);
-    tox_callback_friend_typing(tox, on_typing_change, gc);
+    tox_callback_friend_message(tox, on_incoming_message);
+    tox_callback_friend_name(tox, on_nick_change);
+    tox_callback_friend_status(tox, on_status_change);
+    tox_callback_friend_request(tox, on_request);
+    tox_callback_friend_connection_status(tox, on_connectionstatus);
+    tox_callback_friend_typing(tox, on_typing_change);
 
 
-    tox_callback_file_recv(tox, on_file_recv, gc);
-    tox_callback_file_chunk_request(tox, on_file_chunk_request, gc);
-    tox_callback_file_recv_control(tox, on_file_control, gc);
-    tox_callback_file_recv_chunk(tox, on_file_recv_chunk, gc);
+    tox_callback_file_recv(tox, on_file_recv);
+    tox_callback_file_chunk_request(tox, on_file_chunk_request);
+    tox_callback_file_recv_control(tox, on_file_control);
+    tox_callback_file_recv_chunk(tox, on_file_recv_chunk);
 
     purple_debug_info("toxprpl", "initialized tox callbacks\n");