summaryrefslogtreecommitdiff
path: root/toxcore/friend_connection.h
diff options
context:
space:
mode:
Diffstat (limited to 'toxcore/friend_connection.h')
-rw-r--r--toxcore/friend_connection.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/toxcore/friend_connection.h b/toxcore/friend_connection.h
index 6eb4dd84..c5179a6a 100644
--- a/toxcore/friend_connection.h
+++ b/toxcore/friend_connection.h
@@ -87,7 +87,7 @@ typedef struct {
87 void *data_callback_object; 87 void *data_callback_object;
88 int data_callback_id; 88 int data_callback_id;
89 89
90 int (*lossy_data_callback)(void *object, int id, const uint8_t *data, uint16_t length); 90 int (*lossy_data_callback)(void *object, int id, const uint8_t *data, uint16_t length, void *userdata);
91 void *lossy_data_callback_object; 91 void *lossy_data_callback_object;
92 int lossy_data_callback_id; 92 int lossy_data_callback_id;
93 } callbacks[MAX_FRIEND_CONNECTION_CALLBACKS]; 93 } callbacks[MAX_FRIEND_CONNECTION_CALLBACKS];
@@ -161,7 +161,7 @@ int friend_add_tcp_relay(Friend_Connections *fr_c, int friendcon_id, IP_Port ip_
161int friend_connection_callbacks(Friend_Connections *fr_c, int friendcon_id, unsigned int index, 161int friend_connection_callbacks(Friend_Connections *fr_c, int friendcon_id, unsigned int index,
162 int (*status_callback)(void *object, int id, uint8_t status, void *userdata), 162 int (*status_callback)(void *object, int id, uint8_t status, void *userdata),
163 int (*data_callback)(void *object, int id, const uint8_t *data, uint16_t len, void *userdata), 163 int (*data_callback)(void *object, int id, const uint8_t *data, uint16_t len, void *userdata),
164 int (*lossy_data_callback)(void *object, int id, const uint8_t *data, uint16_t length), 164 int (*lossy_data_callback)(void *object, int id, const uint8_t *data, uint16_t length, void *userdata),
165 void *object, int number); 165 void *object, int number);
166 166
167/* return the crypt_connection_id for the connection. 167/* return the crypt_connection_id for the connection.