From 2d841fb7917a8970de176e490613ff3e77abd47d Mon Sep 17 00:00:00 2001 From: AZ Huang Date: Tue, 10 Dec 2013 17:54:04 +0800 Subject: [PATCH] More API consistent fix. --- toxcore/tox.c | 2 +- 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, /* Set the function that will be executed when an action from a friend is received. * function format is: function(int friendnumber, uint8_t * action, uint32_t length) */ -void tox_callback_action(Tox *tox, void (*function)(Messenger *tox, int, uint8_t *, uint16_t, void *), void *userdata) +void tox_callback_friend_action(Tox *tox, void (*function)(Messenger *tox, int, uint8_t *, uint16_t, void *), void *userdata) { Messenger *m = tox; 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 /* Set the function that will be executed when an action from a friend is received. * Function format is: function(int friendnumber, uint8_t * action, uint32_t length) */ -void tox_callback_action(Tox *tox, void (*function)(Tox *tox, int, uint8_t *, uint16_t, void *), void *userdata); +void tox_callback_friend_action(Tox *tox, void (*function)(Tox *tox, int, uint8_t *, uint16_t, void *), void *userdata); /* Set the callback for name changes. * function(int friendnumber, uint8_t *newname, uint16_t length)