Move the EventFormat enum to Vala
This commit is contained in:
		| @@ -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, | ||||
|   | ||||
| @@ -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, | ||||
|   | ||||
| @@ -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 | ||||
|   | ||||
| @@ -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, | ||||
|   | ||||
		Reference in New Issue
	
	Block a user