Move the Presence enum to Vala
This commit is contained in:
parent
a99ec3ba61
commit
78b98b4a5c
@ -41,15 +41,6 @@ namespace Matrix {
|
||||
public static GLib.Quark quark ();
|
||||
}
|
||||
|
||||
[CCode (cheader_filename = "matrix-enumtypes.h", cprefix = "MATRIX_PRESENCE_")]
|
||||
public enum Presence {
|
||||
UNKNOWN,
|
||||
ONLINE,
|
||||
OFFLINE,
|
||||
UNAVAILABLE,
|
||||
FREE_FOR_CHAT;
|
||||
}
|
||||
|
||||
[CCode (cheader_filename = "matrix-enumtypes.h", cprefix = "MATRIX_PUSHER_KIND_")]
|
||||
public enum PusherKind {
|
||||
OVERRIDE,
|
||||
|
@ -43,6 +43,18 @@ namespace Matrix {
|
||||
FEDERATION; /// return the raw event as receieved over federation
|
||||
}
|
||||
|
||||
/**
|
||||
* Presence values for matrix_api_set_user_presence() and other
|
||||
* presence related queries.
|
||||
*/
|
||||
public enum Presence {
|
||||
UNKNOWN, /// user's presence is unknown
|
||||
ONLINE, /// user is online
|
||||
OFFLINE, /// user is offline
|
||||
UNAVAILABLE, /// user is unavailable (i.e. busy)
|
||||
FREE_FOR_CHAT; /// user is free for chat
|
||||
}
|
||||
|
||||
/**
|
||||
* Resizing methods for matrix_api_media_thumbnail().
|
||||
*/
|
||||
|
@ -135,18 +135,6 @@ G_DEFINE_QUARK(matrix-error-quark, matrix_error);
|
||||
* rules.
|
||||
*/
|
||||
|
||||
/**
|
||||
* MatrixPresence:
|
||||
* @MATRIX_PRESENCE_UNKNOWN: user's presence is unknown
|
||||
* @MATRIX_PRESENCE_ONLINE: user is online
|
||||
* @MATRIX_PRESENCE_OFFLINE: user is offline
|
||||
* @MATRIX_PRESENCE_UNAVAILABLE: user is unavailable (i.e. busy)
|
||||
* @MATRIX_PRESENCE_FREE_FOR_CHAT: user is free for chat
|
||||
*
|
||||
* Presence values for matrix_api_set_user_presence() and other
|
||||
* presence related queries.
|
||||
*/
|
||||
|
||||
/**
|
||||
* MatrixPusherKind:
|
||||
* @MATRIX_PUSHER_KIND_OVERRIDE: highest priority rules
|
||||
|
@ -72,14 +72,6 @@ typedef enum {
|
||||
#define MATRIX_ERROR matrix_error_quark()
|
||||
GQuark matrix_error_quark(void);
|
||||
|
||||
typedef enum {
|
||||
MATRIX_PRESENCE_UNKNOWN,
|
||||
MATRIX_PRESENCE_ONLINE,
|
||||
MATRIX_PRESENCE_OFFLINE,
|
||||
MATRIX_PRESENCE_UNAVAILABLE,
|
||||
MATRIX_PRESENCE_FREE_FOR_CHAT
|
||||
} MatrixPresence;
|
||||
|
||||
typedef enum {
|
||||
MATRIX_ROOM_PRESET_NONE,
|
||||
MATRIX_ROOM_PRESET_PRIVATE,
|
||||
|
Loading…
Reference in New Issue
Block a user