Fixed other api inconsistency.

This commit is contained in:
irungentoo 2014-03-20 20:48:46 -04:00
parent 2e48b31e47
commit d2d8965470
4 changed files with 4 additions and 4 deletions

View File

@ -659,7 +659,7 @@ int m_set_usertyping(Messenger *m, int32_t friendnumber, uint8_t is_typing)
return 0;
}
int m_get_istyping(Messenger *m, int32_t friendnumber)
uint8_t m_get_istyping(Messenger *m, int32_t friendnumber)
{
if (friend_not_valid(m, friendnumber))
return -1;

View File

@ -432,7 +432,7 @@ int m_set_usertyping(Messenger *m, int32_t friendnumber, uint8_t is_typing);
* returns 0 if friend is not typing.
* returns 1 if friend is typing.
*/
int m_get_istyping(Messenger *m, int32_t friendnumber);
uint8_t m_get_istyping(Messenger *m, int32_t friendnumber);
/* Sets whether we send read receipts for friendnumber.
* This function is not lazy, and it will fail if yesno is not (0 or 1).

View File

@ -316,7 +316,7 @@ int tox_set_user_is_typing(Tox *tox, int32_t friendnumber, uint8_t is_typing)
* returns 0 if friend is not typing.
* returns 1 if friend is typing.
*/
int tox_get_is_typing(Tox *tox, int32_t friendnumber)
uint8_t tox_get_is_typing(Tox *tox, int32_t friendnumber)
{
Messenger *m = tox;
return m_get_istyping(m, friendnumber);

View File

@ -282,7 +282,7 @@ int tox_set_user_is_typing(Tox *tox, int32_t friendnumber, uint8_t is_typing);
* returns 0 if friend is not typing.
* returns 1 if friend is typing.
*/
int tox_get_is_typing(Tox *tox, int32_t friendnumber);
uint8_t tox_get_is_typing(Tox *tox, int32_t friendnumber);
/* Sets whether we send read receipts for friendnumber.
* This function is not lazy, and it will fail if yesno is not (0 or 1).