Port MatrixEventDirection to C

This commit is contained in:
Gergely Polonkai 2017-11-02 09:06:01 +01:00
parent d3be50a6a0
commit 94c49193c8
4 changed files with 19 additions and 15 deletions

View File

@ -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.
*/

View File

@ -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__ */

View File

@ -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.
*/

View File

@ -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.
*/