From 7d40b6389618009e9a333cf490bb21af3026bf5b Mon Sep 17 00:00:00 2001 From: Gergely Polonkai Date: Wed, 13 Jan 2016 12:15:29 +0100 Subject: [PATCH] Add M_NOT_JSON to MatrixAPIError --- src/matrix-api-types.c | 2 ++ src/matrix-api-types.h | 1 + 2 files changed, 3 insertions(+) diff --git a/src/matrix-api-types.c b/src/matrix-api-types.c index 78a8164..cfc936f 100644 --- a/src/matrix-api-types.c +++ b/src/matrix-api-types.c @@ -48,6 +48,8 @@ * @MATRIX_API_ERROR_UNKNOWN: an error unknown to the Matrix server * @MATRIX_API_ERROR_UNKNOWN_TOKEN: the token provided is not known * for the homeserver + * @MATRIX_API_ERROR_NOT_JSON: illegal request, the content is not + * valid JSON * @MATRIX_API_ERROR_UNSPECIFIED: no error code was sent by the * homeserver * @MATRIX_API_ERROR_UNKNOWN_ERROR: an error unknown to this library diff --git a/src/matrix-api-types.h b/src/matrix-api-types.h index 8322804..40de754 100644 --- a/src/matrix-api-types.h +++ b/src/matrix-api-types.h @@ -38,6 +38,7 @@ typedef enum { MATRIX_API_ERROR_FORBIDDEN, MATRIX_API_ERROR_UNKNOWN, MATRIX_API_ERROR_UNKNOWN_TOKEN, + MATRIX_API_ERROR_NOT_JSON, /* Allow for a lot of Matrix.org defined codes Do not define error codes after this! */