Port MatrixCallOfferType to C

This commit is contained in:
Gergely Polonkai 2017-11-02 12:17:00 +01:00
parent 49b466f67e
commit fb217e6b68
4 changed files with 19 additions and 15 deletions

View File

@ -276,3 +276,11 @@ G_DEFINE_QUARK(matrix-error-quark, matrix_error);
*
* Room guest access
*/
/**
* MatrixCallOfferType:
* @MATRIX_CALL_OFFER_TYPE_UNKNOWN: represents a value unknown to this library
* @MATRIX_CALL_OFFER_TYPE_OFFER: call offer
*
* Call offer types
*/

View File

@ -185,4 +185,9 @@ typedef enum {
MATRIX_GUEST_ACCESS_FORBIDDEN
} MatrixGuestAccess;
typedef enum {
MATRIX_CALL_OFFER_TYPE_UNKNOWN,
MATRIX_CALL_OFFER_TYPE_OFFER
} MatrixCallOfferType;
#endif /* __MATRIX_TYPE_H__ */

View File

@ -17,21 +17,6 @@
*/
namespace Matrix {
/**
* Call offer types
*/
public enum CallOfferType {
/**
* represents a value unknown to this library
*/
UNKNOWN,
/**
* call offer
*/
OFFER;
}
/**
* Call answer types
*/

View File

@ -192,6 +192,12 @@ namespace Matrix {
FORBIDDEN;
}
[CCode (cheader_filename = "matrix-enumtypes.h", cprefix = "MATRIX_CALL_OFFER_TYPE_")]
public enum CallOfferType {
UNKNOWN,
OFFER;
}
/**
* The major version number of the Matrix.org GLib SDK.
*/