Port MatrixEventDirection to C
This commit is contained in:
		| @@ -98,3 +98,11 @@ G_DEFINE_QUARK(matrix-error-quark, matrix_error); | ||||
|  * | ||||
|  * User account types. | ||||
|  */ | ||||
|  | ||||
| /** | ||||
|  * MatrixEventDirection: | ||||
|  * @MATRIX_EVENT_DIRECTION_FORWARD: list events after the specified one | ||||
|  * @MATRIX_EVENT_DIRECTION_BACKWARD: list events before the specified one | ||||
|  * | ||||
|  * Direction of events when requesting an event context. | ||||
|  */ | ||||
|   | ||||
| @@ -80,4 +80,9 @@ typedef enum { | ||||
|     MATRIX_ACCOUNT_KIND_GUEST | ||||
| } MatrixAccountKind; | ||||
|  | ||||
| typedef enum { | ||||
|     MATRIX_EVENT_DIRECTION_FORWARD, | ||||
|     MATRIX_EVENT_DIRECTION_BACKWARD | ||||
| } MatrixEventDirection; | ||||
|  | ||||
| #endif  /* __MATRIX_TYPE_H__ */ | ||||
|   | ||||
| @@ -17,21 +17,6 @@ | ||||
|  */ | ||||
|  | ||||
| namespace Matrix { | ||||
|     /** | ||||
|      * Direction of events when requesting an event context. | ||||
|      */ | ||||
|     public enum EventDirection { | ||||
|         /** | ||||
|          * list events after the specified one | ||||
|          */ | ||||
|         FORWARD, | ||||
|  | ||||
|         /** | ||||
|          * list events before the specified one | ||||
|          */ | ||||
|         BACKWARD; | ||||
|     } | ||||
|  | ||||
|     /** | ||||
|      * Event format received when synchronizing. | ||||
|      */ | ||||
|   | ||||
| @@ -71,6 +71,12 @@ namespace Matrix { | ||||
|         GUEST; | ||||
|     } | ||||
|  | ||||
|     [CCode (cheader_filename = "matrix-enumtypes.h", cprefix = "MATRIX_EVENT_DIRECTION_")] | ||||
|     public enum EventDirection { | ||||
|         FORWARD, | ||||
|         BACKWARD; | ||||
|     } | ||||
|  | ||||
|     /** | ||||
|      * The major version number of the Matrix.org GLib SDK. | ||||
|      */ | ||||
|   | ||||
		Reference in New Issue
	
	Block a user