diff options
Diffstat (limited to 'toxcore/tox.c')
-rw-r--r-- | toxcore/tox.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/toxcore/tox.c b/toxcore/tox.c index aec0d902..9a5be0ad 100644 --- a/toxcore/tox.c +++ b/toxcore/tox.c | |||
@@ -353,7 +353,8 @@ uint32_t tox_get_friendlist(Tox *tox, int32_t *out_list, uint32_t list_size) | |||
353 | /* Set the function that will be executed when a friend request is received. | 353 | /* Set the function that will be executed when a friend request is received. |
354 | * Function format is function(uint8_t * public_key, uint8_t * data, uint16_t length) | 354 | * Function format is function(uint8_t * public_key, uint8_t * data, uint16_t length) |
355 | */ | 355 | */ |
356 | void tox_callback_friend_request(Tox *tox, void (*function)(uint8_t *, uint8_t *, uint16_t, void *), void *userdata) | 356 | void tox_callback_friend_request(Tox *tox, void (*function)(Tox *tox, uint8_t *, uint8_t *, uint16_t, void *), |
357 | void *userdata) | ||
357 | { | 358 | { |
358 | Messenger *m = tox; | 359 | Messenger *m = tox; |
359 | m_callback_friendrequest(m, function, userdata); | 360 | m_callback_friendrequest(m, function, userdata); |