More API consistent fix.

This commit is contained in:
AZ Huang 2013-12-10 17:54:04 +08:00
parent 563664d1a5
commit 2d841fb791
2 changed files with 2 additions and 2 deletions

View File

@ -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. /* 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) * 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; Messenger *m = tox;
m_callback_action(m, function, userdata); m_callback_action(m, function, userdata);

View File

@ -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. /* 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) * 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. /* Set the callback for name changes.
* function(int friendnumber, uint8_t *newname, uint16_t length) * function(int friendnumber, uint8_t *newname, uint16_t length)