diff --git a/src/matrix-c-types.c b/src/matrix-c-types.c index 66df662..da30138 100644 --- a/src/matrix-c-types.c +++ b/src/matrix-c-types.c @@ -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 + */ diff --git a/src/matrix-c-types.h b/src/matrix-c-types.h index 97ae244..dd42cf7 100644 --- a/src/matrix-c-types.h +++ b/src/matrix-c-types.h @@ -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__ */ diff --git a/src/matrix-types.vala b/src/matrix-types.vala index 3a038f1..c59dca3 100644 --- a/src/matrix-types.vala +++ b/src/matrix-types.vala @@ -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 */ diff --git a/vapi/c-api.vapi b/vapi/c-api.vapi index 5518888..d210233 100644 --- a/vapi/c-api.vapi +++ b/vapi/c-api.vapi @@ -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. */