Port MatrixEventDirection to C
This commit is contained in:
parent
d3be50a6a0
commit
94c49193c8
@ -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.
|
||||
*/
|
||||
|
Loading…
Reference in New Issue
Block a user