Move the EventDirection enum to Vala

This commit is contained in:
Gergely Polonkai 2016-03-03 12:49:01 +01:00
parent b870802721
commit 6409b75398
4 changed files with 8 additions and 21 deletions

View File

@ -82,12 +82,6 @@ namespace Matrix {
PRIVATE;
}
[CCode (cheader_filename = "matrix-enumtypes.h", cprefix = "MATRIX_EVENT_DIRECTION_")]
public enum EventDirection {
FORWARD,
BACKWARD;
}
[CCode (cheader_filename = "matrix-enumtypes.h", cprefix = "MATRIX_RECEIPT_TYPE_")]
public enum ReceiptType {
READ;

View File

@ -26,6 +26,14 @@ namespace Matrix {
GUEST; /// guest user
}
/**
* Direction of events when requesting an event context.
*/
public enum EventDirection {
FORWARD, /// List events after the specified one
BACKWARD; /// List events before the specified one
}
/**
* Event format received when synchronizing.
*/

View File

@ -211,16 +211,6 @@ G_DEFINE_QUARK(matrix-error-quark, matrix_error);
* Condition types for pushers.
*/
/**
* 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.
*/
/**
* MatrixReceiptType:
* @MATRIX_RECEIPT_TYPE_READ: indicate that the message has been read

View File

@ -93,11 +93,6 @@ typedef enum {
MATRIX_ROOM_VISIBILITY_PRIVATE
} MatrixRoomVisibility;
typedef enum {
MATRIX_EVENT_DIRECTION_FORWARD,
MATRIX_EVENT_DIRECTION_BACKWARD
} MatrixEventDirection;
typedef enum {
MATRIX_RECEIPT_TYPE_READ
} MatrixReceiptType;