Port MatrixCallAnswerType to C

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

View File

@ -284,3 +284,11 @@ G_DEFINE_QUARK(matrix-error-quark, matrix_error);
* *
* Call offer types * Call offer types
*/ */
/**
* MatrixCallAnswerType:
* @MATRIX_CALL_ANSWER_TYPE_UNKNOWN: represents a value unknown to this library
* @MATRIX_CALL_ANSWER_TYPE_ANSWER: call answer
*
* Call answer types
*/

View File

@ -190,4 +190,9 @@ typedef enum {
MATRIX_CALL_OFFER_TYPE_OFFER MATRIX_CALL_OFFER_TYPE_OFFER
} MatrixCallOfferType; } MatrixCallOfferType;
typedef enum {
MATRIX_CALL_ANSWER_TYPE_UNKNOWN,
MATRIX_CALL_ANSWER_TYPE_ANSWER
} MatrixCallAnswerType;
#endif /* __MATRIX_TYPE_H__ */ #endif /* __MATRIX_TYPE_H__ */

View File

@ -17,21 +17,6 @@
*/ */
namespace Matrix { namespace Matrix {
/**
* Call answer types
*/
public enum CallAnswerType {
/**
* represents a value unknown to this library
*/
UNKNOWN,
/**
* call answer
*/
ANSWER;
}
/** /**
* Information about the file referred to in a URL. * Information about the file referred to in a URL.
*/ */

View File

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