From 5cd5f32576154dfc9282d94651e716af778e923d Mon Sep 17 00:00:00 2001 From: Jman012 Date: Sun, 16 Feb 2014 17:14:22 -0800 Subject: [PATCH] Typing: Forgot the callback argument types. --- toxcore/Messenger.c | 2 +- toxcore/Messenger.h | 6 +++--- toxcore/tox.c | 6 +++--- toxcore/tox.h | 4 ++-- 4 files changed, 9 insertions(+), 9 deletions(-) diff --git a/toxcore/Messenger.c b/toxcore/Messenger.c index 42c8544a..cca397d7 100644 --- a/toxcore/Messenger.c +++ b/toxcore/Messenger.c @@ -743,7 +743,7 @@ void m_callback_userstatus(Messenger *m, void (*function)(Messenger *m, int, USE m->friend_userstatuschange_userdata = userdata; } -void m_callback_typingchange(Messenger *m, void(*function)(Messenger *m, int, uint8_t, void *), void *userdata) +void m_callback_typingchange(Messenger *m, void(*function)(Messenger *m, int, int, void *), void *userdata) { m->friend_typingchange = function; m->friend_typingchange_userdata = userdata; diff --git a/toxcore/Messenger.h b/toxcore/Messenger.h index d931dfb5..e6851800 100644 --- a/toxcore/Messenger.h +++ b/toxcore/Messenger.h @@ -208,7 +208,7 @@ typedef struct Messenger { void *friend_statusmessagechange_userdata; void (*friend_userstatuschange)(struct Messenger *m, int, USERSTATUS, void *); void *friend_userstatuschange_userdata; - void (*friend_typingchange)(struct Messenger *m, int, uint8_t, void *); + void (*friend_typingchange)(struct Messenger *m, int, int, void *); void *friend_typingchange_userdata; void (*read_receipt)(struct Messenger *m, int, uint32_t, void *); void *read_receipt_userdata; @@ -461,9 +461,9 @@ void m_callback_statusmessage(Messenger *m, void (*function)(Messenger *m, int, void m_callback_userstatus(Messenger *m, void (*function)(Messenger *m, int, USERSTATUS, void *), void *userdata); /* Set the callback for typing changes. - * Function(int friendnumber, uint8_t is_typing) + * Function(int friendnumber, int is_typing) */ -void m_callback_typingchange(Messenger *m, void(*function)(Messenger *m, int, uint8_t, void *), void *userdata); +void m_callback_typingchange(Messenger *m, void(*function)(Messenger *m, int, int, void *), void *userdata); /* Set the callback for read receipts. * Function(int friendnumber, uint32_t receipt) diff --git a/toxcore/tox.c b/toxcore/tox.c index 8ec98cc8..bdef1eaa 100644 --- a/toxcore/tox.c +++ b/toxcore/tox.c @@ -394,12 +394,12 @@ void tox_callback_user_status(Tox *tox, void (*_function)(Tox *tox, int, TOX_USE } /* Set the callback for typing changes. - * function (int friendnumber, uint8_t is_typing) + * function (int friendnumber, int is_typing) */ -void tox_callback_typing_change(Tox *tox, void (*function)(Tox *tox, int, uint8_t, void *), void *userdata) +void tox_callback_typing_change(Tox *tox, void (*function)(Tox *tox, int, int, void *), void *userdata) { Messenger *m = tox; - typedef void (*function_type)(Messenger *, int, uint8_t, void *); + typedef void (*function_type)(Messenger *, int, int, void *); function_type function_new = (function_type)function; m_callback_typingchange(m, function_new, userdata); } diff --git a/toxcore/tox.h b/toxcore/tox.h index 72589142..c95a4fd3 100644 --- a/toxcore/tox.h +++ b/toxcore/tox.h @@ -352,9 +352,9 @@ void tox_callback_status_message(Tox *tox, void (*function)(Tox *tox, int, uint8 void tox_callback_user_status(Tox *tox, void (*function)(Tox *tox, int, TOX_USERSTATUS, void *), void *userdata); /* Set the callback for typing changes. - * function (int friendnumber, uint8_t is_typing) + * function (int friendnumber, int is_typing) */ -void tox_callback_typing_change(Tox *tox, void (*function)(Tox *tox, int, uint8_t, void *), void *userdata); +void tox_callback_typing_change(Tox *tox, void (*function)(Tox *tox, int, int, void *), void *userdata); /* Set the callback for read receipts. * function(int friendnumber, uint32_t receipt)