Port MatrixEventCallCandidates to C

This commit is contained in:
2017-11-23 09:36:32 +01:00
parent d51ab6ec50
commit 664f3a0ff6
7 changed files with 564 additions and 134 deletions

View File

@@ -287,6 +287,9 @@ namespace Matrix {
public struct ThirdPartyInvitePublicKey {
}
public struct CallCandidate {
}
/* Compact classes */
[CCode (cheader_filename = "matrix-compacts.h")]
public abstract class JsonCompact {
@@ -879,6 +882,17 @@ namespace Matrix {
protected override void to_json(Json.Node json_data)
throws Matrix.Error;
}
[CCode (cheader_filename = "matrix-event-call-candidates.h")]
public class CallCandidates : Call {
public Matrix.CallCandidate[] candidates { get; set; }
protected override void from_json(Json.Node json_data)
throws Matrix.Error;
protected override void to_json(Json.Node json_data)
throws Matrix.Error;
}
}
[CCode (gir_namespace = "MatrixMessage", gir_version = "0.0")]