Move the EventFormat enum to Vala

This commit is contained in:
Gergely Polonkai 2016-03-03 12:34:30 +01:00
parent 9cf47d2e9b
commit 6f540e4652
4 changed files with 9 additions and 27 deletions

View File

@ -41,13 +41,6 @@ namespace Matrix {
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_")]
public enum ResizeMethod {
DEFAULT,

View File

@ -17,6 +17,15 @@
*/
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?
_g_enum_value_to_nick(Type enum_type,
int value,

View File

@ -111,20 +111,6 @@
*/
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:
* @MATRIX_ROOM_PRESET_NONE: no preset

View File

@ -72,12 +72,6 @@ typedef enum {
#define MATRIX_ERROR matrix_error_quark()
GQuark matrix_error_quark(void);
typedef enum {
MATRIX_EVENT_FORMAT_DEFAULT,
MATRIX_EVENT_FORMAT_CLIENT,
MATRIX_EVENT_FORMAT_FEDERATION
} MatrixEventFormat;
typedef enum {
MATRIX_RESIZE_METHOD_DEFAULT,
MATRIX_RESIZE_METHOD_CROP,