diff options
author | iphydf <iphydf@users.noreply.github.com> | 2016-08-17 10:52:04 +0100 |
---|---|---|
committer | iphydf <iphydf@users.noreply.github.com> | 2016-08-18 00:01:53 +0100 |
commit | a5e35180c7b42d30c82825cd67c8118ce048f65a (patch) | |
tree | b74e8ece4f78a988ab0a1300cc08bd35fcd63662 /toxcore/tox.c | |
parent | db22522741cccdeba657776844538c71cf8e8e7a (diff) |
Make tox_callback_friend_name stateless.
See #27 and #40 for details.
Diffstat (limited to 'toxcore/tox.c')
-rw-r--r-- | toxcore/tox.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/toxcore/tox.c b/toxcore/tox.c index 4708bc97..f43adabb 100644 --- a/toxcore/tox.c +++ b/toxcore/tox.c | |||
@@ -716,10 +716,10 @@ bool tox_friend_get_name(const Tox *tox, uint32_t friend_number, uint8_t *name, | |||
716 | return 1; | 716 | return 1; |
717 | } | 717 | } |
718 | 718 | ||
719 | void tox_callback_friend_name(Tox *tox, tox_friend_name_cb *function, void *user_data) | 719 | void tox_callback_friend_name(Tox *tox, tox_friend_name_cb *function) |
720 | { | 720 | { |
721 | Messenger *m = tox; | 721 | Messenger *m = tox; |
722 | m_callback_namechange(m, function, user_data); | 722 | m_callback_namechange(m, function); |
723 | } | 723 | } |
724 | 724 | ||
725 | size_t tox_friend_get_status_message_size(const Tox *tox, uint32_t friend_number, TOX_ERR_FRIEND_QUERY *error) | 725 | size_t tox_friend_get_status_message_size(const Tox *tox, uint32_t friend_number, TOX_ERR_FRIEND_QUERY *error) |