Port MatrixCallOfferType to C
This commit is contained in:
		| @@ -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 | ||||
|  */ | ||||
|   | ||||
| @@ -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__ */ | ||||
|   | ||||
| @@ -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 | ||||
|      */ | ||||
|   | ||||
| @@ -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. | ||||
|      */ | ||||
|   | ||||
		Reference in New Issue
	
	Block a user