diff options
-rw-r--r-- | toxcore/tox.c | 2 | ||||
-rw-r--r-- | toxcore/tox.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/toxcore/tox.c b/toxcore/tox.c index a8d41d7f..c0d1da3b 100644 --- a/toxcore/tox.c +++ b/toxcore/tox.c | |||
@@ -323,7 +323,7 @@ void tox_callback_friend_message(Tox *tox, void (*function)(Messenger *tox, int, | |||
323 | /* Set the function that will be executed when an action from a friend is received. | 323 | /* Set the function that will be executed when an action from a friend is received. |
324 | * function format is: function(int friendnumber, uint8_t * action, uint32_t length) | 324 | * function format is: function(int friendnumber, uint8_t * action, uint32_t length) |
325 | */ | 325 | */ |
326 | void tox_callback_action(Tox *tox, void (*function)(Messenger *tox, int, uint8_t *, uint16_t, void *), void *userdata) | 326 | void tox_callback_friend_action(Tox *tox, void (*function)(Messenger *tox, int, uint8_t *, uint16_t, void *), void *userdata) |
327 | { | 327 | { |
328 | Messenger *m = tox; | 328 | Messenger *m = tox; |
329 | m_callback_action(m, function, userdata); | 329 | m_callback_action(m, function, userdata); |
diff --git a/toxcore/tox.h b/toxcore/tox.h index d19548fb..1a335d2b 100644 --- a/toxcore/tox.h +++ b/toxcore/tox.h | |||
@@ -303,7 +303,7 @@ void tox_callback_friend_message(Tox *tox, void (*function)(Tox *tox, int, uint8 | |||
303 | /* Set the function that will be executed when an action from a friend is received. | 303 | /* Set the function that will be executed when an action from a friend is received. |
304 | * Function format is: function(int friendnumber, uint8_t * action, uint32_t length) | 304 | * Function format is: function(int friendnumber, uint8_t * action, uint32_t length) |
305 | */ | 305 | */ |
306 | void tox_callback_action(Tox *tox, void (*function)(Tox *tox, int, uint8_t *, uint16_t, void *), void *userdata); | 306 | void tox_callback_friend_action(Tox *tox, void (*function)(Tox *tox, int, uint8_t *, uint16_t, void *), void *userdata); |
307 | 307 | ||
308 | /* Set the callback for name changes. | 308 | /* Set the callback for name changes. |
309 | * function(int friendnumber, uint8_t *newname, uint16_t length) | 309 | * function(int friendnumber, uint8_t *newname, uint16_t length) |