Removed TOX_USER_STATUS_INVALID.

This commit is contained in:
irungentoo 2015-03-18 15:47:09 -04:00
parent d711362622
commit dc60d98ff1
No known key found for this signature in database
GPG Key ID: 10349DC9BED89E98
2 changed files with 2 additions and 6 deletions

View File

@ -702,7 +702,7 @@ TOX_USER_STATUS tox_friend_get_status(const Tox *tox, uint32_t friend_number, TO
if (ret == USERSTATUS_INVALID) { if (ret == USERSTATUS_INVALID) {
SET_ERROR_PARAMETER(error, TOX_ERR_FRIEND_QUERY_FRIEND_NOT_FOUND); SET_ERROR_PARAMETER(error, TOX_ERR_FRIEND_QUERY_FRIEND_NOT_FOUND);
return TOX_USER_STATUS_INVALID; return TOX_USER_STATUS_BUSY + 1;
} }
SET_ERROR_PARAMETER(error, TOX_ERR_FRIEND_QUERY_OK); SET_ERROR_PARAMETER(error, TOX_ERR_FRIEND_QUERY_OK);

View File

@ -289,11 +289,7 @@ typedef enum TOX_USER_STATUS {
* User is busy. Signals to other clients that this client does not * User is busy. Signals to other clients that this client does not
* currently wish to communicate. * currently wish to communicate.
*/ */
TOX_USER_STATUS_BUSY, TOX_USER_STATUS_BUSY
/**
* Invalid status used when function returns an error.
*/
TOX_USER_STATUS_INVALID
} TOX_USER_STATUS; } TOX_USER_STATUS;
/** /**