diff options
author | irungentoo <irungentoo@gmail.com> | 2014-03-20 20:48:46 -0400 |
---|---|---|
committer | irungentoo <irungentoo@gmail.com> | 2014-03-20 20:48:46 -0400 |
commit | d2d896547048252dbf92727546546e788f20b252 (patch) | |
tree | bbd498d765c8d57b6bb853b67351432fbcd97ddf | |
parent | 2e48b31e47ab73919ddfbcd5512799affdbdedb8 (diff) |
Fixed other api inconsistency.
-rw-r--r-- | toxcore/Messenger.c | 2 | ||||
-rw-r--r-- | toxcore/Messenger.h | 2 | ||||
-rw-r--r-- | toxcore/tox.c | 2 | ||||
-rw-r--r-- | toxcore/tox.h | 2 |
4 files changed, 4 insertions, 4 deletions
diff --git a/toxcore/Messenger.c b/toxcore/Messenger.c index d0f460e9..e1c2763c 100644 --- a/toxcore/Messenger.c +++ b/toxcore/Messenger.c | |||
@@ -659,7 +659,7 @@ int m_set_usertyping(Messenger *m, int32_t friendnumber, uint8_t is_typing) | |||
659 | return 0; | 659 | return 0; |
660 | } | 660 | } |
661 | 661 | ||
662 | int m_get_istyping(Messenger *m, int32_t friendnumber) | 662 | uint8_t m_get_istyping(Messenger *m, int32_t friendnumber) |
663 | { | 663 | { |
664 | if (friend_not_valid(m, friendnumber)) | 664 | if (friend_not_valid(m, friendnumber)) |
665 | return -1; | 665 | return -1; |
diff --git a/toxcore/Messenger.h b/toxcore/Messenger.h index 110e3ac5..a50d4d79 100644 --- a/toxcore/Messenger.h +++ b/toxcore/Messenger.h | |||
@@ -432,7 +432,7 @@ int m_set_usertyping(Messenger *m, int32_t friendnumber, uint8_t is_typing); | |||
432 | * returns 0 if friend is not typing. | 432 | * returns 0 if friend is not typing. |
433 | * returns 1 if friend is typing. | 433 | * returns 1 if friend is typing. |
434 | */ | 434 | */ |
435 | int m_get_istyping(Messenger *m, int32_t friendnumber); | 435 | uint8_t m_get_istyping(Messenger *m, int32_t friendnumber); |
436 | 436 | ||
437 | /* Sets whether we send read receipts for friendnumber. | 437 | /* Sets whether we send read receipts for friendnumber. |
438 | * This function is not lazy, and it will fail if yesno is not (0 or 1). | 438 | * This function is not lazy, and it will fail if yesno is not (0 or 1). |
diff --git a/toxcore/tox.c b/toxcore/tox.c index 0c76182e..16180b30 100644 --- a/toxcore/tox.c +++ b/toxcore/tox.c | |||
@@ -316,7 +316,7 @@ int tox_set_user_is_typing(Tox *tox, int32_t friendnumber, uint8_t is_typing) | |||
316 | * returns 0 if friend is not typing. | 316 | * returns 0 if friend is not typing. |
317 | * returns 1 if friend is typing. | 317 | * returns 1 if friend is typing. |
318 | */ | 318 | */ |
319 | int tox_get_is_typing(Tox *tox, int32_t friendnumber) | 319 | uint8_t tox_get_is_typing(Tox *tox, int32_t friendnumber) |
320 | { | 320 | { |
321 | Messenger *m = tox; | 321 | Messenger *m = tox; |
322 | return m_get_istyping(m, friendnumber); | 322 | return m_get_istyping(m, friendnumber); |
diff --git a/toxcore/tox.h b/toxcore/tox.h index d40d7469..8f8621b3 100644 --- a/toxcore/tox.h +++ b/toxcore/tox.h | |||
@@ -282,7 +282,7 @@ int tox_set_user_is_typing(Tox *tox, int32_t friendnumber, uint8_t is_typing); | |||
282 | * returns 0 if friend is not typing. | 282 | * returns 0 if friend is not typing. |
283 | * returns 1 if friend is typing. | 283 | * returns 1 if friend is typing. |
284 | */ | 284 | */ |
285 | int tox_get_is_typing(Tox *tox, int32_t friendnumber); | 285 | uint8_t tox_get_is_typing(Tox *tox, int32_t friendnumber); |
286 | 286 | ||
287 | /* Sets whether we send read receipts for friendnumber. | 287 | /* Sets whether we send read receipts for friendnumber. |
288 | * This function is not lazy, and it will fail if yesno is not (0 or 1). | 288 | * This function is not lazy, and it will fail if yesno is not (0 or 1). |