mirror of
https://github.com/irungentoo/toxcore.git
synced 2024-03-22 13:30:51 +08:00
Fixed other api inconsistency.
This commit is contained in:
parent
2e48b31e47
commit
d2d8965470
|
@ -659,7 +659,7 @@ int m_set_usertyping(Messenger *m, int32_t friendnumber, uint8_t is_typing)
|
||||||
return 0;
|
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))
|
if (friend_not_valid(m, friendnumber))
|
||||||
return -1;
|
return -1;
|
||||||
|
|
|
@ -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 0 if friend is not typing.
|
||||||
* returns 1 if friend is 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.
|
/* Sets whether we send read receipts for friendnumber.
|
||||||
* This function is not lazy, and it will fail if yesno is not (0 or 1).
|
* This function is not lazy, and it will fail if yesno is not (0 or 1).
|
||||||
|
|
|
@ -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 0 if friend is not typing.
|
||||||
* returns 1 if friend is 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;
|
Messenger *m = tox;
|
||||||
return m_get_istyping(m, friendnumber);
|
return m_get_istyping(m, friendnumber);
|
||||||
|
|
|
@ -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 0 if friend is not typing.
|
||||||
* returns 1 if friend is 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.
|
/* Sets whether we send read receipts for friendnumber.
|
||||||
* This function is not lazy, and it will fail if yesno is not (0 or 1).
|
* This function is not lazy, and it will fail if yesno is not (0 or 1).
|
||||||
|
|
Loading…
Reference in New Issue
Block a user