From 6d9b13cd638643c7aa42fcb13d5ab3b1e1b7003d Mon Sep 17 00:00:00 2001 From: Gergely Polonkai Date: Sat, 16 Jan 2016 14:17:31 +0100 Subject: [PATCH] Add the MatrixAPIAccountKind type --- docs/reference/matrix-glib/matrix-glib-sections.txt | 3 +++ src/matrix-api-types.c | 10 ++++++++++ src/matrix-api-types.h | 6 ++++++ 3 files changed, 19 insertions(+) diff --git a/docs/reference/matrix-glib/matrix-glib-sections.txt b/docs/reference/matrix-glib/matrix-glib-sections.txt index 8dd4415..40cf16f 100644 --- a/docs/reference/matrix-glib/matrix-glib-sections.txt +++ b/docs/reference/matrix-glib/matrix-glib-sections.txt @@ -33,6 +33,7 @@ MatrixAPIPusherKind MatrixAPIPusherConditionKind MatrixAPIEventDirection MatrixAPIReceiptType +MatrixAPIAccountKind MatrixAPIFilterRules @@ -176,6 +177,8 @@ MATRIX_TYPE_API_EVENT_DIRECTION matrix_api_event_direction_get_type MATRIX_TYPE_API_RECEIPT_TYPE matrix_api_receipt_type_get_type +MATRIX_TYPE_API_ACCOUNT_KIND +matrix_api_account_kind_get_type MATRIX_TYPE_API_FILTER_RULES matrix_api_filter_rules_get_type MATRIX_TYPE_API_ROOM_FILTER diff --git a/src/matrix-api-types.c b/src/matrix-api-types.c index 3601943..d0dbcd8 100644 --- a/src/matrix-api-types.c +++ b/src/matrix-api-types.c @@ -214,6 +214,16 @@ G_DEFINE_QUARK(matrix-api-error-quark, matrix_api_error); * Condition types for pushers. */ +/** + * MatrixAPIAccountKind: + * @MATRIX_API_ACCOUNT_KIND_DEFAULT: use the server default (usually + * %MATRIX_API_ACCOUNT_KIND_USER) + * @MATRIX_API_ACCOUNT_KIND_USER: normal user + * @MATRIX_API_ACCOUNT_KIND_GUEST: guest user + * + * User account types. + */ + /** * MatrixAPIEventDirection: * @MATRIX_API_EVENT_DIRECTION_FORWARD: List events after the diff --git a/src/matrix-api-types.h b/src/matrix-api-types.h index 5069169..c3b97a5 100644 --- a/src/matrix-api-types.h +++ b/src/matrix-api-types.h @@ -107,6 +107,12 @@ typedef enum { MATRIX_API_PUSHER_CONDITION_KIND_ROOM_MEMBER_COUNT } MatrixAPIPusherConditionKind; +typedef enum { + MATRIX_API_ACCOUNT_KIND_DEFAULT, + MATRIX_API_ACCOUNT_KIND_USER, + MATRIX_API_ACCOUNT_KIND_GUEST +} MatrixAPIAccountKind; + typedef struct _MatrixAPIFilterRules MatrixAPIFilterRules; GType matrix_api_filter_rules_get_type(void);