Port _g_enum_nick_to_value() to C

This commit is contained in:
2017-11-03 07:19:29 +01:00
parent 091bb38286
commit f6f6f78cdc
11 changed files with 85 additions and 55 deletions

View File

@@ -208,6 +208,10 @@ namespace Matrix {
[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);
[CCode (cheader_filename = "utils.h", cname = "_matrix_g_enum_nick_to_value")]
public int _g_enum_nick_to_value(GLib.Type enum_type, string nick)
throws Matrix.Error;
/**
* The major version number of the Matrix.org GLib SDK.
*/