Add MATRIX_API_PRESENCE_UNKNOWN

This commit is contained in:
Gergely Polonkai 2016-01-24 21:25:48 +01:00
parent a2b0efbfe4
commit cfb13f6d06
2 changed files with 3 additions and 2 deletions

View File

@ -50,8 +50,7 @@
* @MATRIX_ERROR_FORBIDDEN: access was forbidden (e.g. due to a * @MATRIX_ERROR_FORBIDDEN: access was forbidden (e.g. due to a
* missing/invalid token, or using a bad * missing/invalid token, or using a bad
* password during login) * password during login)
* @MATRIX_ERROR_UNKNOWN: an error unknown to the Matrix server the * @MATRIX_ERROR_UNKNOWN: an error unknown to the Matrix homeserver
* homeserver
* @MATRIX_ERROR_UNKNOWN_TOKEN: the token provided is not known for * @MATRIX_ERROR_UNKNOWN_TOKEN: the token provided is not known for
* the homeserver * the homeserver
* @MATRIX_ERROR_NOT_JSON: illegal request, the content is not valid * @MATRIX_ERROR_NOT_JSON: illegal request, the content is not valid
@ -130,6 +129,7 @@ G_DEFINE_QUARK(matrix-error-quark, matrix_error);
/** /**
* MatrixPresence: * MatrixPresence:
* @MATRIX_PRESENCE_UNKNOWN: user's presence is unknown
* @MATRIX_PRESENCE_ONLINE: user is online * @MATRIX_PRESENCE_ONLINE: user is online
* @MATRIX_PRESENCE_OFFLINE: user is offline * @MATRIX_PRESENCE_OFFLINE: user is offline
* @MATRIX_PRESENCE_UNAVAILABLE: user is unavailable (i.e. busy) * @MATRIX_PRESENCE_UNAVAILABLE: user is unavailable (i.e. busy)

View File

@ -65,6 +65,7 @@ typedef enum {
} MatrixResizeMethod; } MatrixResizeMethod;
typedef enum { typedef enum {
MATRIX_PRESENCE_UNKNOWN,
MATRIX_PRESENCE_ONLINE, MATRIX_PRESENCE_ONLINE,
MATRIX_PRESENCE_OFFLINE, MATRIX_PRESENCE_OFFLINE,
MATRIX_PRESENCE_UNAVAILABLE, MATRIX_PRESENCE_UNAVAILABLE,