Move the PusherKind enum to Vala
This commit is contained in:
parent
e5d110d0f4
commit
afbaff4a4b
@ -41,15 +41,6 @@ namespace Matrix {
|
|||||||
public static GLib.Quark quark ();
|
public static GLib.Quark quark ();
|
||||||
}
|
}
|
||||||
|
|
||||||
[CCode (cheader_filename = "matrix-enumtypes.h", cprefix = "MATRIX_PUSHER_KIND_")]
|
|
||||||
public enum PusherKind {
|
|
||||||
OVERRIDE,
|
|
||||||
SENDER,
|
|
||||||
ROOM,
|
|
||||||
CONTENT,
|
|
||||||
UNDERRIDE;
|
|
||||||
}
|
|
||||||
|
|
||||||
[CCode (cheader_filename = "matrix-enumtypes.h", cprefix = "MATRIX_ROOM_PRESET_")]
|
[CCode (cheader_filename = "matrix-enumtypes.h", cprefix = "MATRIX_ROOM_PRESET_")]
|
||||||
public enum RoomPreset {
|
public enum RoomPreset {
|
||||||
NONE,
|
NONE,
|
||||||
|
@ -65,6 +65,17 @@ namespace Matrix {
|
|||||||
ROOM_MEMBER_COUNT; /// matches the current number of members in the room. Requires an {{{is}}} parameter, which must be an integer, optionally prefixed by {{==}}}, {{{<}}}, {{{>}}}, {{{<=}}} or {{{>=}}}. If the prefix is omitted, it defaults to {{{==}}}
|
ROOM_MEMBER_COUNT; /// matches the current number of members in the room. Requires an {{{is}}} parameter, which must be an integer, optionally prefixed by {{==}}}, {{{<}}}, {{{>}}}, {{{<=}}} or {{{>=}}}. If the prefix is omitted, it defaults to {{{==}}}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Pusher types.
|
||||||
|
*/
|
||||||
|
public enum PusherKind {
|
||||||
|
OVERRIDE, /// highest priority rules
|
||||||
|
SENDER, /// for (unencrypted) messages that match certain patterns
|
||||||
|
ROOM, /// for all messages for a given room. The rule ID of a room rule is always the ID of the room that it affects
|
||||||
|
CONTENT, /// for messages from a specific Matrix user ID. The rule ID of such rules is always the Matrix ID of the user whose messages they'd apply to
|
||||||
|
UNDERRIDE; /// lowest priority rules
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Resizing methods for matrix_api_media_thumbnail().
|
* Resizing methods for matrix_api_media_thumbnail().
|
||||||
*/
|
*/
|
||||||
|
@ -135,23 +135,6 @@ G_DEFINE_QUARK(matrix-error-quark, matrix_error);
|
|||||||
* rules.
|
* rules.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/**
|
|
||||||
* MatrixPusherKind:
|
|
||||||
* @MATRIX_PUSHER_KIND_OVERRIDE: highest priority rules
|
|
||||||
* @MATRIX_PUSHER_KIND_SENDER: for (unencrypted) messages that match
|
|
||||||
* certain patterns
|
|
||||||
* @MATRIX_PUSHER_KIND_ROOM: for all messages for a given room. The
|
|
||||||
* rule ID of a room rule is always the ID
|
|
||||||
* of the room that it affects
|
|
||||||
* @MATRIX_PUSHER_KIND_CONTENT: for messages from a specific Matrix
|
|
||||||
* user ID. The rule ID of such rules is
|
|
||||||
* always the Matrix ID of the user whose
|
|
||||||
* messages they'd apply to
|
|
||||||
* @MATRIX_PUSHER_KIND_UNDERRIDE: lowest priority rules
|
|
||||||
*
|
|
||||||
* Pusher types.
|
|
||||||
*/
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* MatrixReceiptType:
|
* MatrixReceiptType:
|
||||||
* @MATRIX_RECEIPT_TYPE_READ: indicate that the message has been read
|
* @MATRIX_RECEIPT_TYPE_READ: indicate that the message has been read
|
||||||
|
@ -89,14 +89,6 @@ typedef enum {
|
|||||||
MATRIX_RECEIPT_TYPE_READ
|
MATRIX_RECEIPT_TYPE_READ
|
||||||
} MatrixReceiptType;
|
} MatrixReceiptType;
|
||||||
|
|
||||||
typedef enum {
|
|
||||||
MATRIX_PUSHER_KIND_OVERRIDE,
|
|
||||||
MATRIX_PUSHER_KIND_SENDER,
|
|
||||||
MATRIX_PUSHER_KIND_ROOM,
|
|
||||||
MATRIX_PUSHER_KIND_CONTENT,
|
|
||||||
MATRIX_PUSHER_KIND_UNDERRIDE
|
|
||||||
} MatrixPusherKind;
|
|
||||||
|
|
||||||
typedef struct _MatrixStateEvent MatrixStateEvent;
|
typedef struct _MatrixStateEvent MatrixStateEvent;
|
||||||
|
|
||||||
GType matrix_state_event_get_type(void);
|
GType matrix_state_event_get_type(void);
|
||||||
|
Loading…
Reference in New Issue
Block a user