Port MatrixReceiptType to C

This commit is contained in:
Gergely Polonkai 2017-11-02 09:51:02 +01:00
parent c8fe8e1ebb
commit fe238ff236
4 changed files with 16 additions and 10 deletions

View File

@ -155,3 +155,10 @@ G_DEFINE_QUARK(matrix-error-quark, matrix_error);
* *
* Pusher types. * Pusher types.
*/ */
/**
* MatrixReceiptType:
* @MATRIX_RECEIPT_TYPE_READ: indicate that the message has been read
*
* Receipt types of acknowledgment.
*/

View File

@ -114,4 +114,8 @@ typedef enum {
MATRIX_PUSHER_KIND_UNDERRIDE MATRIX_PUSHER_KIND_UNDERRIDE
} MatrixPusherKind; } MatrixPusherKind;
typedef enum {
MATRIX_RECEIPT_TYPE_READ
} MatrixReceiptType;
#endif /* __MATRIX_TYPE_H__ */ #endif /* __MATRIX_TYPE_H__ */

View File

@ -17,16 +17,6 @@
*/ */
namespace Matrix { namespace Matrix {
/**
* Receipt types of acknowledgment.
*/
public enum ReceiptType {
/**
* indicate that the message has been read
*/
READ;
}
/** /**
* Resizing methods for matrix_api_media_thumbnail(). * Resizing methods for matrix_api_media_thumbnail().
*/ */

View File

@ -110,6 +110,11 @@ namespace Matrix {
UNDERRIDE; UNDERRIDE;
} }
[CCode (cheader_filename = "matrix-enumtypes.h", cprefix = "MATRIX_RECEIPT_TYPE_")]
public enum ReceiptType {
READ;
}
/** /**
* The major version number of the Matrix.org GLib SDK. * The major version number of the Matrix.org GLib SDK.
*/ */