diff options
author | iphydf <iphydf@users.noreply.github.com> | 2016-08-18 00:37:45 +0100 |
---|---|---|
committer | iphydf <iphydf@users.noreply.github.com> | 2016-08-18 17:19:23 +0100 |
commit | bdf5ac37b45870e8b8e7d621334d7bd034bf7149 (patch) | |
tree | ea717701720744124c74e3ed9e7b112c22e54b65 /toxcore/tox.c | |
parent | 6935643f9aca68c135161a4e3bf046cbd075000c (diff) |
Make friend_status_message callback stateless.
See #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 2d3c97a9..51307fc1 100644 --- a/toxcore/tox.c +++ b/toxcore/tox.c | |||
@@ -761,10 +761,10 @@ bool tox_friend_get_status_message(const Tox *tox, uint32_t friend_number, uint8 | |||
761 | return 1; | 761 | return 1; |
762 | } | 762 | } |
763 | 763 | ||
764 | void tox_callback_friend_status_message(Tox *tox, tox_friend_status_message_cb *function, void *user_data) | 764 | void tox_callback_friend_status_message(Tox *tox, tox_friend_status_message_cb *function) |
765 | { | 765 | { |
766 | Messenger *m = tox; | 766 | Messenger *m = tox; |
767 | m_callback_statusmessage(m, function, user_data); | 767 | m_callback_statusmessage(m, function); |
768 | } | 768 | } |
769 | 769 | ||
770 | TOX_USER_STATUS tox_friend_get_status(const Tox *tox, uint32_t friend_number, TOX_ERR_FRIEND_QUERY *error) | 770 | TOX_USER_STATUS tox_friend_get_status(const Tox *tox, uint32_t friend_number, TOX_ERR_FRIEND_QUERY *error) |