Move the EventFormat enum to Vala
This commit is contained in:
parent
9cf47d2e9b
commit
6f540e4652
@ -41,13 +41,6 @@ namespace Matrix {
|
|||||||
public static GLib.Quark quark ();
|
public static GLib.Quark quark ();
|
||||||
}
|
}
|
||||||
|
|
||||||
[CCode (cheader_filename = "matrix-enumtypes.h", cprefix = "MATRIX_EVENT_FORMAT_")]
|
|
||||||
public enum EventFormat {
|
|
||||||
DEFAULT,
|
|
||||||
CLIENT,
|
|
||||||
FEDERATION
|
|
||||||
}
|
|
||||||
|
|
||||||
[CCode (cheader_filename = "matrix-enumtypes.h", cprefix = "MATRIX_RESIZE_METHOD_")]
|
[CCode (cheader_filename = "matrix-enumtypes.h", cprefix = "MATRIX_RESIZE_METHOD_")]
|
||||||
public enum ResizeMethod {
|
public enum ResizeMethod {
|
||||||
DEFAULT,
|
DEFAULT,
|
||||||
|
@ -17,6 +17,15 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
namespace Matrix {
|
namespace Matrix {
|
||||||
|
/**
|
||||||
|
* Event format received when synchronizing.
|
||||||
|
*/
|
||||||
|
public enum EventFormat {
|
||||||
|
DEFAULT, /// event format will be omitted from the filter, so the server will use its default (usually {{{FEDERATION}}})
|
||||||
|
CLIENT, /// return the events in a format suitable for clients
|
||||||
|
FEDERATION; /// return the raw event as receieved over federation
|
||||||
|
}
|
||||||
|
|
||||||
public string?
|
public string?
|
||||||
_g_enum_value_to_nick(Type enum_type,
|
_g_enum_value_to_nick(Type enum_type,
|
||||||
int value,
|
int value,
|
||||||
|
@ -111,20 +111,6 @@
|
|||||||
*/
|
*/
|
||||||
G_DEFINE_QUARK(matrix-error-quark, matrix_error);
|
G_DEFINE_QUARK(matrix-error-quark, matrix_error);
|
||||||
|
|
||||||
/**
|
|
||||||
* MatrixEventFormat:
|
|
||||||
* @MATRIX_EVENT_FORMAT_DEFAULT: event format will be omitted from the
|
|
||||||
* filter, so the server will use its
|
|
||||||
* default (usually
|
|
||||||
* @MATRIX_EVENT_FORMAT_FEDERATION)
|
|
||||||
* @MATRIX_EVENT_FORMAT_CLIENT: return the events in a format suitable
|
|
||||||
* for clients
|
|
||||||
* @MATRIX_EVENT_FORMAT_FEDERATION: return the raw event as receieved
|
|
||||||
* over federation
|
|
||||||
*
|
|
||||||
* Event format received when synchronizing.
|
|
||||||
*/
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* MatrixRoomPreset:
|
* MatrixRoomPreset:
|
||||||
* @MATRIX_ROOM_PRESET_NONE: no preset
|
* @MATRIX_ROOM_PRESET_NONE: no preset
|
||||||
|
@ -72,12 +72,6 @@ typedef enum {
|
|||||||
#define MATRIX_ERROR matrix_error_quark()
|
#define MATRIX_ERROR matrix_error_quark()
|
||||||
GQuark matrix_error_quark(void);
|
GQuark matrix_error_quark(void);
|
||||||
|
|
||||||
typedef enum {
|
|
||||||
MATRIX_EVENT_FORMAT_DEFAULT,
|
|
||||||
MATRIX_EVENT_FORMAT_CLIENT,
|
|
||||||
MATRIX_EVENT_FORMAT_FEDERATION
|
|
||||||
} MatrixEventFormat;
|
|
||||||
|
|
||||||
typedef enum {
|
typedef enum {
|
||||||
MATRIX_RESIZE_METHOD_DEFAULT,
|
MATRIX_RESIZE_METHOD_DEFAULT,
|
||||||
MATRIX_RESIZE_METHOD_CROP,
|
MATRIX_RESIZE_METHOD_CROP,
|
||||||
|
Loading…
Reference in New Issue
Block a user