Port MatrixSearchCategories to C

This commit is contained in:
2017-11-10 19:03:00 +01:00
parent 3ffd5a5b38
commit da6e3f8b7b
4 changed files with 153 additions and 27 deletions

View File

@@ -397,6 +397,14 @@ namespace Matrix {
throws Matrix.Error;
}
[CCode (cheader_filename = "matrix-c-compacts.h")]
public class SearchCategories : JsonCompact {
public SearchRoomEvents? room_events { 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, char convert_dashes = '_');