mirror of
https://github.com/irungentoo/toxcore.git
synced 2024-03-22 13:30:51 +08:00
More API consistent fix.
This commit is contained in:
parent
563664d1a5
commit
2d841fb791
|
@ -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);
|
||||||
|
|
|
@ -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)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user