diff options
author | Gregory Mullen (grayhatter) <greg@grayhatter.com> | 2016-08-19 16:13:23 -0700 |
---|---|---|
committer | Gregory Mullen (grayhatter) <greg@grayhatter.com> | 2016-08-19 16:13:23 -0700 |
commit | 0e18966a2703d67ac4647832fca595286d8e3568 (patch) | |
tree | 42920a5c4c26df8cd0afe72944250920008d257e /toxcore/tox.c | |
parent | 83d4857f080f6393ada976f3151bce5db2f96e23 (diff) |
Make Typing change callback stateless
Moved a few #defines to the top of the header for better readability
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 51307fc1..6b36c115 100644 --- a/toxcore/tox.c +++ b/toxcore/tox.c | |||
@@ -823,10 +823,10 @@ bool tox_friend_get_typing(const Tox *tox, uint32_t friend_number, TOX_ERR_FRIEN | |||
823 | return !!ret; | 823 | return !!ret; |
824 | } | 824 | } |
825 | 825 | ||
826 | void tox_callback_friend_typing(Tox *tox, tox_friend_typing_cb *function, void *user_data) | 826 | void tox_callback_friend_typing(Tox *tox, tox_friend_typing_cb *function) |
827 | { | 827 | { |
828 | Messenger *m = tox; | 828 | Messenger *m = tox; |
829 | m_callback_typingchange(m, function, user_data); | 829 | m_callback_typingchange(m, function); |
830 | } | 830 | } |
831 | 831 | ||
832 | bool tox_self_set_typing(Tox *tox, uint32_t friend_number, bool is_typing, TOX_ERR_SET_TYPING *error) | 832 | bool tox_self_set_typing(Tox *tox, uint32_t friend_number, bool is_typing, TOX_ERR_SET_TYPING *error) |