Port Matrix3PidCredential to C

This commit is contained in:
2017-11-10 12:06:02 +01:00
parent 80dad1b03a
commit f4a8b47aa6
4 changed files with 247 additions and 54 deletions

View File

@@ -330,6 +330,16 @@ namespace Matrix {
throws Matrix.Error;
}
[CCode (cheader_filename = "matrix-c-compacts.h")]
public class @3PidCredential : JsonCompact {
public string? id_server { get; set; default = null; }
public string? session_id { get; set; default = null; }
public string? client_secret { get; set; default = null; }
public override Json.Node?
get_json_node()
throws Matrix.Error;
}
/* Utilities */
[CCode (cheader_filename = "utils.h", cname = "_matrix_g_enum_to_string")]
public string? _g_enum_value_to_nick(GLib.Type enum_type, int value, bool convert_dashes = true);