Add the MatrixAPIAccountKind type

This commit is contained in:
Gergely Polonkai 2016-01-16 14:17:31 +01:00
parent 25801ed3b8
commit 6d9b13cd63
3 changed files with 19 additions and 0 deletions

View File

@ -33,6 +33,7 @@ MatrixAPIPusherKind
MatrixAPIPusherConditionKind MatrixAPIPusherConditionKind
MatrixAPIEventDirection MatrixAPIEventDirection
MatrixAPIReceiptType MatrixAPIReceiptType
MatrixAPIAccountKind
<SUBSECTION> <SUBSECTION>
MatrixAPIFilterRules MatrixAPIFilterRules
@ -176,6 +177,8 @@ MATRIX_TYPE_API_EVENT_DIRECTION
matrix_api_event_direction_get_type matrix_api_event_direction_get_type
MATRIX_TYPE_API_RECEIPT_TYPE MATRIX_TYPE_API_RECEIPT_TYPE
matrix_api_receipt_type_get_type matrix_api_receipt_type_get_type
MATRIX_TYPE_API_ACCOUNT_KIND
matrix_api_account_kind_get_type
MATRIX_TYPE_API_FILTER_RULES MATRIX_TYPE_API_FILTER_RULES
matrix_api_filter_rules_get_type matrix_api_filter_rules_get_type
MATRIX_TYPE_API_ROOM_FILTER MATRIX_TYPE_API_ROOM_FILTER

View File

@ -214,6 +214,16 @@ G_DEFINE_QUARK(matrix-api-error-quark, matrix_api_error);
* Condition types for pushers. * 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: * MatrixAPIEventDirection:
* @MATRIX_API_EVENT_DIRECTION_FORWARD: List events after the * @MATRIX_API_EVENT_DIRECTION_FORWARD: List events after the

View File

@ -107,6 +107,12 @@ typedef enum {
MATRIX_API_PUSHER_CONDITION_KIND_ROOM_MEMBER_COUNT MATRIX_API_PUSHER_CONDITION_KIND_ROOM_MEMBER_COUNT
} MatrixAPIPusherConditionKind; } MatrixAPIPusherConditionKind;
typedef enum {
MATRIX_API_ACCOUNT_KIND_DEFAULT,
MATRIX_API_ACCOUNT_KIND_USER,
MATRIX_API_ACCOUNT_KIND_GUEST
} MatrixAPIAccountKind;
typedef struct _MatrixAPIFilterRules MatrixAPIFilterRules; typedef struct _MatrixAPIFilterRules MatrixAPIFilterRules;
GType matrix_api_filter_rules_get_type(void); GType matrix_api_filter_rules_get_type(void);